数据管理功能 > 管理部件结构 > Windchill 选项与变型功能 > 管理选项和变型的数据 - 参考 > 将数据加载到选项和变型中 > 将选择关联到选择可映射
  
将选择关联到选择可映射
使用 Windchill 加载程序将 com.ptc.windchill.option.model.ChoiceMappableChoiceLink 对象加载到 Windchill 数据库中。利用此关联,选择可以与 ChoiceMapable 对象 (如 WTPartUageLink、NavigationFilter 等) 关联。利用此关联,可将选择用于筛选结构。此加载程序必须与 PartUsageLink 和 NavigationFilter 加载程序配合使用。
XML 格式:
. . .
<csvChoiceMappableChoiceLink handler= "com.ptc.windchill.option.load.Loader.
createChoiceMappableChoiceLink" >
<csvchoiceName>choice name</csvchoiceName>
<csvExclude>exclude choice Yes/No</csvExclude>
</csvChoiceMappableChoiceLink >
. . .
csvChoiceMappableChoiceLink 的属性
属性
说明
是必需还是可选?
csvchoiceName
选择名称
必需
csvoption
为之定义选择的选项名称
可选
csvInstanceValue
应被包含但不需要值
csvExclude
应被包含但不需要值
csvcontainerPath
您为之创建 ChoiceMappableChoiceLink 的选择 (csvchoiceName) 所在上下文的路径
可选
示例:
<csvBeginOccurrencedAssemblyAdd handler="wt.part.LoadPart.beginOccurrencedAssemblyAdd">
<csvassemblyPartNumber>Car</csvassemblyPartNumber>
<csvassemblyPartVersion/>
<csvconstituentPartNumber>Red Glossy Body</csvconstituentPartNumber>
<csvconstituentPartQty>1</csvconstituentPartQty>
<csvconstituentPartUnit>ea</csvconstituentPartUnit>
<csvlineNumber/>
<csvfindNumber/>
<csvoccurrenceLocation>0.0 0.0 0.0 0.0 0.0 0.0</csvoccurrenceLocation>
<csvreferenceDesignator>Body</csvreferenceDesignator>
<csvassemblyPartIteration/>
<csvassemblyPartView>Design</csvassemblyPartView>
<csvorganizationName/>
<csvorganizationID/>
</csvBeginOccurrencedAssemblyAdd>
<!-- ChoiceMappableChoiceLink -->
<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Red</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>
<!-- ChoiceMappableChoiceLink -->
<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Glossy</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>
<csvEndOccurrencedAssemblyAdd handler="wt.part.LoadPart.endOccurrencedAssemblyAdd"/>
导航筛选器示例