Export View to PNG
revit_export_viewExports a selected Revit view as a PNG file to a specified folder or path, using a temporary location when no path is given. Use it to capture a view image without changing the active view or model.
Instructions
Save a picture of the selected view as a PNG file in a folder the user names on the AI app computer. output_path names the new file; without it, a temporary folder is used. Existing files are refused. The active view and model stay unchanged. skipped means incomplete; skippedCount is the total skipped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"view": "<view>"
},
"name": "revit_export_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | Exact non-template view name from revit_list_views, or a view ID as a decimal string. | |
| document | No | Title or file name substring of the target document; needed when several Revit instances run. | |
| pixel_size | No | PNG size in pixels along the fitted dimension, 32 to 4000 (default 1600); Revit rejects smaller images. | |
| process_id | No | Revit process ID; takes precedence over document. | |
| output_path | No | New PNG path, resolved on the machine running this server; an existing file is an error. Default null downloads to a temporary directory and returns localPath. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||