Hole-specific Functions
Functions Introduced:
You can use the function
ProHolePropertyGet() to retrieve the value of the indicated hole value property. Only properties listed in the enum
ProHoleProperty are supported.
The function
ProElementHoleThreadSeriesGet() returns the type of thread from the hole feature element tree as a wide string.
Use the function
ProElementHoleThreadSeriesSet() to set the type of thread in the hole feature element tree. The thread type is updated in the element
PRO_E_HLE_THRDSERIS.
The function
ProElementHoleScrewSizeGet() gets the size of screw from the hole feature tree elements
PRO_E_HLE_THRDSERIS and
PRO_E_HLE_SCREWSIZE as a wide string.
Use the function
ProElementHoleScrewSizeSet() to set the size of screw in the hole feature element tree. The screw size is updated in the element
PRO_E_HLE_SCREWSIZE.
|
Note:
|
The screw size depends on the type of thread. Therefore, before you call the function ProElementHoleScrewSizeSet() you must ensure that the thread type is set in the element PRO_E_HLE_THRDSERIS.
|
Use the function
ProHoleNoteReset() to reset the note of the specified hole feature.
Use the function
ProSketchedHoleMembersCount() to count the number of holes created by a sketched placed hole. The input argument to this function is
hole, which specifies the hole feature using the
ProFeature object. The output argument
total_holes is the total count of hole instances of the given sketched placement hole. It returns an output value of -1 in case of error.
The function
ProSketchedHoleGeomitemVisit() visits all geometry items created by the sketched hole feature. The input arguments are:
• hole—Specifies the hole feature using the ProFeature object.
• item_type—The type of items to visit using the ProType object.
• hole_index—Indices start from 0 and use the ProSketchedHoleMembersCount() function to get the total number of members.
• action—Specifies the visiting function ProSketchedHoleGeomitemAction. If it does not return the error PRO_TK_NO_ERROR, the visiting stops.
• filter—Specifies the filter function ProSketchedHoleGeomitemFilter. If NULL, the action function visits all items. The function ProSketchedHoleGeomitemVisit() stops visiting if the filter returns the error PRO_TK_GENERAL_ERROR.
• app_data—The application data is passed to the filter and the visiting functions using the ProAppData object.
Parent topic