screenshot
Save a PNG/JPG/TIF image of the current SolidWorks part or assembly from a specified view or zoomed region, omitting reference planes unless requested.
Instructions
Save a screenshot of the current part or assembly (PNG/JPG/TIF).
view: 'iso' (default), 'front', 'back', 'left', 'right', 'top' or 'bottom'; or from_dir = [x, y, z], the direction to look from, e.g. [-1, 1, -1] to see from behind and below what iso hides (the model's +y stays up). Zoomed to fit, or onto a detail: zoom_mm = [[x1, y1, z1], [x2, y2, z2]], the corners of the region to fill the image (model mm, in any view). Reference planes and axes are left out, so they do not cut through the shape; show_planes=True keeps them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| view | No | iso | |
| zoom_mm | No | ||
| from_dir | No | ||
| show_planes | No |