データ管理機能 > 部品構造の管理 > Windchill のオプションとバリエーションの機能 > オプションとバリエーションのデータの管理 - リファレンス > オプションとバリエーションのデータのロード > 「除く」規則
  
「除く」規則
Windchill ローダーを使用して、com.ptc.windchill.option.model.ChoiceConstraint オブジェクトを Windchill データベースに読み込みます。
XML フォーマット:
<csvBeginChoiceConstraint handler= "com.ptc.windchill.option.load.Loader.
beginChoiceConstraint" >
<csvconstraintName>「除く」規則の名前</csvconstraintName>
<csvconstraintDescription>「除く」規則の説明</csvconstraintDescription>
<csvlocal>ローカル制約の場合に指定</csvlocal>
<csvoptionSet>「除く」規則がローカルの場合に指定するオプションセットの名前</csvoptionSet>
<csvmerged>true</csvmerged>
</csvBeginChoiceConstraint >
<csvConstraintChoice handler="com.ptc.windchill.option.load.Loader.constraintChoice" >
<csvname>「除く」規則の選択肢の名前</csvname>
<csvcontainerPath>選択肢コンテナのパス</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" />