Datenverwaltungsfunktionen > Teilestrukturen verwalten > WindchillOptions- und Variantenfunktionen > Daten für Optionen und Varianten verwalten - Referenz > Daten für Optionen und Varianten laden > Option und Auswahlmöglichkeiten
  
Option und Auswahlmöglichkeiten
Laden Sie das com.ptc.windchill.option.model.Option-Objekt mit den Optionsuntertypen und zugehörigen Auswahlmöglichkeiten in die Windchill Datenbank mit dem Windchill Ladeprogramm.
Dies ermöglicht Ihnen, alle Auswahlmöglichkeiten zu laden, die einer bestimmten Option als Teil des Optionsladeprozesses zugeordnet sind. Beim Laden der Option erstellt das System die erste Iteration der Option (beispielsweise als A.1) und checkt sie aus. Sobald alle zugeordneten Auswahlmöglichkeiten geladen sind, wird die Option eingecheckt (z.B. als A.2).
* 
Stellen Sie für das richtige Laden der Optionen und Auswahlmöglichkeiten sicher, dass alle öffnenden Tags über die entsprechenden schließenden Tags verfügen.
XML-Format zum Laden einer Option mit ihren zugeordneten Auswahlmöglichkeiten:
<csvBeginOption handler="com.ptc.windchill.option.load.Loader.beginOption" >
<csvtypedef>Zu erstellender Optionstyp</csvtypedef>
<csvname>Optionsname</csvname>
<csvdescription>description</csvdescription>
<csvoptionDataType>option data type STRING/NUMERIC</csvoptionDataType> <!--Optional if using STRING-->
<csvQoMName>QoM name</csvQoMName> <!-- Only needed with NUMERIC options (required) -->
<csvoptionGroup>Optionengruppe</csvoptionGroup>
<csvsingleChoiceSelection>Einzelauswahl True/False</csvsingleChoiceSelection>
<csvrequiredOptionn>Auswahl für Option True/False erfordern</csvrequiredOption>
</csvBeginOption >
<csvBeginChoice handler="com.ptc.windchill.option.load.Loader.beginChoice">
. . .
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>
... n choices
<csvEndOption handler= "com.ptc.windchill.option.load.Loader.endOption" />
Attribute für csvBeginOption
Attribut
Beschreibung
Erforderlich oder optional?
csvtypedef
Windchill Objekttyp
Erforderlich
csvname
Optionsname
Erforderlich
csvnumber
Optionsnummer
Optional
csvdescription
Beschreibung für die Option
Optional
csvoptionGroup
Name der Gruppe, zu der die Option gehört
Optional
csvrequiredOption
Gibt an, ob die Option erforderlich ist
Optional
csvsingleChoiceSelection
Gibt an, ob die Option eine Einzelauswahloption ist
Optional
csvoptionDataType
Gibt an, ob die Option Auswahlmöglichkeiten mit numerischen Werten hat
Optional
csvQoMName
Gibt die Maßgröße für eine Option mit numerischen Werten an
Optional
csvOverrideDisplayUnits
Verwenden Sie dieses Feld, um Überschreibe-Einheiten für das angegebene Einheitensystem im Format SI:mm;MKS:cm festzulegen.
Optional
Attribute für csvBeginChoice
Attribut
Beschreibung
Erforderlich oder optional?
csvname
Auswahlmöglichkeitsname
Erforderlich
csvnumber
Auswahlmöglichkeitsnummer
Optional
csvdescription
Auswahlmöglichkeitsbeschreibung
Optional
csvoption
Optionsname, für den die Auswahlmöglichkeit definiert wurde
Erforderlich
csvtypedef
Windchill Objekttyp
Erforderlich
csvchoiceDataValue
Gibt den Wert für eine numerische Auswahlmöglichkeit an
Optional
Beispiel:
<csvBeginOption handler="com.ptc.windchill.option.load.Loader.beginOption">
<csvtypedef>com.ptc.windchill.option.SalesOption</csvtypedef>
<csvname>Colours</csvname>
<csvoptionGroup>Colour configuration</csvoptionGroup>
<csvsingleChoiceSelection>false</csvsingleChoiceSelection>
</csvBeginOption>
<csvBeginChoice handler="com.ptc.windchill.option.load.Loader.beginChoice">
<csvname>Red</csvname>
<csvdescription>Red</csvdescription>
<csvoption>Colors</csvoption>
<csvtypedef>com.ptc.windchill.option.SalesChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>
<csvBeginChoice handler="com.ptc.windchill.option.load.Loader.beginChoice">
<csvname>Green</csvname>
<csvdescription>Green</csvdescription>
<csvoption>Colors</csvoption>
<csvtypedef>com.ptc.windchill.option.SalesChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>
<csvBeginChoice handler"com.ptc.windchill.option.load.Loader.beginChoice"=>
<csvname>Blue</csvname>
<csvdescription>Blue</csvdescription>\
<csvoption>Colors</csvoption>
<csvtypedef>com.ptc.windchill.option.SalesChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>
<csvBeginChoice handler="com.ptc.windchill.option.load.Loader.beginChoice">
<csvname>Glossy</csvname>
<csvdescription>Glossy</csvdescription>
<csvoption>Finishing</csvoption>
<csvtypedef>com.ptc.windchill.option.SalesChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler=/"com.ptc.windchill.option.load.Loader.endChoice">
<csvBeginChoice handler=>"com.ptc.windchill.option.load.Loader.beginChoice"
<csvname>Matt</csvname>\
<csvdescription>Matt</csvdescription>
<csvoption>Finishing</csvoption>
<csvtypedef>com.ptc.windchill.option.SalesChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>
<csvBeginOption handler="com.ptc.windchill.option.load.Loader.beginOption">
<csvtypedef>com.ptc.windchill.option.SalesOption</csvtypedef>
<csvname>Finishing</csvname>
<csvoptionGroup>Colour configuration</csvoptionGroup>
<csvsingleChoiceSelection>false</csvsingleChoiceSelection>
< csvrequiredChoiceSelection>true</ csvrequiredChoiceSelection>
<csvEndOption handler="com.ptc.windchill.option.load.Loader.endOption"/>
Beispiel für das Laden einer numerischen Option
<csvBeginOption handler="com.ptc.windchill.option.load.Loader.beginOption">
<csvtypedef>com.ptc.windchill.option.DesignOption</csvtypedef>
<csvname>OCTD_LENGTH</csvname>
<csvoptionDataType>NUMERIC</csvoptionDataType>
<csvQoMName>Length</csvQoMName>
<csvOverrideDisplayUnits>SI:cm;MKS:mm</csvOverrideDisplayUnits>   
<csvoptionGroup></csvoptionGroup>
<csvsingleChoiceSelection>True</csvsingleChoiceSelection>
</csvBeginOption>
Beispiel für das Laden einer numerischen Auswahlmöglichkeit
* 
Die Auswahlmöglichkeit erbt den Auswahlmöglichkeitsdatentyp von ihrer Option.
<csvBeginChoice handler="com.ptc.windchill.option.load.Loader.beginChoice">
<csvname>OCTD_10M</csvname>
<csvdescription>OCTD_10M</csvdescription>
<csvchoiceDataValue>10</csvchoiceDataValue>
<csvoption>OCTD_LENGTH</csvoption>
<csvtypedef>com.ptc.windchill.option.DesignChoice</csvtypedef>
</csvBeginChoice>
<csvEndChoice handler="com.ptc.windchill.option.load.Loader.endChoice"/>