Straight Hole
The following table shows elements for creating a straight hole.
Straight Hole Elements
Element
Status
PRO_E_HLE_TYPE_NEW
PRO_HLE_NEW_TYPE_STRAIGHT
PRO_E_HLE_MAKE_LIGHTWT
Mandatory
PRO_E_DIAMETER
Mandatory
PRO_E_HOLE_STD_DEPTH
Mandatory
PRO_E_HOLE_DEPTH_TO
Mandatory
PRO_E_HOLE_DEPTH_TO_TYPE
Mandatory
PRO_E_EXT_DEPTH_TO_VALUE
Depends on PRO_E_HOLE_DEPTH_TO_TYPE
PRO_E_EXT_DEPTH_TO_REF
Depends on PRO_E_HOLE_DEPTH_TO_TYPE
PRO_E_HOLE_DEPTH_FROM
Mandatory
PRO_E_HOLE_DEPTH_FROM_TYPE
Mandatory
PRO_E_EXT_DEPTH_FROM_VALUE
Depends on PRO_E_HOLE_DEPTH_FROM_TYPE
PRO_E_EXT_DEPTH_FROM_REF
Depends on PRO_E_HOLE_DEPTH_FROM_TYPE
PRO_E_HLE_TOP_CLEARANCE
Mandatory
PRO_E_HLE_ADD_PARAMETERS
Mandatory
PRO_E_HOLE_PARAMETERS
NA
PRO_E_HLE_ADD_NOTE
Mandatory
PRO_E_HOLE_NOTE
Depends on PRO_E_HLE_ADD_NOTE
Figure Straight Hole with Linear Placement shows code for creating a straight hole with linear placement and through-all depth. The hole has 100 units diameter, and is placed 100 units distant from the first reference and 200 units distance from the second.
The function ProDemoHoleCreate() builds the complete element tree serially. First add all elements required for the straight hole under the PRO_E_HLE_COM element. Then enter the placement elements under the PRO_E_HLE_PLACEMENT element. Use element PRO_E_HOLE_DEPTH_TO_TYPE to specify the hole as 'through all'.
The function UserElemtreeElementAdd() is a small utility that add an element to the element tree.
¿Fue esto útil?