|
|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!5 ]1 _) e* ]* x0 t: z- G
/*下面是给器件添加REF的代码:
) j$ ^0 _- z2 F u: j; Iif(car(n0->violations)->isMirrored then+ U* n* r- c2 a$ W& Z
layer = "BOTTOM"9 \3 s x' S, t1 D3 V: c8 D; a/ q! O
else
l$ X* L$ a- z* m3 glayer = "TOP"
& E% W/ z8 n0 z( N0 ]" D)7 F L) o& t! n: w3 w: D% e
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
$ B7 \& Q6 ]+ \) ?+ E" qtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))' e+ p' b7 k' ?# J* {
unless(tt- }' n5 t& m, l0 B
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))+ K. n6 c1 d& ]9 q
)* d4 u0 I! f* t+ b; q
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))* }& J& d4 I+ N7 _
unless(tt
6 k! L9 S& ~ F O! |, B# xaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
# e# L, b5 V; D9 @2 v- I1 Z1 m) |
|