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 >
. . .
Table 21. Attributes for csvChoiceMappableChoiceLink
Attribute
Description
Required or Optional?
csvchoiceName
Choice name
Optional
csvchoiceNumber
Choice number
Optional
csvoption
Option name for which the choice was defined
Optional
csvoptionNumber
Option number 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
* 
The ATONavigationFilter is a Choice Mappable object, however it does not support the loader. For more information, see Associate Choices to ATONavigationFilter.
* 
* 
While both csvchoiceName and csvchoiceNumber are optional attributes, you must specify at least one of them.
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"/>
Est-ce que cela a été utile ?