Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.
You need to read the API Wizard under User's Guide->Principles of Feature Creation->Feature Inquiry. This section will help you get a better understanding of how feature trees work. Also, the feature tree for the hole feature is located in ProHole.h. Here is your answer:
Assuming you have a ProFeature handle to the hole feature follow these steps.
<LI>ProFeatureElemtreeCreate</LI>
<LI>ProElempathAlloc</LI>
<LI>Fill an array of type ProElempathItem of size 2.</LI>
<LI>ProElempathDataSet passing the element path from #1 and the array of ProElempathItem from #3 and the number of elements in the array (2).</LI>
<LI>ProElemtreeElementGet passing the element path from #4.</LI>
<LI>PRO_E_HLE_DEPTH is of type PRO_VALUE_TYPE_INT so now call ProElementIntegerGet.</LI>
<LI>ProFeatureElemtreeFree</LI>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.