sketch_profiles
Extract closed sketch regions with area, centroid, and loop data to feed extrude, revolve, sweep, or loft features. Filter by an interior point to target the exact profile you need.
Instructions
Closed regions (profiles) of a sketch — the input of extrude/revolve/sweep/loft.
Each profile: {"ref": {"ref": "profile:@,", "type": "Profile", "name": "P1"}, "sketch", "point": [x, y] (an interior point of the region), "area_mm2", "centroid", "bbox": {min, max}, "outer_loop": {"curves": [refs]}, "inner_loops": [{"curves": [refs]}] (holes)}. All coordinates sketch mm.
A profile has no persistent id in Fusion, so its ref is the sketch plus a point inside
the region: profile:<sketch token>@x,y. Pass this string as the profile of a feature
(or {"sketch": ref, "point": [x, y]}). It survives moderate dimension changes; if the
region moved away from the point the feature fails with ENTITY_NOT_FOUND listing the
current profiles — call sketch_profiles(contains=[x, y]) again and use the new ref.
name (P1, P2...) is only the order in this answer, never an address.
Returns {"profiles": [...]}.
Example: plate with 4 holes -> 5 profiles; the plate is the one with 4 inner_loops;
sketch_profiles(sketch=, contains=[0, 0]) -> just the region around [0, 0].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | Sketch ref (from sketch_create) | |
| contains | No | Only the profile containing this [x, y] sketch mm |