|
有人问检查出缺失以后,怎么添加呢? 给一段代码大家自己改下吧!
+ e5 u2 G8 R( j) t# B* g6 D/*下面是给器件添加REF的代码:4 A) w* i! t6 o2 T
if(car(n0->violations)->isMirrored then
5 h3 K! l8 U) Q) _, ?layer = "BOTTOM"
8 J( C3 S# d3 v4 j+ _else( a! q8 m$ A* G
layer = "TOP"
' V( {" J1 k. @3 g)* q' ~$ _. r8 H' h9 c, t
textstru = make_axlTextOrientation(?textBlock 1 ?mirrored car(n0->violations)->isMirrored ?justify "center")
2 `4 h0 N# ^+ itt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/SILKSCREEN_+" x0->layer))
' P2 A- ^, p( }, c# P+ vunless(tt; G+ h- T! K5 _" B9 j' ^7 n5 V
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/SILKSCREEN_" layer) car(n0->violations))
6 G1 l |$ R; X8 d$ Y7 Q)" }( Y! _3 b a8 Q, l
tt = setof(x0 axlDBGetAttachedText(car(n0->violations)) rexMatchp("REF DES/ASSEMBLY_+" x0->layer))5 u$ c/ M6 l: M6 W
unless(tt7 G* U" q i- U- `% b7 [
axlDBCreateText(car(n0->violations)->refdes car(n0->violations)->xy textstru strcat("REF DES/ASSEMBLY_" layer) car(n0->violations))4 y, U$ w# p7 J! P' p2 U$ Z w. H
) |
|