The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi all,
Bob,
ProFeatureExternParentsGet and ProFeatureParentsGet would work, you'll get an array of the parent features,then you shouldloop to look for feature type PRO_FEATURE_CURVE, get its element tree and then you'll need to check PRO_E_CURVE_TYPE element of the feature elementtree tohavethe value ofPRO_CURVE_TYPE_SKETCHED.
Alternatively you can extract the element tree of the feature in questionand get the value of PRO_E_USE_SKETCH element. For the external sections the value would be avalidProSelection (ProReference) and the value would be NULL for the internal section.
HIH.
Feliks.
In Reply to Bob Monat:
Greetings, Pro/TK hackers,
Using TOOLKIT, how can it be determined that an external sketch is consumed
or used by a feature?
Create an external sketch. Now create a feature which uses the sketch. How
can Toolkit determine if the sketch is consumed or used by the feature?
WF5
TIA,
Bob
Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087