Standard Parts: Draw Feature
std_feature_drawAdds standards-compliant thread, undercut, groove, and center-hole features to existing CAD geometry, using ISO/DIN tables and refusing unsupported sizes or missing dimensions.
Instructions
Add a standard feature to geometry that already exists - a foreign drawing being finished.
Local frame: (x, y) is on the axis, +X runs along the axis in the
direction the feature extends and +Y is radially outward. The thread is the
ISO 6410 representation (minor diameter at 0.8 x major, thread-length limit
to the major) and its pitch comes from ISO 261 via size or from an
explicit pitch - it is never guessed. Every other kind takes its
dimensions from the registered standards table and is refused by name when
that table is absent, when the size is outside its coverage, or when the row
lacks a dimension the feature needs: no value is interpolated and no profile
is reconstructed. DIN 332 form R is refused - only forms A and B are drawn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Feature origin X (WCS): a point on the axis | |
| y | Yes | Feature origin Y (WCS): a point on the axis | |
| kind | Yes | thread | undercut | ring_groove | centre_hole | oring_groove | |
| layer | No | Override the visible primitives' layer; CENTER and HIDDEN keep theirs | |
| params | Yes | thread: {d, length, size|pitch, internal} (a size must name d's own thread - 'M20' with d=8 is refused, not drawn); undercut: {d, form: E|F}; ring_groove: {d, kind: shaft|bore}; centre_hole: {size, form: A|B}; oring_groove: {d, cord, kind: shaft|bore} | |
| rotation | No | Degrees CCW applied to the local +X (along the axis, into the feature) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||