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

WTPart - EPMDocument Association

Highlighted
Level 1

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.