How to add your knowledge

Scripting Basics

    Table of contents
    No headers

    Here are some scripting basics!  Full details on scripting can be found on WikiHelp, but this will provide some stub code to get you started on scripting.  Some great tutorials can be found at W3Schools and Code Academy if you need to brush up on your JavaScript skills.

    The script types available in Autodesk PLM 360 are:

    • Library
    • Validation
    • Condition
    • Action

    Library scripts store shared JavaScript functions and are intended for general reuse.

    File:PLM_360/enu/Community/Tutorials/Scripting_basics/StubLibrary.png

    Validation scripts trigger on the pass/fail of a workflow transition and can provide valuable feedback to the end user.

    File:PLM_360/enu/Community/Tutorials/Scripting_basics/StubValidation.png

    Condition scripts allow/disallow user access to a particular transition.  They do not allow any feedback to the user.

    File:PLM_360/enu/Community/Tutorials/Scripting_basics/StubCondition.png

    Action scripts are used to set values.

    File:PLM_360/enu/Community/Tutorials/Scripting_basics/StubAction.png