Applying User Prompts for Command Scripts

To do this, for each command script, add a Variable object to the Dynamo group and change the command script parameter as described in the example below.

To apply user prompts for command scripts:

NOTE: The following steps assume you have the command script: ToggleDigitalPoint “FIX32.NODE.TAG.F_CV” on the click event of an oval.

  1. Create a local variable object (for example, call it MyVar). Set the Variable Type to String. Do not assign it a data source.
  2. Right-click the object, and click Property Window on the shortcut menu. Set the InitalValue property to a value such as FIX32.NODE.TAG.F_CV.
  3. In the WorkSpace system tree, select the variable object and drag it to the Dynamo Set group.
  4. Right-click the oval, and click Edit Script on the shortcut menu.
  5. Modify the oval's click event script from ToggleDigitalPoint “FIX32.NODE.TAG.F_CV” to ToggleDigitalPoint MyVar.InitialValue.
  6. On the Dynamo toolbar, click the Build Dynamo button. The Build Dynamo with User Prompts dialog box appears.
  7. Enter a User Prompt for MyVar.InitialValue. This allows the user to change the parameter for the ToggleDigitalPoint command by changing the value of the variable.
  8. Click OK.