draw_pattern
Creates grid or circular patterns of circles, slots, or rectangles in an Inventor sketch so one cut can produce vents, hole grids, or bolt circles.
Instructions
Many copies of one shape in one sketch — vent slots, hole grids, bolt circles — then one cut makes them all. mm.
Grid: the first copy at (x, y), rows x columns, pitch dx (between columns) and dy
(between rows). Circle: count copies on a circle of diameter pcd around (x, y), the
first at start_angle degrees; slots and rectangles turn with the circle.
Args: shape: circle (diameter), slot (length, width — overall), rectangle (length, width, corner_radius). angle: Turn every slot / rectangle by this many degrees (length along X at 0). sketch_index: Sketch number (0 = latest sketch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| dx | No | ||
| dy | No | ||
| pcd | No | ||
| rows | No | ||
| angle | No | ||
| count | No | ||
| shape | No | circle | |
| width | No | ||
| length | No | ||
| columns | No | ||
| diameter | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| start_angle | No | ||
| sketch_index | No | ||
| corner_radius | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |