feature_web
Creates a web from open sketch curves and joins it to a target body, ideal for building stiffener grids inside shelled housings.
Instructions
Add a web - a network of thin walls from several open sketch curves (e.g. a grid of stiffeners inside a shelled housing), joined to the body it meets.
Units: thickness and depth.distance are in units (default mm), a string is a
Fusion expression. Refs: open sketch curves from sketch_draw, all in one sketch
inside the body; circles and closed splines are refused. Always joined to
target_body (no operation parameter); without it, to the one solid body of the
curves' component that a curve touches.
Errors: closed curve, wrong thickness_location or depth -> INVALID_PARAMS (nothing changed); no target_body and the curves touch no body or several -> INVALID_PARAMS with details.candidates (body refs to pass as target_body); thickness_location "side2" is not available in the current Fusion API (FUSION_API_ERROR, no change); a Fusion API version without web features -> FUSION_API_ERROR "not available" with no change (use execute_python then); a web Fusion computes with an error -> FUSION_API_ERROR and the timeline is rolled back.
Returns {"feature": {ref, type, name}, "health": {"state": ok|warning|error|unknown, "message"}, "created_bodies": [...], "modified_bodies": [{ref, type, name}] (the body the web joins), "removed_bodies": [...]}.
Example: feature_web(curves=[, , ], thickness=2, depth={"type": "distance", "distance": 15})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | Grow the other way from the sketch plane | |
| depth | No | {"type": "to_next"} (default, up to the next face) | {"type": "distance", "distance"} | |
| units | No | Unit of plain-number lengths and points | mm |
| curves | Yes | Open sketch curve refs (sketch_draw), drawn on a plane through the body, ending at or near its walls | |
| thickness | Yes | Wall thickness of the web | |
| target_body | No | Body the rib/web is built on and joined to; default: the one solid body the curves touch | |
| thickness_location | No | symmetric (default) about the curves, or side1 / side2 of them | symmetric |