|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!4 b, d, }' S- F4 p4 F/ \
/*下面是给器件添加REF的代码:7 F% A( Y4 x% A
if(car(n0->violations)->isMirrored then
8 j6 H/ \& e0 [6 N! ?" mlayer = "BOTTOM") H& i# y; {( c" q4 s
else# x# O* Y) x0 h ^0 }" I( g0 s
layer = "TOP"
2 j: E0 e1 n5 x1 o S% L) n)' t" W, r B7 q+ y& t
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
' S, J) ], @9 `/ J, X1 v% ztt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
5 y8 q; x% ]. L: g! Eunless(tt
: X- a7 R8 t4 ?5 ?- c+ LaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
% m' }6 k- g6 J2 ^)
/ s5 s8 x& G ttt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))3 }/ i" _+ a# ]' a' y
unless(tt) F8 D6 V; v1 Z1 g
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))) [ c8 I3 i* a
) |
|