|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!
5 z4 y8 X/ }8 l0 F0 D/ r/*下面是给器件添加REF的代码:
% O. V. v- K' U! L& C j9 V5 Dif(car(n0->violations)->isMirrored then3 l/ P( y' o! C3 i' z
layer = "BOTTOM"
% e7 U4 P7 C, I7 e' Belse* |- Z1 x* e* r; J
layer = "TOP"
7 c G% o+ _; E/ l! g% s)! r" A$ m( {8 A# L" X# E9 Y
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
. E2 A( T; Q6 Gtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))4 Z2 H9 p) E, u# |5 S( W
unless(tt0 C* G! u2 G( u: T5 A% |
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))" N; P8 e+ ^* R# I
)
- }3 ]! i' t& N- t, M1 O$ }tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))" p$ A M$ l9 Y& |, ~
unless(tt+ [8 K9 M/ h6 r' G2 A: G
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
$ H, h. d5 t9 k9 q# ^: o) |
|