資料管理能力 > 管理零件結構 > Windchill 選項及變體功能 > 管理選項及變體的資料 - 參考 > 載入選項及變體的資料 > 排除規則
  
排除規則
可使用 Windchill 載入程式在 Windchill 資料庫中載入 com.ptc.windchill.option.model.ChoiceConstraint 物件。
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>
</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
小組範本
選用
csvConstraintChoice 的屬性
屬性
描述
必要還是選用?
csvname
由規則指定的成員選擇名稱
必要
csvcontainerPath
成員選擇之前後關聯的路徑
選用
範例:
<csvBeginChoiceConstraint
handler="com.ptc.windchill.option.load.Loader.beginChoiceConstraint">
<csvnumber>ER-00001</csvnumber>
<csvdescription>Red Colour Valid Finish</csvdescription>
</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>
</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>
</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" />