surface_ruled
Creates a ruled surface by extruding straight rulings from edges or sketch curves at a set distance and angle. Use it to build strips from part edges, then stitch or thicken the result.
Instructions
Ruled surface: a strip of straight rulings grown from edges or sketch curves.
Units: distance in units (default mm), angle in degrees; strings are expressions.
ruled_type normal/tangent is measured against the face of the edges, direction
follows the direction entity. Refs: edges from inspect_query, curves from sketch_*.
Close the result with surface_stitch / thicken it with body_thicken.
Errors: ruled_type direction without direction (or direction with another type), edges mixed with sketch curves -> INVALID_PARAMS (nothing changed).
Returns {"feature", "health", "created_bodies" / "modified_bodies": [{ref, type, name, is_solid}], "removed_bodies"}.
Example: surface_ruled(edges=[], distance=10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Angle from the ruling direction, degrees | |
| chain | No | Chain connected edges / curves | |
| edges | Yes | Edge refs (inspect_query) or sketch curve refs - one kind only | |
| units | No | Unit of plain-number lengths and points | mm |
| corner | No | rounded (default) or mitered corners | rounded |
| distance | Yes | Width of the ruled surface (not 0) | |
| direction | No | direction only: straight edge, axis (origin:X|Y|Z), planar face or plane | |
| operation | No | new_body (default) or new_component | new_body |
| ruled_type | No | normal (default, to the face), tangent (to the face) or direction (needs `direction`) | normal |
| alternate_face | No | Use the other face of the edges for normal / tangent |