使用案例 1:複製所有工廠與工廠屬性值
請考慮這樣一種情境:即 BOM 轉換器中存在以下結構:
Upstream Parent Part (Design)Downstream Parent Part (Manufacturing) 之間存在對等連結。
Part C1 (Design) 已獲指派工廠 BerlinMunich
Part C2 (Design)Part C1 (Design) 的子零件。
Part C2 (Design) 的數量為 2
已將值為 String1 的工廠屬性 Attribute1 指派給工廠 Berlin
已將值為 String2 的工廠屬性 Attribute2 指派給工廠 Munich
需求:將所有工廠與工廠屬性值從上游檢視中的組件複製到在完成實行 「新建/新增」 > 「新建分割組件」後,於下游檢視中建立的分割組件。
1. 存取位於 Windchill/codebase/com/ptc/windchill/mpml/xconfs 中的 mpmlink.properties.xconf 檔案。
2. 設定下列組態:
<Property name="com.ptc.windchill.mpml.copyOver.CopyOverPlantAndDepartmentData" default="true"/>
* 
此內容可讓您複製工廠、工廠屬性、部門及部門屬性。如果將此內容設定為 false,即使您新增了與複製特定工廠、工廠屬性、部門及部門屬性相關的其他內容,亦不會複製工廠、工廠屬性、部門及部門屬性。
找到下列內容:
<Property name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" multivalued="," default=""/>。在此內容下新增下列內容:
<AddToProperty name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" value="IdentityAttributes::@CopyAttributes::ALL_IBAS"/>
* 
此內容可確保複製所有工廠。如果您未在內容中指定 IdentityAttributes:: 的值,則會複製所有工廠。
此內容也可確保複製延用所有工廠屬性值。欲執行此操作,請將 @CopyAttributes:: 設定為 ALL_IBAS
標準屬性不是 IBAS。如果您的企業需求與標準屬性相關,則必須在此內容中新增標準屬性的內部名稱。舉例來說,
<AddToProperty name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" value="IdentityAttributes::@CopyAttributes::ALL_IBAS, Standard_Attribute1, Standard_Attribute2"/>
3. 選取上游檢視中的 Part C1 (Design) 以及下游檢視中的 Downstream Parent Part (Manufacturing)
4. 在上游檢視中,選取 「新建/新增」 > 「新建分割組件」「新建分割組件」對話方塊開啟。
5. 「組裝位置」步驟,建立兩個分割組件:Split Assembly 1Split Assembly 2
6. 「設定參數」步驟,針對 Part C2 (Design),於 Split Assembly 1Split Assembly 2 欄中將數量指派為 1
7. 按一下「完成」。下列結構會顯示在 BOM 轉換器中:
如此即已在 Part C1 (Design)Split Assembly 1(Manufacturing) 之間建立分割類型的對等連結。
如此即已在 Part C1 (Design)Split Assembly 2(Manufacturing) 之間建立分割類型的對等連結。
這是否有幫助?