You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="GBK"?>
<Rules>
<!--
author : raywei
date : 2012-8-24
介绍 :
default : 即在TC系统中创建Item默认使用的类型如果没有配置则使用系统Item类型
-->
<typerule default="D5Part">
<!--
seq 代表规则序号不可随便更改必须从1开始递增步长为1
source 代表要处理的数据是什么,如第一条数据传入的是图号,在第一条数据处理完成后,到下一条规则时,将此条规则的编号传入,
则代表使用的已经处理过的字符串,如果不是指定上一条的规则序号,就使用指定的图纸上的信息提供的字符串
可以使用的属性分别有:
以下四个属性,每条规则只能使用一次
startwith 代表以指定字符创开头
endwith 代表以指定字符串结尾
contain 代表含有指定字符串
equal 代表与指定字符串相等
type 代表此条规则匹配完成后即使用当前type作为对应的Item的类型
true 代表此条规则成功后下一条执行规则的seq序号
false 代表此条规则失败后下一条执行规则的seq序号
-->
<_1 seq="1" source="图号" contain="DR" true="2" false="3"/>
<_2 seq="2" source="" contain="DR8" true="9" false="10" />
<_3 seq="3" source="" startwith="104" true="4" false="5"/>
<_4 seq="4" source="" type="D5StdFasteners"/>
<_5 seq="5" source="" startwith="105" true="4" false="6"/>
<_6 seq="6" source="" startwith="TC" true="7" false="8"/>
<_7 seq="7" source="" type="D5CommonParts" />
<_8 seq="8" source="" type="D5Part" />
<_9 seq="9" source="" contain="CG-" true="11" false="10"/>
<_10 seq="10" source="" contain="DR80" true="17" false="14" />
<_11 seq="11" source="" type="D5PruchasePart"/>
<_12 seq="12" source="材料" equal="装配件" true="13" />
<_13 seq="13" source="" type="D5Product" />
<_14 seq="14" source="材料" equal="装配件" true="15" false="16"/>
<_15 seq="15" source="" type="D5AsmPart" />
<_16 seq="16" source="" type="D5Part" />
<_17 seq="17" source="" endwith="0" true="12" />
</typerule>
</Rules>