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

Workflow Code to get ProE drawing's model

dgraham-4
1-Newbie

Workflow Code to get ProE drawing's model

Given a proe drawing I need to get the drawings model.

Anyone have the code to do this?

Thanks in advance,

David Graham
2 REPLIES 2
avillanueva
22-Sapphire I
(To:dgraham-4)

Try this service

EPMStructureHelper.service


avillanueva
22-Sapphire I
(To:dgraham-4)


result=EPMStructureHelper.service.navigateReferencedBy((DocumentMaster)c
adDoc.getMaster(),null,true);

while(result.hasMoreElements())

{

Object o=result.nextElement();

if (o instanceof EPMDocument)

{

cadDoc=(EPMDocument)o;

if (verbose)

System.out.println("Getting Drawing - " +
cadDoc.getCADName());

if
(cadDoc.getDocType().getStringValue().equals("wt.epm.EPMDocumentType.CAD
DRAWING"))

{


Top Tags