Option Set
Load the com.ptc.windchill.option.model.OptionSet object and the option set subtype in the Windchill database using Windchill loader.
XML Format
<csvBeginOptionSet handler="com.ptc.windchill.option.load.Loader.beginCreateOptionSet" >
<csvname>option set name</csvname>
<csvtypedef>option set type to be created</csvtypedef>
<csvdescription>description of option set</csvdescription>
<csvsupportExclusionOptionChoices>option set choice for exclusion true/false
</csvsupportExclusionOptionChoices>
<csvsupportItemOptionChoices>support choice association on items from
this option set true/false
</csvsupportItemOptionChoices>
<csvreferenceOptionPoolRulesAutomatically>automatically reference rules from pool to
this option set true/false
</csvsupportItemOptionChoices>
<csvmerged>true</csvmerged>
</csvBeginOptionSet>
<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>
</csvAddChoice>
...
...
<csvEndOptionSet handler= "com.ptc.windchill.option.load.Loader.endCreateOptionSet" />
Attributes for csvBeginOptionSet
Attribute
Description
Required or Optional?
csvname
Option set name
Required
csvtypedef
Windchill object type
Optional
csvdescription
Option set description
Optional
csvsupportExclusionOptionChoices
Specifies whether the option set supports exclude choices
Optional
csvsupportItemOptionChoices
Controls the assignment of choices to a product structure. If the value of this attribute is set to No, users can assign choices to configurable modules and to their usage links. If it is set to Yes, users may assign choices to standard (i.e., non-configurable) parts as well. By default, this attribute is set to No.
Optional
csvsupportEffectivityOnOptionChoices
Specifies whether the option set supports effectivity for choices
Optional
csvreferenceOptionPoolRulesAutomatically
Specifies whether global rules should be inherited by the option set
Optional
csvmerged
Specify whether the option set is merged
Optional
Example
<csvBeginOptionSet handler="com.ptc.windchill.option.load.Loader.beginCreateOptionSet">
<csvname>Colour Pallet</csvname>
<csvdescription>Colour Pallet To Select Color</csvdescription>
<csvsupportExclusionOptionChoices>true</csvsupportExclusionOptionChoices>
<csvsupportItemOptionChoices>true</csvsupportItemOptionChoices>
<csvsupportEffectivityOnOptionChoices>true</csvsupportEffectivityOnOptionChoices>
<csvreferenceOptionPoolRulesAutomatically>true
</csvreferenceOptionPoolRulesAutomatically>
<csvmerged>true</csvmerged>

</csvBeginOptionSet>
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Red</csvname>
<csvcontainerPath />
<csvmerged>true</csvmerged>
</csvAddChoice>
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Green</csvname>
<csvcontainerPath />
</csvAddChoice>
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Blue</csvname>
<csvcontainerPath />
</csvAddChoice>
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Glossy</csvname>
<csvcontainerPath />
</csvAddChoice>
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Matt</csvname>
<csvcontainerPath />
</csvAddChoice>
<csvEndOptionSet handler="com.ptc.windchill.option.load.Loader.endCreateOptionSet" />
Was this helpful?