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.
- Create a local variable object (for example, call it MyVar). Set the Variable Type to String. Do not assign it a data source.
- 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.
- In the WorkSpace system tree, select the variable object and drag it to the Dynamo Set group.
- Right-click the oval, and click Edit Script on the shortcut menu.
- Modify the oval's click event script from ToggleDigitalPoint “FIX32.NODE.TAG.F_CV” to ToggleDigitalPoint MyVar.InitialValue.
- On the Dynamo toolbar, click the Build Dynamo button. The Build Dynamo with User Prompts dialog box appears.
- 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.
- Click OK.