Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Build link between cad and part in Windchill through code

$
0
0

Use code below to connect Cad and Part with Owner Link (Pass 4 in parameter for creating Image build type)

ReferenceFactory factory=

 

new ReferenceFactory();

WTPart wtpart = (WTPart)factory.getReference(

 

"<WT Part Obid>").getObject();

EPMDocument doc=(EPMDocument)factory.getReference(

 

"<cad Doc Obid>").getObject();

EPMBuildRuleAssociationLink link = EPMBuildRuleAssociationLink.newEPMBuildRuleAssociationLink(doc, wtpart, 0, 4);

 

PersistenceHelper.

 

manager.store(link);


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>