TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
" {9 L/ W$ d t; T
最终搞定了,用了一个小skill搞定了: X9 | x+ _! `, @; B
axlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
8 \( m, ~3 X- l: K3 ~. r
8 v2 \3 ^9 f* |0 g+ t# N% Idefun(c_layer (@optional (layer ""))6 K. g2 k( c! s- b6 H% l J
let((allLayer countLayer)% S$ ]7 r o0 a- L( @
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
3 Z% Q- C/ R' @' v countLayer = length(allLayer) o% k' \$ J8 M$ z9 u9 d
if(layer != "" && atoi(layer)
) w& l$ ~8 C( k/ F+ d then7 d- j! R; F1 I$ P3 p
layer = atoi(layer)
1 l7 x m! f6 p$ e' Q# A! Z0 Z if( layer <= countLayer && layer > 0
) R" ]& y9 V: [: p& m! F then
# O+ R. D) p* N6 C- Q5 E axlVisibleDesign(nil)) H, c" Z( x6 K7 z
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)8 X+ J/ @ i8 Z; n
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
% W: R4 n8 D" ~( ^( p7 M axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
z+ b D# Q! ? axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)( d+ k; t1 j1 r1 p+ i( e% K
axlVisibleLayer(strcat("Board Geometry/Outline") t)
+ j* w: S. z5 E2 H axlVisibleUpdate(t)
- p" M: O/ f! H8 M ] axlUIWPrint(nil "Swtich layer complet...")
( M7 H. k3 ~9 ~+ e4 O$ \ else
5 B, }1 i( Q- C# W$ n% l- f axlUIWPrint(nil "Error,Wrong layer argument! 4 ^. g- a. n! m( H7 Q d$ Z
);end if
- Y( q/ |4 ]3 e+ H else
7 @5 p0 k! a. J7 } axlUIWPrint(nil "Please Input argument...")
4 R5 o$ l6 F; K0 Y% P) @ g* P );end if
/ U9 n- o2 x o: S2 D);end let5 I2 _8 n- s5 x Y* V- _; C/ w9 v5 e" F
);end defun0 K$ F5 p4 V, l# o4 u2 Z0 P; `: B4 _
$ X: Z( H4 S/ O( E( a
5 V$ m& [% L, C# T
- i$ Z5 m# x5 Q- ?把这个skill加载进allegro,然后输入命令就可以了4 z+ F* f, V, r# g& V
或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层
9 f' W, _; F/ A% D2 b |
评分
-
查看全部评分
|