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

Code for renaming EPMDoc Number and Filename

$
0
0

I'm using the code shown in PTC CS150421 to rename (number and filename) for CADDocs.

 

EPMDocumentMasterIdentity masterIdentity = (EPMDocumentMasterIdentity)master.getIdentificationObject(); 

masterIdentity.setNumber(number);

IdentityHelper.service.changeIdentity((Identified) master, masterIdentity);

 

master = (EPMDocumentMaster) PersistenceHelper.manager.refresh(master);

 

WTKeyedMap docCadNameMap = new WTKeyedHashMap(1);

docCadNameMap.put(master, cadname);

EPMDocumentHelper.service.changeCADName(docCadNameMap);

 

The problem I'm having is when opening in Pro/E, I get file cannot be retrieved. I see downloaded successful and see it in the workspace. The number and filename all show the new name in the PDMLink UI. Even the filename on the content tab updates.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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