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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Hi Can any one help how I can associate WTPart with EPMDocument

ptc-3953915
1-Newbie

Hi Can any one help how I can associate WTPart with EPMDocument

Hi Can any one help how I can associate WTPart with EPMDocument

1 ACCEPTED SOLUTION

Accepted Solutions

EPMDescribeLink link = EPMDescribeLink.newEPMDescribeLink(wtPart, epmDocument);

PersistenceHelper.manager.save(link);

View solution in original post

5 REPLIES 5

EPMDescribeLink link = EPMDescribeLink.newEPMDescribeLink(wtPart, epmDocument);

PersistenceHelper.manager.save(link);

Thank you Vasiliy for your help I am able to assocaite both the objects

by UI or by code ?

depends of kind of link:

EPMdescribelink is the "content" link. usually used for linking EPMDoc of drawing type

EPMBuild links (Rule and History) have a more complicated behaviour. ... used for 3D models and drives WTPart BOM structure, Creo View Viz and attributes ... (different sub type for this link : owner, image, contributing image ...)

Thank you Gregory for your help,

I am using code to associate wtpart to epmdocument

Be very careful, this is very complex. The CAD relationships can be a combination of links such as build rule links, owner links and describe links and is definitely non-trivial; unless you know exactly what you are doing I would not play with this.

Top Tags