cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Creating epmdocs at higher revisions

stefan.trew
1-Newbie

Creating epmdocs at higher revisions

Good day all

Is there anyway that one can create epmdocs at higher revisions (eg D.1) by using the Java API. I could do it for WTDocs and WTParts using the Dataloader but I dont see any indication that one can use the dataloader for epm obejcts.

The code below shows how I am creating the epm doc.

Any help would be greatly appreciated.

public static EPMDocument createEMPDoc(Folder folder,String number, String name, String cadname,String type)
{
EPMDocument doc =null;
try
{
EPMContextHelper.setApplication(EPMApplicationType.toEPMApplicationType("EPM"));
doc = EPMDocument.newEPMDocument(number.replaceAll(" ","),name, EPMAuthoringAppType.toEPMAuthoringAppType("PROE"),EPMDocumentType.toEPMDocumentType(type),cadname);
FolderHelper.assignLocation(doc,folder);
PersistenceHelper.manager.store( doc );

}
catch (WTPropertyVetoException e)
{
e.printStackTrace();
}
catch (wt.pom.UniquenessException e)
{
e.printStackTrace();
}
catch (WTException wte)
{
wte.printStackTrace();
}
return doc;


}

Thank you,

Stefan

3 REPLIES 3

Simple - just leverage CAD Doc templates in the Pro/E workspace

Prior to check in of the new epmdocs in a workspace you can revise the 
epmdocs and set the initial version too, doesn't just have to come 
from a CAD doc template.

Steve D.



On Aug 17, 2009, at 7:33 PM, "Menendez,Frank,IRVINE,R&D" <frank.menendez@alconlabs.com <br="/> > wrote:

> Simple - just leverage CAD Doc templates in the Pro/E workspace
>

There should be a preference to allow users to set revision.
Top Tags