revolve_sketch
Revolve a closed sketch around an axis to model turned parts like shafts, bushings, and flanges. Specify axis, angle, direction, and merge settings.
Instructions
Revolución (saliente por revolución) — revolve a closed sketch around an axis. The standard SolidWorks workflow for turned parts: flechas (shafts), bujes (bushings), bridas (flanges), finiales, insertos torneados — anything spun on a lathe.
Args:
axis_name: Name of the axis to revolve around. Pass the "Eje1"
name returned by create_reference_axis (typically the
intersection of two default planes through the part origin).
The axis must lie in the same plane as — or beside — the
sketch profile. Profiles that cross the axis raise a SW
geometry error.
angle_deg: Sweep angle in degrees, in the open interval (0, 360].
Default 360 (revolución completa) covers the standard turned-
part case. Partial angles (e.g. 180) are useful for sectores,
half-housings, leva-cams.
reverse_direction: Flip rotation sense around the axis. Default
follows SW's natural sense; flip if the resulting body comes
out on the wrong side of the sketch plane.
merge: True (default) merges with existing solid material it
touches. False keeps the revolve as a separate body
(multi-body modeling).
Returns the new Revolución feature (type=boss_revolve,
D1=angle_deg).
Caveat: D1 is the sweep ANGLE, not a distance. modify_dimension
can update D1 to retune the angle, but the sketch profile dimensions
(the turned silhouette itself) are NOT parametric in v1 — same caveat
as extrude_sketch (sketch primitives are draw-once-only; resize
requires a fresh rebuild).
Example — Ø50mm × 10mm thick disc, full revolution around the Z axis: eje = create_reference_axis("front", reference_2="right") create_sketch("top") create_line(0, 0, 25, 0) # half-radius along +X create_line(25, 0, 25, 10) # thickness along +Y create_line(25, 10, 0, 10) # back-radius create_line(0, 10, 0, 0) # close on the axis revolve_sketch(eje["name"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | ||
| angle_deg | No | ||
| axis_name | Yes | ||
| reverse_direction | No |