Mechanical: Hole Pattern
mech_hole_patternCreate linear, grid, or polar hole patterns on any AutoCAD drawing without the part model. Set count, spacing, diameter, and centre marks.
Instructions
A hole pattern on any drawing - the part model is not required.
The same expansion HolePattern performs inside a part, exposed for a
drawing that was not built from the model.
Refused before anything is drawn: an unknown pattern, a count below 1 (below 2 for polar), a linear pattern with no spacing, a grid with more than one column or row and no pitch for it, a polar pattern with no pitch-circle diameter, and a non-finite or non-positive diameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | WCS X of the first hole (polar: the circle centre) | |
| y | Yes | WCS Y of the first hole (polar: the circle centre) | |
| pcd | No | Pitch-circle diameter, for a polar pattern | |
| angle | No | Direction of a linear pattern, degrees CCW | |
| count | No | Holes along the pattern (polar: around the circle) | |
| layer | No | Override the GEOMETRY layer for the circles | |
| count_y | No | Rows, for a grid | |
| pattern | Yes | linear | grid | polar | |
| spacing | No | Pitch between holes (linear, grid columns) | |
| diameter | Yes | Hole diameter in drawing units | |
| dimension | No | Add a '6x ⌀8' diameter callout | |
| spacing_y | No | Row pitch, for a grid | |
| start_angle | No | Angle of the first hole (polar), degrees CCW | |
| centre_marks | No | Draw ISO 128-23 centre marks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||