|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!' }( t3 c6 _6 ~
/*下面是给器件添加REF的代码:, E7 x# X8 G, q5 {9 M7 `
if(car(n0->violations)->isMirrored then6 d' d; I& @ j% p
layer = "BOTTOM", Q( K) E* }# m9 G! U/ g( @$ z
else5 j9 K9 u$ w) y1 k+ C0 r# R/ u( m
layer = "TOP"
/ [- I6 T5 k0 q) P: K* r)8 `& q9 Y# A& l. ^- D! P
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
* |; w- u" Q: _! Y/ gtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
* l1 k5 g' _% tunless(tt3 x4 O( N8 E9 F, X d7 |' I9 o
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
# H/ I, f: `. |- n' d. }# H2 b)
% s6 Z0 d v8 S2 s7 Mtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))0 z9 C8 K ` O# o! w5 x5 _: y
unless(tt
- b' c* q) s9 CaxlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))
1 t/ l1 G$ U' Z* u9 H1 e) |
|