Changing Command Timeout
When a command, e.g. “StartRevit” or “OpenFile” is sent off, the timeout value is how long Automation will wait for a response (success or failure). The default, built-in timeout for most commands in Ideate Automation is two hours. In some cases, especially when processing large and complex Revit models, it may be useful to increase the timeout value. If a task fails due to a timeout, this will be displayed in the details log.
The “timeout” variable is added right after the command name in a format timeout=”[number] hours”
The example below is from an Export to PDF script:

Before adding or increasing a timeout in your custom script, please assess if this is the best solution to get your tasks and models running smoothly.
A task could be failing due to a timeout in the following situations:
- Revit displays an unskippable pop-up or dialog — this can indicate issues with the model that should be resolved
- A different 3rd party add-in displays a pop-up or dialog — needs to be addressed individually, potentially disabling this add-in
- The performance of the Revit model is poor due to general model health issues — can or should the model be fixed first?
- Insufficient resources on the local system — is this PC or VM instance powerful enough to run Revit properly, considering the models being processed?