sw_create_drawing
Creates a drawing from a saved part or assembly with standard views, isometric, dimensions, and BOM. Configures paper size, scale, and projection standard.
Instructions
A drawing of a saved part/assembly: three standard views, isometric, dimensions, BOM.
Fill the title block with sw_set_properties on the model first; export with sw_export (pdf/dwg/dxf).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bom | No | Assemblies: add a parts list table. | |
| doc | No | Document title or path. Defaults to the active document. | |
| paper | No | A3 | |
| scale | No | [1, 2] = 1:2. | |
| views | No | First angle for GOST/ISO, third for ANSI. | first_angle |
| standard | No | 'gost' uses the GOST templates. | gost |
| isometric | No | ||
| dimensions | No | Insert the model's dimensions and hole callouts. |