Data Management Capabilities > Managing Part Structures > Windchill Options and Variants Capabilities > Managing Data for Options and Variants — Reference > Loading Data for Options and Variants > Enable Rule
  
Enable Rule
Load the com.ptc.windchill.option.model.ChoiceEnable object in Windchill database using the Windchill loader.
XML Format:
<!ELEMENT csvBeginChoiceEnable (csvsourceChoiceName,csvnumber?,csvversion?, csviteration?,csvdescription?,csvlocal?,csvoptionSet?,csvcontainerPath?,csvlifecycletemplate?,csvlifecyclestate?,csvteamTemplate?)>

<!ELEMENT csvChoiceEnableTargetChoice (csvtargetChoiceName,csvcontainerPath?)>

<csvBeginChoiceEnable handler="com.ptc.windchill.option.load.Loader.beginChoiceEnable"><csvsourceChoiceName>D0005</csvsourceChoiceName>
<csvlocal>true</csvlocal>
<csvoptionSet>Bicycle Option Set Template</csvoptionSet>
<csvcontainerPath />
</csvBeginChoiceEnable>

<csvChoiceEnableTargetChoice handler="com.ptc.windchill.option.load.Loader.createChoiceEnableTargetChoice">
<csvtargetChoiceName>D0022</csvtargetChoiceName>
<csvcontainerPath />
</csvChoiceEnableTargetChoice>
<csvChoiceEnableTargetChoice handler="com.ptc.windchill.option.load.Loader.createChoiceEnableTargetChoice">
<csvtargetChoiceName>D0025</csvtargetChoiceName>
<csvcontainerPath />
</csvChoiceEnableTargetChoice>

<csvEndChoiceEnable handler="com.ptc.windchill.option.load.Loader.endChoiceEnable" />
Attributes for csvBeginChoiceEnable
Attribute
Description
Required or Optional?
csvsourceChoiceName
Source choice name
Required
csvnumber
Rule number
Optional
csvversion
Version of the rule
Optional
csviteration
Iteration of the rule
Optional
csvdescription
Rule description
Optional
csvlocal
Specifies whether the rule is local
Optional
csvoptionSet
Specify the option set for which the rule was created
Optional
csvcontainerPath
Path to the context where the source resides
Optional
csvlifecycletemplate
Lifecycle template
Optional
csvlifecyclestate
Lifecycle state
Optional
csvteamTemplate
Team template
Optional
Attributes for csvChoiceEnableTargetChoice
Attribute
Description
Required or Optional?
csvtargetChoiceName
Target choice name
Required
csvcontainerPath
Path to the context where the target choice resides
Optional