|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!
: c6 B4 {' P" Q" B2 }2 s& r) w3 i/*下面是给器件添加REF的代码:+ t; |, C' J* F6 s# I
if(car(n0->violations)->isMirrored then
8 U; [2 k8 m" t: R1 b. [5 zlayer = "BOTTOM"; V1 l# y* Q( E7 J# N& k/ @
else; G9 j# d3 q5 F' M4 A! o6 |! i/ c
layer = "TOP"1 { G2 T3 \( i& Z7 i+ l6 H0 k
)& c$ D( ?* i+ J+ D# F: E, k
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")' N+ S2 S! {" z1 E% C0 b$ S9 J
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))+ H( q! G6 X+ c$ E0 C. P) G/ B: n+ w
unless(tt
; x+ Y9 m6 L; |% a, N% L0 taxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
6 u' u3 {7 _9 _+ R9 ~4 L$ P)
* b; w' B, d# p: d; f1 Q$ \tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))5 E) t# X8 ]% Y/ U' E0 G, H
unless(tt
# y, X2 j! V( y! ^9 _7 m: laxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
4 j8 E) f8 N: `7 c* b6 f) Y2 Q) |
|