add_hole
Adds a native drilled, tapped ISO metric, or counterbored hole to an Inventor part using coordinates or face-edge dimensions; fails if no material is removed.
Instructions
Add a native hole feature to the active part (drilled, tapped ISO metric 6H, counterbored). Fails — instead of leaving an empty feature — if no material was removed. Placed one of three ways:
point+direction: absolute model coordinates, e.g. point=[30,0,12], direction=[0,0,-1] (the way the drill travels). Safest: no sketch axes involved.linear: dimensioned from two edges of a face, associative — preferred for fastener holes: {"face_axis": "Z", "face_value": 20, "ref1_axis": "X", "ref1_value": 0, "dist1": 10, "ref2_axis": "Y", "ref2_value": 0, "dist2": 15}.x,y: on the XY plane, drilling into +Z.
Args: diameter: mm (thread nominal if tapped, e.g. 5 for M5). depth: mm; 0 = through all. tapped: Thread it. pitch: mm; 0 = standard coarse. cbore_diameter, cbore_depth: Counterbore seat (with linear), e.g. 10 and 5.5 for M5.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| depth | No | ||
| pitch | No | ||
| point | No | ||
| linear | No | ||
| tapped | No | ||
| diameter | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| direction | No | ||
| cbore_depth | No | ||
| cbore_diameter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |