|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!, i+ I" c% g7 c! v7 r
/*下面是给器件添加REF的代码:
) w# ~5 q! s/ vif(car(n0->violations)->isMirrored then
% W* k% ?# l1 |* A9 y' v' x5 dlayer = "BOTTOM". d- O- F R$ a: d4 [3 B8 n
else: w+ `/ l) D& E( u7 T: ?# `
layer = "TOP"
2 X6 t$ a3 |: P/ Q/ f* [1 W)' f/ O$ J, q/ b
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
0 C% j1 m* V& i+ \: ^2 [% J8 q8 c; Stt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
7 T4 w! e* d0 N9 C* funless(tt5 K' x; }0 e3 _% r
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
@4 n5 O6 |! I)' ]; U5 I' ]* c) T6 T! V1 z
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))
# J- y; t, S: R2 V; V$ j/ Tunless(tt, P% h4 t( W/ T
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
$ U3 t4 Y& b7 d6 ?( b4 r) |
|