|
|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!: I! t- f) _7 }+ O5 Q
/*下面是给器件添加REF的代码:
8 F' ], j/ u* ~, x, x: V4 R) h7 |if(car(n0->violations)->isMirrored then) i1 u a8 I7 `( _/ b2 V
layer = "BOTTOM"
7 g0 B# c# k4 H$ U$ Lelse. Y+ e, N2 v" z! p
layer = "TOP"4 n3 V9 A) @- J: N
)4 x5 Z' {/ |2 F* S3 ^
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center") T0 [5 S- b* I8 }* k
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))3 I5 p! Q0 L0 O5 A2 ^ ~7 X
unless(tt* K- `) y, Z9 i: ~, }( S
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
5 D& k2 U/ `! F$ ^0 G) w w( G3 S)
5 H$ ?5 o5 k0 ^ I btt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer)) h0 y9 K) i) U# O1 X) y' A6 O( n6 c
unless(tt! o3 O% Y0 n% S) n* W4 J8 d
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
+ h, R* u6 n+ Y) _) |
|