section
Render a PNG cross-section of an assembly or selected parts along an XY, XZ, or YZ plane at a set coordinate to inspect fit, clearances, and internal geometry before printing.
Instructions
Cross-section as a PNG image, each part in its own color. plane: 'XY' (at = Z height), 'XZ' (at = Y) or 'YZ' (at = X), in mm. parts: default the assembly if the script has one (shows fit and clearances), else all printable parts; or comma-separated names (only those are built). size: 'normal' or 'small' (~800 px wide). inline=False returns only the file (over HTTP: its download link), not the image itself. Uses the pieces cached by an earlier build; fresh=True builds them again. Remote server (HTTP/SSH): the files stay on the server, as a temporary working copy deleted when unused; bring the part home with download_part (one zip in the parts// layout). Never use ssh, scp or a shell on the server: there is none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| name | Yes | ||
| size | No | normal | |
| fresh | No | ||
| parts | No | ||
| plane | Yes | ||
| inline | No | ||
| variant | No |