使用案例 4:根據下游前後關聯複製目標工廠與工廠屬性值
在此類情境下,工廠特定檢視會顯示在 BOM 轉換器的下游檢視中。例如,Berlin 工廠、Dresden 工廠等。您可根據下游組態規格,在目標工廠下複製工廠與工廠屬性值。
請考慮這樣一種情境:即 BOM 轉換器中存在以下結構:
在此使用案例中,下游前後關聯為 Berlin
Upstream Parent Part (Design)Top Part (Berlin) 之間存在對等連結。
Part C1 (Design) 已獲指派工廠 BerlinMunich
Part C2 (Design)Part C1 (Design) 的子零件。
Part C2 (Design) 的數量為 2
已將值為 String1 的工廠屬性 Attribute1 指派給工廠 Berlin
已將值為 String3 的工廠屬性 Attribute3 指派給工廠 Berlin
已將值為 String2 的工廠屬性 Attribute2 指派給工廠 Munich
已將值為 String4 的工廠屬性 Attribute4 指派給工廠 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::view=target_plant@CopyAttributes::Attribute1"/>
* 
在此使用案例中,下游前後關聯為 BerlinIdentityAttributes::view=target_plant 一詞可確保複製 Berlin 工廠。
@CopyAttributes::Attribute1 一詞可確保僅複製 Attribute1
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) 之間建立分割類型的對等連結。
這是否有幫助?