catia_drawing_create
Creates a new CATDrawing with ISO 5457 sheet, scale, projection method, and frame, optionally auto-planning sheet and scale from an open part for view placement.
Instructions
Create a new CATDrawing with an ISO 5457 sheet (A0-A4), a main scale (ISO 5455), the projection method (first_angle = Europe/ISO default, third_angle = USA) and the 0.7 mm drawing frame (20 mm left margin, 10 mm elsewhere). Then call catia_drawing_add_view for each view, catia_drawing_title_block, catia_drawing_export_pdf and catia_drawing_check.
sheet='auto' and/or scale='auto' need source (an OPEN CATPart/CATProduct): the tool measures the views listed in views and picks the smallest sheet and the largest recommended scale (>= min_scale) that hold them with room for dimensions and the title block; the plan (sheet, scale, view centres) is returned and used by add_view when position='auto'. Units: mm. Returns JSON {drawing, sheet, scale, projection, frame, plan, warnings}. The drawing is left open and active; nothing is saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Draw the ISO 5457 frame. | |
| scale | No | '1:1', '1:2', '2:1', '1:5'... (paper:model) or 'auto'. | 1:1 |
| sheet | No | 'A0'..'A4' or 'auto'. | A3 |
| views | No | Views to plan for 'auto' (default front, top, right). | |
| source | No | Name of the open CATPart/CATProduct to draw (e.g. 'Flange.CATPart', or its part name 'Flange'). Required for sheet/scale 'auto'; remembered for add_view. | |
| min_scale | No | Smallest acceptable scale for 'auto'. | 1:2 |
| view_from | No | Side the viewer stands on for the FRONT view. '-Y' = CATIA's usual front (X right, Z up); '+Z' = look down at the part (X right, Y up). | -Y |
| projection | No | first_angle | |
| orientation | No | Default: ISO 5457 (A0-A3 landscape, A4 portrait). | |
| title_block_height_mm | No | Strip kept free above the bottom frame line for the title block. |