Provide Input for a Script from Dynamo Player

Some Dynamo scripts require input before you can run them. Use Dynamo Player to provide this input to adjust the script to meet your immediate needs with the current model.

  1. Launch Dynamo Player and select the script directory.
  2. For the desired script, click Edit inputs (Edit inputs).

    The Inputs dialog displays, listing the inputs required for the script.

    • blue arrow (Input needed) indicates that some action or input is required.
    • green check mark (Ready) indicates that a valid value has been provided. This may be a default value. You can change it if desired.
    • gray flag indicates an empty Watch node. Run the script to see results.
    Note: If the script does not require any inputs, its status indicates No inputs. Click back arrow to return to the list.
  3. For each Ready (Ready), check the value, and change it if needed for the current model.
  4. For each Inputs needed (Input needed), provide the required input or take action, as specified.

    For instance, in the example above, you must select a level in the model. To do this, in Dynamo Player, press Select. Then in Revit, open an appropriate view in the model (such as an elevation), and select the desired level.

    When taking action, consider the following:

    • If Revit seems unresponsive, click in the Revit window and press ESC. Then try again.
    • When you select an element in the Revit model, Dynamo Player does not confirm that you have selected the correct type of element. Check the Revit status bar for verification.
    • After selecting an element, Dynamo Player displays the element ID. To select a different element, click Select again.
    • For more information, see Select Revit Elements for a Dynamo Script.

    When all input items are marked with Ready (Ready), the icon at the top of the window changes to Run script, and the script's status changes to Ready.

  5. Click Run script (Run Script).

    As an alternative, click back arrow, and run the script from the main dialog that shows the list of scripts.

When the script runs successfully, its status changes to Run completed. For any Watch nodes exposed in Dynamo Player, the Input dialog displays information about the results.