数据管理功能 > 管理部件结构 > Windchill 选项与变型功能 > 管理选项和变型的数据 - 参考 > 将数据加载到选项和变型中 > 排除规则
  
排除规则
使用 Windchill 加载程序将 com.ptc.windchill.option.model.ChoiceConstraint 对象加载到 Windchill 数据库中。
XML 格式:
<csvBeginChoiceConstraint handler= "com.ptc.windchill.option.load.Loader.
beginChoiceConstraint" >
<csvconstraintName>exclude rule name</csvconstraintName>
<csvconstraintDescription>exclude rule description</csvconstraintDescription>
<csvlocal>specify if local constraint</csvlocal>
<csvoptionSet>name of option set where exclude rule is local</csvoptionSet>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint >
<csvConstraintChoice handler="com.ptc.windchill.option.load.Loader.constraintChoice" >
<csvname>exclude rule choice name</csvname>
<csvcontainerPath>choice container path</csvcontainerPath>
</csvConstraintChoice >
. . .
. . .
<csvEndChoiceConstraint handler="com.ptc.windchill.esi.load.endChoiceConstraint" />
csvBeginChoiceConstraint 的属性
属性
说明
是必需还是可选?
csvnumber
规则编号
可选
csvversion
规则的版本
可选
csviteration
规则的小版本
可选
csvdescription
规则说明
可选
csvlocal
指定是否为本地规则
可选
csvoptionSet
指定为之创建规则的选项集
可选
csvlifecycletemplate
生命周期模板
可选
csvlifecyclestate
生命周期状态
可选
csvteamTemplate
团队模板
可选
csvmerged
指定是否已合并规则
可选
csvConstraintChoice 的属性
属性
说明
是必需还是可选?
csvname
由规则指定的成员选择的名称
必需
csvcontainerPath
成员选择所在上下文的路径
可选
示例:
<csvBeginChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.beginChoiceConstraint">
<csvnumber>ER-00001</csvnumber>
<csvdescription>Red Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Red</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />
<csvBeginChoiceConstraint
handler"com.ptc.windchill.option.load.Loader.beginChoiceConstraint"=>
<csvnumber>ER-00002</csvnumber>
<csvdescription>Green Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Green</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />
<csvBeginChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.beginChoiceConstraint">
<csvnumber>ER-00003</csvnumber>
<csvdescription>Blue Colour Valid Finish</csvdescription>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Blue</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Glossy</csvname>
</csvConstraintChoice>
<csvConstraintChoice
handler="com.ptc.windchill.option.load.Loader.constraintChoice">
<csvname>Matt</csvname>
</csvConstraintChoice>
<csvEndChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.endChoiceConstraint" />