Associate Choices to Choice Mappable
Load the com.ptc.windchill.option.model.ChoiceMappableChoiceLink object into the Windchill database using Windchill loader. With this association, a choice can be associated with ChoiceMapable objects such as WTPartUageLink, NavigationFilter etc. With this association, choices can be used for filtering structure. This loader must be used in conjunction with PartUsageLink and NavigationFilter loaders.
XML Format:
. . .
<csvChoiceMappableChoiceLink handler= "com.ptc.windchill.option.load.Loader.
createChoiceMappableChoiceLink" >
<csvchoiceName>choice name</csvchoiceName>
<csvExclude>exclude choice Yes/No</csvExclude>
</csvChoiceMappableChoiceLink >
. . .
Attributes for csvChoiceMappableChoiceLink
Attribute
|
Description
|
Required or Optional?
|
csvchoiceName
|
Choice name
|
Required
|
csvoption
|
Option name for which the choice was defined
|
Optional
|
csvInstanceValue
|
|
Should be included but does not require a value
|
csvExclude
|
|
Should be included but does not require a value
|
csvcontainerPath
|
Path to the context for the choice (csvchoiceName) for which you are creating the ChoiceMappableChoiceLink
|
Optional
|
Example:
<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"/>
Navigation Filter Example