catia_create_sketch
Creates a sketch on a plane, planar face, or construction plane and opens it for drawing, so subsequent sketch tools can add geometry to that sketch.
Instructions
Create a sketch on a plane or a planar face and open it for drawing. The support is a reference token: 'xy', 'yz', 'zx' for the origin planes, 'face#3' or 'face@x,y,z' to sketch directly on a face of the solid, or the name of a construction plane. Subsequent catia_sketch_* calls draw into this sketch until you close it or create another one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Body to create the sketch in. Defaults to the in-work body. | |
| name | No | Name for the new sketch. | |
| origin | No | Optional 3D origin [x,y,z] for the sketch axis system, in part coordinates. Use it to place a sketch away from the plane's origin without needing a construction plane. | |
| support | No | Reference token for the sketch plane: 'xy' | 'yz' | 'zx' | 'face#3' | 'face@10,0,25' | 'name:Plane.1'. | xy |
| horizontal_direction | No | Optional 3D vector [x,y,z] for the sketch's H axis. |