|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!
$ q0 d3 i6 w5 I) p0 c- r$ f" ]/*下面是给器件添加REF的代码:) h" ^9 L. x0 C) N7 W
if(car(n0->violations)->isMirrored then, f7 H2 _) \1 r# E I" q4 b
layer = "BOTTOM"8 C- _: E# | k; P- z9 K0 \
else, E$ l+ H( l. n( j
layer = "TOP"
( R w& A: l5 Q" m2 J" c)( v5 T, f" ]+ G, G5 d; B2 L1 j/ |, Y& \ E
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")( T" g) l( K. ~4 J1 {
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))! z) H/ f! `' @$ p+ m4 ^
unless(tt
, d5 o. L8 c0 G. w/ ^$ Z7 [" HaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
1 |/ F% V, n! g' k4 R; h)
^* I8 \6 w+ s& B) T6 Wtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))3 O% r# q" s/ @
unless(tt; Q8 Q6 |% ~1 @
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations)), v, M& ~# W# G/ b0 R
) |
|