TA的每日心情 | 奋斗 2020-7-15 15:35 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
3 H" o) S: w* b9 K$ q) d( y& {最终搞定了,用了一个小skill搞定了
+ P7 m7 ^5 I# S- F7 D; a- waxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
$ t3 p( w0 x7 h8 D; W* ^5 x. w0 r' T: r* o* E4 _
defun(c_layer (@optional (layer ""))
* q( n7 j6 D6 U- klet((allLayer countLayer)9 F4 e) K1 s8 l' z, I* m! X2 u7 b/ j
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
1 ]* m ?7 u% C( B$ T% c0 O% d countLayer = length(allLayer). m, w( K/ P1 R# [. h& \
if(layer != "" && atoi(layer)
1 Q# T7 G7 x* K2 [& w then/ U4 P$ ?5 h+ b1 D! c; D( z+ }
layer = atoi(layer)
) h0 L+ e& g+ h9 \ if( layer <= countLayer && layer > 0% Z) n9 S" _' H8 l
then- r4 f" i/ w/ u4 F+ U
axlVisibleDesign(nil)
# [4 u5 m0 v! @# E& s7 o7 H, j axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)7 I0 R# t6 X. W. F+ d) `( }) ^% H2 ]
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)% W3 V, g) ~' E) i
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t) 0 u. b$ a* Z1 Y2 C$ x7 k$ O
axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)7 s H( v0 \8 m4 _9 N/ e& R% B; l
axlVisibleLayer(strcat("Board Geometry/Outline") t)
, e$ J4 c ?$ o3 P7 k8 g axlVisibleUpdate(t)
$ ?& u! ?, H9 x! E- r axlUIWPrint(nil "Swtich layer complet...")
4 z9 {/ ]- p5 O! \8 T" h else
: i" D+ s2 a- f, G1 A( m( ^ axlUIWPrint(nil "Error,Wrong layer argument! 1 n( U2 u4 q+ ?5 d* b9 u& D
);end if0 h3 s2 V6 X9 c6 z" ~
else
3 T' C; P( b* w; z8 l' N' k0 G axlUIWPrint(nil "Please Input argument...")7 H! a( h; ?5 D( Q; G/ ^! c* b: k9 m
);end if : r: e/ }/ f) c# n, a$ G$ K
);end let
C! G- x2 P# O! I0 A);end defun
7 K7 o0 A3 H: x" K3 |$ [
3 q6 W6 r9 Q; W8 ^& A' U3 C8 X! t7 Y4 b+ [# D9 \+ G
) g. r* g1 _2 `) V, ~
把这个skill加载进allegro,然后输入命令就可以了
" z; }+ h/ W# {, z" d+ v或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层' U; G1 @* t6 q/ ^2 h8 q
|
评分
-
查看全部评分
|