revolve
Generate or remove 3D geometry by sweeping a closed sketch profile around an X, Y, or Z work axis with an adjustable angle and join/cut/intersect operation.
Instructions
Revolve a sketch profile around a work axis to create or cut 3D geometry.
PREFERRED workflow — no construction line needed in sketch:
create_sketch("XY")
draw_closed_profile([[0,0],[30,0],[30,8],[15,60],[0,60]]) ← profile only
revolve(axis="Y", operation="join")
For a revolve CUT (e.g. groove):
create_sketch("XY")
draw_closed_profile([[8,26],[15,26],[15,34],[8,34]]) ← groove cross-section
revolve(axis="Y", operation="cut")
Profile must be on one side of the axis (all X ≥ 0 when axis="Y").
Args: angle: Revolution angle in degrees (360 = full revolution, default). axis: Rotation axis — "X", "Y", or "Z". Default "Y" for lathe parts on XY plane. sketch_index: Sketch number (0 = latest sketch). operation: Boolean operation — join (add material), cut (remove), intersect, or new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | Y | |
| angle | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| operation | No | join | |
| sketch_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |