catia_drawing_add_view
Creates and places front, orthographic, isometric, section, or detail views in a CATIA V5 drawing from the 3D source, positioning each new view automatically near its reference or at specified sheet coordinates.
Instructions
Add one view of the 3D source to the drawing and place it. kind: front (the base view, create it first), top/bottom/left/right/rear (orthographic projections of the front view: 'right' = seen from the right of the front view), isometric, section, detail. Placement (position='auto', default): ISO 5456-2 arrangement from the plan of catia_drawing_create (first angle: top view BELOW the front, right view on its LEFT; third angle mirrored), else beside the parent in a free spot. Give position [x, y] (sheet mm, origin bottom-left, view CENTRE) to override. A view that would overlap another one or leave the frame is refused and removed. View coordinates (u, w), used by section/detail/dimensions, are millimetres at MODEL scale with the origin on the projection of the model origin; u to the right, w up. With view_from='-Y': front u=X, w=Z; top u=X, w=Y; right u=Y, w=Z; left u=-Y, w=Z; bottom u=X, w=-Y; rear u=-X, w=Z. section: give parent, cut_direction ('vertical' = cutting line x=cut_at, 'horizontal' = line y=cut_at, in the parent's (u,w)) or cutting_line [[u1,w1],[u2,w2]]; the tool draws the cutting-plane arrows, labels (A-A) and hatching; flip with side=1 if the wrong half is shown. detail: parent, centre [u,w], radius (mm, model scale), scale (default '5:1'). Returns JSON: view name, kind, scale, centre, paper box, origin, and the axes needed by catia_drawing_check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| side | No | section: which side is drawn. | |
| label | No | View name (default: the kind, capitalised; CATIA appends A-A / A to section and detail views). | |
| scale | No | View scale ('1:2', '5:1'); default the sheet scale (details default to '5:1'). A view whose scale differs from the sheet must be labelled (ISO 5455): CATIA prints it. | |
| centre | No | detail: circle centre [u, w] in the parent view (model mm). | |
| cut_at | No | section: u (vertical) or w (horizontal) of the cutting line. | |
| gap_mm | No | Minimum clearance between views (paper mm). | |
| parent | No | Reference view for projections, section, detail (default: the front view). | |
| radius | No | detail: circle radius (model mm). | |
| source | No | Open CATPart/CATProduct (default: the one given to create). | |
| drawing | No | Name of the CATDrawing document (default: the active document). | |
| position | No | auto | |
| view_from | No | front only: side the viewer stands on (default: from create, '-Y'). | |
| cutting_line | No | section: [[u1, w1], [u2, w2]] in the parent view (model mm). | |
| hidden_lines | No | Show hidden edges as thin dashed lines. | |
| cut_direction | No |