导航条件
使用 Windchill 加载程序将 NavigationCriteria 类型加载到 Windchill 数据库中。
加载程序使用户能够加载浏览条件的内容:
“应用至顶层对象”的值
部件配置规范
ATO 导航筛选器 (可在此筛选器内加载“选项筛选器”、“选项筛选器配置规范”、选定选择等)
XML 格式
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.
beginCreateNavCriteria" >
<csvname>navigation criteria name</csvname>
<csvuser>windchill user for whom navigation criteria is to be created</csvuser>
<csvpartNumber>part number to which this criteria needs to be applied</csvpartNumber>
</csvBeginNavCriteria>
. . .
<csvEndNavCriteria handler= "com.ptc.windchill.option.load.Loader.endNavCriteria" />
csvBeginNavCriteria 的属性
属性
说明
是必需还是可选?
csvname
导航条件名称
必需
csvuser
用户名
可选
csvpartNumber
与导航条件关联的部件编号
必需
csvapplyToTop
指示符,用于指定“应用至顶层对象”的值 (true 或 false)。
可选
示例
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.beginCreateNavCriteria">
<csvname>NavCriteria001</csvname>
<csvpartNumber>ConfigPart</csvpartNumber>
<csvapplyToTop>false</csvapplyToTop>
</csvBeginNavCriteria>
<csvBeginPartConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.beginConfigSpecsHandle">
</csvBeginPartConfigSpecs>
<csvPartConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec1</csvconfigspecname>
<csvviewname></csvviewname>
<csvlifecyclestate>INWORK</csvlifecyclestate>
<csveffectivitydate>2020-04-05</csveffectivitydate>
</csvPartConfigSpec>
<csvEndPartConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.endConfigSpecsHandle"/>
<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader.beginCreateNavFilter">
<csvoptionSet>OptionSet-1</csvoptionSet>
<csvoptionsetRevision>A</csvoptionsetRevision>
<csvfilterMode>1</csvfilterMode>
<csvdisableRuleChecking>true</csvdisableRuleChecking>
</csvBeginNavFilter>
<csvBeginOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.beginConfigSpecsHandle">
<csveffectivityformat>dd/MM/yyyy</csveffectivityformat>
</csvBeginOptionFilterConfigSpecs>
<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec1</csvconfigspecname>
<csvlifecyclestate></csvlifecyclestate>
</csvOptionFilterConfigSpec>
<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec2</csvconfigspecname>
<csveffectivitydate>07/02/2020</csveffectivitydate>
</csvOptionFilterConfigSpec>
<csvEndOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.endConfigSpecsHandle"/>
<csvEndNavFilter handler="com.ptc.windchill.option.load.Loader.endCreateNavFilter"/>
<csvEndNavCriteria handler="com.ptc.windchill.option.load.Loader.endNavCriteria"/>
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.beginCreateNavCriteria">
<csvname>Red Colour Body</csvname>
<csvuser>demo</csvuser>
<csvpartNumber>Body</csvpartNumber>
</csvBeginNavCriteria>
<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader. beginCreateNavFilter">
<csvoptionSet>Colour Pallet</csvoptionSet>
</csvBeginNavFilter>
<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Red</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>
<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Glossy</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>
<csvEndNavFilter handler="com.ptc.windchill.option.load.Loader.endCreateNavFilter"/>
<csvEndNavCriteria handler="com.ptc.windchill.option.load.Loader.endNavCriteria"/>
这对您有帮助吗?