General

General

Publishing Scripts to the Ribbon with an Icon

    • FAQFAQ
      Participant

      You can publish a script to create a tool button in the ribbon so that it can be used in any project.

      1. Write a script or Click the Record  icon to record scriptable actions in Discovery, which are then written as code in the Script Editor.
      2. Click the Publish Script icon. The Publish Script dialog appears. (Note: Click the Embed Script  icon into the Discovery project. Once a script is embedded, it remains embedded when you Save/Resume the model.)
      3. Enter a Name and Tooltip.
      4. (Optional) Enter Tab name and Group name for script location in the ribbon. Note: Scripts cannot be added to existing Discovery tabs so existing Tab names are not available.
      5. For Icon path, enter a path to the icon, or browse to select the icon.

      Image will appear as an icon for the script tool. (Note: Image size should be limited to 32*32pixel)

      6. (Optional) Choose Password-protected copy if you want to hide the script contents.
      7. Click OK.

      The tool is added to the chosen Tab and Group on the Ribbon. Once a script is published, it can be edited or removed by selecting the Edit Script or Remove option on the Ribbon if it is not protected.