cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Determine if external sketch used

BobMonat
1-Newbie

Determine if external sketch used

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 1
FV
17-Peridot
17-Peridot
(To:BobMonat)

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
Top Tags