|
|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!4 n7 ?: b/ U% \
/*下面是给器件添加REF的代码:- s N% B6 i) H# }' _' r
if(car(n0->violations)->isMirrored then3 y3 t4 g& E! u2 X/ A& w/ h" U
layer = "BOTTOM"! h1 w; ]6 R4 Y# J, C' w
else
0 M5 m- @# E e) s% n; ~2 W x: ?layer = "TOP"
2 X: G2 Q6 `4 a! y# u: }, l4 g% l7 X)
/ Q3 ~; c2 k7 s5 l% B4 ytextstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
4 N8 j" k( h9 T( K1 b' ftt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
9 T J8 Q$ D$ F# w$ Z% g" Aunless(tt- G8 g/ V& S+ L
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))/ {0 V7 B$ K1 E6 q
)* C! V0 B, d6 y
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))( x8 @$ `5 a1 A; |0 ?( |5 e
unless(tt
. M2 `8 S5 d5 |5 t" V- L r4 yaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))2 P1 Z, N" R/ h1 b) s
) |
|