Skip to main content
1-Visitor
February 5, 2014
Solved

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

  • February 5, 2014
  • 3 replies
  • 2224 views

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

Best answer by VasiliyRepecki

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

PersistenceHelper.manager.save(link);

3 replies

1-Visitor
February 5, 2014

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

PersistenceHelper.manager.save(link);

1-Visitor
February 5, 2014

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

GregoryPERASSO
16-Pearl
February 5, 2014

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 ...)

1-Visitor
February 5, 2014

Thank you Gregory for your help,

I am using code to associate wtpart to epmdocument

1-Visitor
February 5, 2014

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.