根据WTPartMaster获取其对应的所有WTPart的方法:
LatestConfigSpec latestconfigspec = new LatestConfigSpec();
QueryResult queryresult = ConfigHelper.service.filteredIterationsOf(partMaster, latestconfigspec);
获取小版本的方法:
VersionControlHelper.getIterationIdentifier((Iterated)wtpart).getValue();
System.out.println(wtpart.getName());
System.out.println(wtpart.getNumber());
System.out.println(wtpart.getVersionDisplayIdentifier().getLocalizedMessage(Locale.CHINA));
System.out.println(wtpart.getVersionDisplayIdentity().getLocalizedMessage(Locale.CHINA));
System.out.println(wtpart.getVersionDisplayType().getLocalizedMessage(Locale.CHINA));
System.out.println(wtpart.getVersionIdentifier().getValue());
System.out.println(wtpart.getVersionInfo().getIdentifier().getValue());
System.out.println(wtpart.getView().getName());
System.out.println(wtpart.getViewName());
显示的结果为:
GOLF_CART
GC000001
A.A (Manufactur
修订 (视图) A.A
修订 (视图)
A.A
A.A
Manufacturing
Manufacturing
关于WTPart、EPMDocument和CAD图纸的问题
我已知一个WTPart对象,怎么才能得到该对象的CAD图纸呢
有人说是要先得到EPMDocument,那么我怎么从EPMDocument里面拿到这张图纸呢
供参考:
contentholder = ContentHelper.service.getContents(contentholder);
Enumeration enum = ContentHelper.getContentListAll(contentholder).elements();
while (enum != null && enum.hasMoreElements())
{
ContentItem item = (ContentItem) enum.nextElement();
if (item instanceof ApplicationData)
{
ApplicationData appData = (ApplicationData) item;
ContentServerHelper.service.writeContentStream(appData, pathName + File.separator + appData.getFileName());
}
}
请查阅相关API。
根据WTPartMaster获取其对应的所有WTPart的方法
猜你喜欢
转载自katch-chou.iteye.com/blog/1035552
今日推荐
周排行