|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!1 Q7 u+ z, d5 d* j* J
/*下面是给器件添加REF的代码:
3 c! ]1 r, |* mif(car(n0->violations)->isMirrored then
% M5 F0 Q, B" player = "BOTTOM"- E4 z; E& z7 y) u4 i' }
else
1 y1 }$ v/ T- f' n7 j9 u0 Blayer = "TOP"! a, {5 b7 Q+ x4 Y
)0 D9 b+ A. I: f. m3 ~' W
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
) x$ _) a# M8 R5 dtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
1 B: P6 k5 P( X" }! D6 `4 N2 N' L% Wunless(tt; p. p- P8 m) w, H: S4 p7 P( ]# [
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
8 H) I1 u- v4 @/ I7 L)# _8 a' _/ f% Q' K1 C B
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))5 j5 a4 s, q+ ?4 ~3 U) e ? }4 |
unless(tt
. H0 D4 H4 S4 iaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
6 q4 f. i N- W. P) |
|