用例 3:复制特定工厂和工厂属性值
假设 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
将值为 String3 的工厂属性 Attribute3 分配给工厂 Berlin
将值为 String2 的工厂属性 Attribute2 分配给工厂 Munich
将值为 String4 的工厂属性 Attribute4 分配给工厂 Munich
需求:复制特定工厂和工厂属性值。
1. 访问位于 Windchill/codebase/com/ptc/windchill/mpml/xconfsmpmlink.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=Berlin@CopyAttributes::Attribute3"/>
* 
此特性可确保仅复制 Berlin 工厂。要执行此操作,请将 IdentityAttributes:: 设为 view=Berlin
此特性还可确保在本例中仅复制特定工厂属性值 Attribute3。要执行此操作,请将 @CopyAttributes:: 设为 Attribute3
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) 之间创建了拆分对等链接。
这对您有帮助吗?