|
|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!6 b6 l% y* }# D* |, u3 b: ?: M
/*下面是给器件添加REF的代码:1 V) |9 I( m8 A# d5 R& J9 k
if(car(n0->violations)->isMirrored then( L/ B, C h2 ^% A4 P
layer = "BOTTOM"4 \# ?6 g* c: H# @
else
7 P" k3 X: D# n' }. Y' n' klayer = "TOP"5 M; G. I f$ j3 n* c6 z# T* R2 @9 _
)- x+ v- z3 p0 G( s
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")6 P5 q& `5 h# A k6 y& n
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))& U9 m3 s! P' S$ l' J4 ~! A, x% `
unless(tt7 b( W. x% V' w( g5 E$ m7 @* B ~' C
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
: a+ J; E n7 \: K* C9 \# x)
5 k2 ~$ E3 b- d( c" `% R. [) ytt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))" C$ L7 y( F, j7 a* x% q
unless(tt
( g/ c) F2 Y0 j2 iaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
( U& }* {7 h- G; q) |
|