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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

WTPart - EPMDocument Association

ptc-4482159
1-Newbie

WTPart - EPMDocument Association

I amtrying to build a custom association class to build the link between WTParts and EPMDocuments with a call to EPMBuildRule. I would like to do this with existing parts and cad docs by using their number or name field as a reference. However, the only way I can seem to directly reference a part or doc is by using the ObjectIdentifier class.

I can call the following:

ObjectIdentifier oid = ObjectIdentifier.newObjectIdentifier("wt.epm.EPMDocument:###");

But I've come to find that the number (###) in this call is a long integer which refers to the unique ID of the WTPart of EPMDocument instead of the number field.

Does anyone know of a better way to pull an existing EPMDocument from Windchill for use in a custom classor how to retrieve the ID number the call above references?

Thank you in advance.


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.
0 REPLIES 0
Top Tags