draw_closed_profile
Draws a closed profile of connected lines and arcs from millimeter coordinates so Inventor sees one loop for extrude or revolve.
Instructions
Draw a closed profile of lines AND arcs. All coordinates in mm. Segments share their end points, so Inventor sees one closed loop for extrude/revolve. Never approximate a curve with many short lines — round corners and arcs are built in:
[x, y] a corner [x, y, r] a corner rounded with radius r (tangent arc, lines trimmed) {"through": [x, y]} the segment from the corner before to the corner after is an arc through this point (after the last corner: the closing one)
Examples: plate with R10 corners "[[0,0,10],[200,0,10],[200,100,10],[0,100,10]]"; a D shape "[[0,-50],[0,50],{"through":[50,0]}]". Arcs go through three points, so the sketch's axis directions can't flip them.
Args: points: JSON array (or list) of the entries above. sketch_index: Sketch number (0 = latest sketch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| sketch_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |