启用规则
使用 Windchill 加载程序在 Windchill 数据库中加载 com.ptc.windchill.option.model.ChoiceEnable 对象。
XML 格式
<!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" />
csvBeginChoiceEnable 的属性
属性
说明
是必需还是可选?
csvsourceChoiceName
源选择名称
必需
csvnumber
规则编号
可选
csvversion
规则的版本
可选
csviteration
规则的小版本
可选
csvdescription
规则说明
可选
csvlocal
指定是否为本地规则
可选
csvoptionSet
指定为之创建规则的选项集
可选
csvcontainerPath
源所在上下文的路径
可选
csvlifecycletemplate
生命周期模板
可选
csvlifecyclestate
生命周期状态
可选
csvteamTemplate
团队模板
可选
csvmerged
指定是否已合并规则
可选
csvChoiceEnableTargetChoice 的属性
属性
说明
是必需还是可选?
csvtargetChoiceName
目标选择名称
必需
csvcontainerPath
目标选择所在上下文的路径
可选
示例
<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" />
* 
将局部规则加载到单个选项集版本。有关详细信息,请参阅局部包括、排除、启用和条件型规则的加载方法
这对您有帮助吗?