Fonctionnalités de gestion des données > Gestion de structures d'article > Fonctionnalités des Options et variantes Windchill > Gestion de données pour les Options et variantes — Référence > Chargement de données pour les Options et variantes > Choix associés au mappage de choix
  
Choix associés au mappage de choix
Chargez l'objet com.ptc.windchill.option.model.ChoiceMappableChoiceLink dans la base de données Windchill à l'aide du chargeur Windchill. Grâce à cette association, un choix peut être associé aux objets ChoiceMapable, tels que WTPartUageLink, NavigationFilter, etc. et les choix peuvent servir à filtrer la structure. Ce programme de chargement doit être utilisé conjointement avec les programmes de chargement PartUsageLink et NavigationFilter.
Format XML :
. . .
<csvChoiceMappableChoiceLink handler= "com.ptc.windchill.option.load.Loader.
createChoiceMappableChoiceLink" >
<csvchoiceName>nom du choix</csvchoiceName>
<csvExclude>choix d'exclusion Oui/Non</csvExclude>
</csvChoiceMappableChoiceLink >
. . .
Attributs pour csvChoiceMappableChoiceLink
Attribut
Description
Obligatoire ou facultatif ?
csvchoiceName
Nom de choix
Obligatoire
csvoption
Nom de l'option pour laquelle le choix a été défini
Facultatif
csvInstanceValue
Doit être inclus mais ne nécessite pas de valeur
csvExclude
Doit être inclus mais ne nécessite pas de valeur
csvcontainerPath
Chemin d'accès au contexte pour le choix (csvchoiceName) pour lequel vous créez l'élément ChoiceMappableChoiceLink
Facultatif
Exemple :
<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"/>
Exemple de filtre de navigation