catia_create_sketch
Create a new 2D sketch in the active CATIA body and open it for editing, using a face point, offset plane, or origin plane as support.
Instructions
Create a new 2D sketch (in the active body) and open it for editing. Support, in priority order: face_point (the planar face of the solid that passes through this 3D point, e.g. 'the top face of the boss'), else plane + offset (a named offset plane is inserted in the tree), else the origin plane. The sketch axes are aligned on the origin plane parallel to the support (xy: H=X,V=Y; yz: H=Y,V=Z; zx: H=Z,V=X) with its origin on the projection of (0,0,0), so 2D coordinates stay the ones read on the drawing's view. Close with catia_close_sketch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the sketch. | |
| plane | No | Origin plane: 'xy', 'yz', 'zx'. With face_point it is auto-detected from the face normal and can be omitted. | xy |
| offset | No | Distance (mm) along the plane normal for a parallel offset plane. | |
| face_point | No | [x, y, z] in mm of a point INSIDE the planar face to sketch on (not on its border). Searched in the active body first, then in the other bodies. |