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 />
<csvmerged>true</csvmerged>
</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
csvmerged
Specify whether the rule is merged
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
Example:
<csvBeginChoiceEnable handler="com.ptc.windchill.option.load.Loader.beginChoiceEnable">
<csvsourceChoiceName>D0001</csvsourceChoiceName>
<csvlocal>true</csvlocal>
<csvoptionSet>Bicycle1 Option Set Template</csvoptionSet>
<csvcontainerPath />
<csvmerged>true</csvmerged>
</csvBeginChoiceEnable>

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

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

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

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

<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" />

<csvBeginChoiceEnable handler="com.ptc.windchill.option.load.Loader.beginChoiceEnable">
<csvsourceChoiceName>D0005</csvsourceChoiceName>
<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" />