Skip to main content
1-Visitor
February 4, 2010
Question

Workflow Code to get ProE drawing's model

  • February 4, 2010
  • 2 replies
  • 637 views
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

avillanueva
23-Emerald I
February 4, 2010
Try this service

EPMStructureHelper.service


avillanueva
23-Emerald I
February 4, 2010

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

{