用例 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/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=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) 之间创建了拆分对等链接。
这对您有帮助吗?