Export Image
export_imageSave an image of the active SolidWorks model as PNG or JPG at a chosen standard view and size to show results or verify shape after changes.
Instructions
Save a picture of the active model in a standard view, as PNG or JPG, at a chosen size.
Use it to show a result, or to check a model's shape after a change. The view is
set first (front, back, left, right, top, bottom, isometric, dimetric,
trimetric, or current to keep the user's view). Needs: an open, active document.
Changes: writes the image file, and turns the model to the view asked for.
Returns: data with file_path, format, dimensions (the size written),
requested_dimensions and view.
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": {
"input_data": "<input_data>"
},
"name": "export_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The image. `file_path` (or `output_path`) is needed; the format follows its extension. `width`/`height` (or `resolution` as "1920x1080") and `view_orientation` (isometric) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||