|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!: t% ^7 y4 }' L! R7 q* p! ~
/*下面是给器件添加REF的代码:, {1 A, m3 {/ a: n% p; N& [( ^6 W- Y$ \
if(car(n0->violations)->isMirrored then
8 W0 P# N" B- b' e; j: @# Zlayer = "BOTTOM"2 Z8 b/ {! d* z
else
' k+ c% h# f, Q' ylayer = "TOP"0 y. P. R; O, ?& m1 q. G
)
$ M* q- S" h0 E% c# Ctextstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
( @, r7 y7 Y( X5 J4 dtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
1 t# m1 Z3 L' i. |2 [- q/ Punless(tt, v U' U. \& o. x/ T" x0 v
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
+ z! }9 q# h# x+ f0 t; i( N# Z+ G5 ?)
9 s- B& |4 e$ qtt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))
6 u1 C4 ]! w, C8 ounless(tt2 }8 o+ d* j4 r0 ?' W
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))7 G4 f/ {& C. V( o- W M
) |
|