Save view as PNG
revit_export_viewExport a selected Revit view as a PNG to a named path or temporary folder; existing files are refused, and the active view and model remain unchanged.
Instructions
Write a PNG image of the selected Revit view to the new .png file the user names through output_path on the computer running the AI app. Omitting output_path uses a temporary folder. A destination already present is refused. The active view and model remain 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 | doc: ID/path/title across several Revit instances. | |
| pixel_size | No | PNG size in pixels along the fitted dimension, 32 to 4000 (default 1600); Revit rejects smaller images. | |
| process_id | No | Revit PID; must match 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 | |||