首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

依据WTPartMaster获取其对应的所有WTPart的方法

2012-08-28 
根据WTPartMaster获取其对应的所有WTPart的方法根据WTPartMaster获取其对应的所有WTPart的方法:LatestConf

根据WTPartMaster获取其对应的所有WTPart的方法
根据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。

热点排行