Holes
This section describes how to access the hole properties in Creo Object TOOLKIT C++.
Accessing Threaded Hole Properties
Methods Introduced:
The methods wfcWHoleFeature::GetHoleProperties and wfcWHoleFeature::SetHoleProperties retrieve and set the properties of the specified hole feature using the wfcHoleProperties object.
The method wfcHoleProperties::Create creates a data object that contains information about the thread series and screw size of a hole.
The method wfcHoleProperties::GetThreadSeries and wfcHoleProperties::SetThreadSeries returns the type of thread for the specified hole feature.
The methods wfcHoleProperties::GetScrewSize and wfcHoleProperties::SetScrewSize to get and set the size of screw for the specified hole feature.
Note
The screw size depends on the type of thread. Therefore, before you call the method wfcHoleProperties::SetScrewSize you must ensure that the thread type is set for the hole feature.