creo_create_safe_advanced_hole_copy
Copy the active Creo part and create one advanced hole in the new copy for blind, counterbore, countersink, or threaded styles. Thread data is validated and removal is guarded.
Instructions
Copy the current Creo part and create one advanced hole only in the new copy. Enabled styles are regular straight blind, custom counterbore, custom countersink, and standard threaded holes. Threaded-hole drill diameter is read from the installed Creo .hol table and the saved thread metadata is verified. The operation refuses overwrite, requires an active hole feature, requires volume to decrease, and applies a style-specific maximum-removal guard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | ||
| style | No | blind | |
| offset1 | Yes | ||
| offset2 | Yes | ||
| diameter | No | ||
| copy_name | Yes | ||
| hole_name | Yes | ||
| thread_size | No | FASTENER_ID from the selected Creo hole table, for example M4x.7. | |
| thread_depth | No | Required for threaded style and must be less than depth. | |
| primary_plane | No | FRONT | |
| thread_series | No | Installed Creo .hol table name without extension. | ISO |
| direction_side | No | Side of the primary datum plane into which the blind hole is cut. | |
| expected_model | Yes | ||
| reference_plane1 | No | RIGHT | |
| reference_plane2 | No | TOP | |
| counterbore_depth | No | Required for counterbore style and must be less than depth. | |
| countersink_angle | No | Included countersink angle in degrees; required for countersink style. | |
| counterbore_diameter | No | Required for counterbore style and must be greater than diameter. | |
| countersink_diameter | No | Required for countersink style and must be greater than diameter. |