I am trying to retrieve the CAD model of a part in order to store it in an external application.
I started doing that with info*engine. With info*engine i can retrieve the history of a part, or link two parts together but i didn't find a way to extract the part from windchill.
Any one have an idea how to proceed? Is the use of info*engine the correct way to do that?
You can do this by Windchill specific API in your java code. Info*engine not needed.
QueryResult qresult = PersistenceHelper.manager.navigate(prt, EPMBuildRule.ROLE_AOBJECT_ROLE, EPMBuildRule.class, true);
Here prt
is your wtpart which have cad data in it.
还有一个带有静态方法的帮助程序类,可以帮助您:
EPMDocument[] epmDocs = ObjectDependencyUtility.getAssociated(part);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.