在windchill8.0 中如何查詢產品(WTProduct)關聯的所有零件(WTPart)

背景描述:在windchill8.0 中,要查詢產品(WTProduct)關聯的所有零件(WTPart)相關信息 解決方法一: wt.vc.config.LatestConfigSpec spec = new LatestConfigSpec(); //如果要實現所有版本的查詢,則用:wt.part.WTPartConfigSpec spec = WTPartConfigSpec.newWTPartConfigSpec(); for(qr = WTPartHelper.service.getUsesWTParts(product, spec); qr.hasMoreElements();){ Object[] temp = (Object[])qr.nextElement(); WTPartMaster master = link.getUses(); WTPart mPart = (WTPart)temp[1]; }
發佈了44 篇原創文章 · 獲贊 0 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章