Data Management Capabilities > Managing Part Structures > Windchill Options and Variants Capabilities > Managing Data for Options and Variants — Reference > Loading Data for Options and Variants > Add Choices to an Option Set
  
Add Choices to an Option Set
Load the com.ptc.windchill.option.model.OptionSetMemberLink object in the Windchill database using Windchill loader. In order to associate a choice to the option set, choices must exist in the system. The sequence in which the choices are added to the Option Set is used as the default display order for a given option. This is used in conjunction with the create option set loader.
XML Format:
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice" >
<csvname>choice name</csvname>
<csvcontainerPath>container of choice to search for choice to be added
</csvcontainerPath>
<csvmerged>true</csvmerged>
</csvAddChoice>
Attributes for csvAddChoice
Attribute
Description
Required or Optional?
csvname
Choice name
Required
csvoption
Option name for which the choice was defined
Optional
csvcontainerPath
Path to the context where the choice resides
Optional
csvstartDate
Start date for the choice’s effectivity
Optional
csvendDate
End date for the choice’s effectivity
Optional
csvmerged
Specify whether the choice is merged
Optional
Example:
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Red</csvname>
<csvcontainerPath />
<csvmerged>true</csvmerged>
</csvAddChoice>