catia_sketch_line
Draws a line in the active sketch from (x1,y1) to (x2,y2) in mm. Set is_axis=true to define the revolution axis required for a shaft or groove.
Instructions
Draw a line in the active sketch from (x1, y1) to (x2, y2). Coordinates in mm. Set is_axis=true to make it the sketch's axis (Sketch.CenterLine), REQUIRED before catia_shaft/catia_groove: without it CATIA has no revolution axis and the feature fails at update (confirmed live 2026-09-28). The axis is excluded from the profile, so draw the closed profile entirely on one side of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate (mm) | |
| x2 | Yes | End X coordinate (mm) | |
| y1 | Yes | Start Y coordinate (mm) | |
| y2 | Yes | End Y coordinate (mm) | |
| is_axis | No | If true, set this line as the sketch axis (Sketch.CenterLine) so it serves as the revolution axis for a Shaft/Groove on this sketch. |