preview_image
Renders the active Creo model window as a JPEG for visual verification, with optional view changes, refitting, and datum display.
Instructions
Creates/edits geometry in the running Creo 5 through the DreamFeatureApp plugin. There is no mirror tool: build symmetric shapes with symmetric extrudes, revolves or patterns. Units are mm and degrees. Parts are addressed by name (lowercase, no .prt). Model axes: FRONT is the XY plane (normal +Z), TOP is XZ (normal +Y), RIGHT is YZ (normal +X). Each feature call either ends with an active feature or is rolled back. Nothing is saved unless model_save is called. Check results with model_info (volume, bound_box) and preview_image.
Render the model's window to a JPEG and return it as an image (about 3 s). Optional view turns the window first. fit (default true) refits the model; datums=true shows datum planes and axes (hidden by default for a clean picture). width/height in inches at 100 dpi (default 6 x 4). Views: front looks along -Z (model XY plane), top looks down -Y, right looks along -X, iso is the Creo default 3D orientation. An unknown view name is an error listing the saved views.
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": {
"name": "<name>"
},
"name": "preview_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| name | Yes | Part name without .prt | |
| view | No | front, back, top, bottom, left, right or iso (Creo default orientation); also a saved view name. Case-insensitive. | |
| width | No | ||
| datums | No | ||
| height | No |