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

How to create an EPMDocument using a robot.

$
0
0

Hi everyone,

 

I am currently trying to create an EPMDocument by using a robot. More specifically, I would like to use a robot to create a notebook, as it is called in Creo (or "layout", if you're using Pro Engineer Wildfire). Does anyone know how to do that? Unfortunately, I don't quite know how to use the classes EPMDocumentType, EPMAuthoringAppTyp and EPMDocSupType.

Can somebody please help me with that?

I'd appreciate it.

Thanks a lot.

 

Willi

 

 

 

Hi again!

 

I found this for creating an EPMDocument, but it didn't work.

 

EPMDocument doc = EPMDocument.newEPMDocument (<number>, <name>, <EPMAuthoringAppType authoring App>, <EPMDocumentType docType>, <CADName>);

 

so I tried this:

 

wt.epm.EPMAuthoringAppType at = wt.epm.EPMAuthoringAppType.toEPMAuthoringAppType("PROE");

wt.epm.EPMDocumentType dt = wt.epm.EPMDocumentType.toEPMDocumentType("LAYOUT");

                         

wt.epm.EPMDocument layout=wt.epm.EPMDocument.newEPMDocument(vergabeNumberLayout, vergabeNameLayout, at, dt, vergabeCADNameLayout);

 

layout.setContainer(pt);

wt.fc.PersistenceHelper.manager.save(layout);

 

In the "Workflow Process Administration" I got the error: The value of "Owner Application" cannot be set to null, since it is a "required" attribute.

I really don't know how to fix this.

 

Can someone please help me?

 

Willi

 



Viewing all articles
Browse latest Browse all 8876

Trending Articles



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