Skip to main content
1-Visitor
November 21, 2012
Question

Determine if external sketch used

  • November 21, 2012
  • 1 reply
  • 730 views
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

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

November 23, 2012

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