cad_drawing
Create, edit, and export engineering drawing sheets with views, sections, dimensions, and GD&T tolerances. Export to SVG, DXF, or PDF.
Instructions
Create, edit or export an engineering drawing.
聚合工程图操作。按 ``action`` 派发:create / add_view / add_section /
add_dimension / add_tolerance / delete / export。
- ``create``: a sheet (paper A0-A4, title block).
- ``add_view`` / ``add_section``: main / projection / section / detail /
isometric views over referenced entities.
- ``add_dimension``: ISO 129-1 dimensions (linear / angular / radial /
diameter / ordinate).
- ``add_tolerance``: GD&T feature-control frames (position / flatness /
parallelism / perpendicularity / concentricity).
- ``export``: write the sheet as svg / dxf / pdf at ``path``.
When not to use: ``cad_drawing`` produces engineering drawing sheets.
For plain 2D/3D preview images use ``cad_render``; for interop geometry
files use ``cad_file`` (export step/dxf/stl); for object geometry edits
use ``cad_object``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drawing | Yes | Drawing action to perform, discriminated by `action`: create, add_view, add_section, add_dimension, add_tolerance, delete or export. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Exported path | |
| paper | No | Paper size | |
| width | No | Sheet width in mm | |
| action | Yes | Drawing action executed | |
| format | No | Export format | |
| height | No | Sheet height in mm | |
| status | Yes | Operation status | |
| message | No | Status description | |
| view_id | No | View identifier | |
| drawing_id | No | Drawing identifier | |
| dimension_id | No | Dimension identifier | |
| tolerance_id | No | Tolerance identifier |