Script Execution
Executing scripts in Paracore is a straightforward process designed to integrate seamlessly with your Revit workflows. This section covers how to run scripts and understand their outcomes.
Prerequisites for Running a Script
Before you can run a script, ensure the following:
- Revit is Running: Autodesk Revit must be open on your machine.
- Paracore Add-in is Loaded: The
Paracore.Addinmust be loaded within your Revit session. You should see a "Paracore" tab in the Revit ribbon. - Script Compatibility: The selected script must be compatible with the currently open Revit document (if it specifies a required document type).
- Authentication: You must be logged into Paracore.
Steps to Execute a Script
Paracore offers two ways to execute a script:
-
From the Script Card (Quick Run):
- In the Script Gallery, locate the script you wish to run.
- Click the "Run" button (usually a play icon) directly on the script card.
- The script will execute immediately using its default parameters (or the last used parameters if a preset is active).
- The Script Inspector will automatically open to the Console Tab to display the execution results.
-
From the Script Inspector (Configurable Run):
- Select a Script: From the Script Gallery, click on the script you wish to run. This will open it in the Script Inspector.
- Configure Parameters: In the Script Inspector's Parameters Tab, adjust any necessary script parameters and presets.
- Click "Run Script": Locate and click the prominent "Run Script" button.
- Monitor Execution: The script will execute.
- A Status Icon (Green Check or Red X) will appear next to the button. Click this icon to open the Console Tab and view the output.
- If the script outputs a table, a pulsing blue badge will appear on the Table Tab to notify you of new results.
-
Agent-Initiated Execution:
- When using the Paracore Agent, the agent handles the setup.
- After you approve the parameters in the chat, the agent triggers the execution.
- The result is displayed in the Console Tab and also summarized back to you in the chat conversation.
Understanding Execution Results
After a script finishes running, the Console Tab will show its output. The "Run Script" button in the Parameters Tab will also display a status icon next to it:
- Green Checkmark (✅): Indicates successful script execution.
- Red X (❌): Indicates that the script encountered an error during execution. Details of the error will be available in the Console Tab.
Clicking on this status icon (green checkmark or red X) will activate the Console Tab, allowing you to quickly review the full execution log without navigating away.
For a more structured overview of the results, navigate to the Summary Tab in the Script Inspector.