Dry run
Preview a change without making it: dryRun runs the whole write pipeline, then cancels it, and tells you how many elements would be created or changed.
On this page
What a dry run is
Write tools accept dryRun: true. The tool does everything it would do: checks, plan, policy, application inside a transaction group. Then it cancels the group. Revit is unchanged, and the document is not marked as modified. The response is the same as for a real call, with the dry-run flag set: for example “12 elements would be modified”.
A dry run never asks for confirmation, since nothing is changed.
When to use it
For any change that touches many elements, or that you cannot easily describe: renaming, renumbering, setting a parameter on a whole category, creating many elements. The recipes of BIMproxy follow the same pattern: a dry run, then your agreement, then the real change.
Ask for it in plain words
Add the comment "To check" to all the walls of Level 1, but only simulate it first and tell me how many walls it would change.
The assistant calls the tool with dryRun: true, shows you the count, and asks whether to apply it.
Dry run and a batch
execute_batch runs several related changes together. In a batch, a dry run previews the whole request, and a real run produces a single Undo entry. See Recipes.
What a dry run does not do
Tools that capture views or export files are not write tools in this sense: they do not take dryRun. Capture tools run inside a transaction group that is always cancelled. See what the AI sees and the export tools.
Last updated December 1, 2026