TA的每日心情 | 奋斗 2020-7-15 15:35 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
. K2 {8 H5 `2 H
最终搞定了,用了一个小skill搞定了# _( Z( v8 [1 y1 y& n- g
axlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")8 O% T) I7 F3 J% Q
$ `# P8 W* g2 @7 Bdefun(c_layer (@optional (layer ""))
" e9 P, w: i% C2 h" X- c2 ilet((allLayer countLayer)
3 c; v; {6 |8 j1 J% I1 r allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
, X+ M" w' u P# Z. e8 v/ | countLayer = length(allLayer)
3 i- l8 o! V- d" @/ x1 t0 O if(layer != "" && atoi(layer)
+ r% {" d/ U. t5 b3 G( V2 o then1 x( A; ~7 g$ L8 p I6 S
layer = atoi(layer)
0 A& d+ [# w7 V$ Q if( layer <= countLayer && layer > 0
! u) F# B% \& x0 l+ a, V then( v# s+ N! V* T7 y) f$ o3 s* ]
axlVisibleDesign(nil)
5 z# f6 k( y) k$ } axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
, S" e7 z6 n0 c/ s* s% t axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
m" r8 s# E- n6 ?5 e3 p! O axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t) 9 [$ r, u1 C% L' c$ i! P
axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)
% k, X$ y+ T- H axlVisibleLayer(strcat("Board Geometry/Outline") t)
# _! r% _, @8 }- l3 o axlVisibleUpdate(t)
1 K0 ]7 Z/ t7 ?( ? axlUIWPrint(nil "Swtich layer complet..."); E/ n8 H5 c7 K! w, ^7 ~# C9 L# {5 V! ^
else
2 W5 \1 w# x- B1 M7 } axlUIWPrint(nil "Error,Wrong layer argument!
3 T( d; k W" N1 s9 i );end if6 {4 q" {0 A! Z# b; V
else( D8 z% @8 B! F8 |% J9 \. ~, A% t
axlUIWPrint(nil "Please Input argument...")
& X; V$ v% t" c# n( ~ );end if ' s# w- j$ ?9 V. `6 V- U
);end let" _8 t4 [( i6 u/ k* I$ D- M
);end defun7 U! Y, h9 ~0 [# x1 V) E
3 w, s& ]. ^4 [# F( t. _5 y) \/ r
: C3 |. ]9 h, i/ y
, t: V% K7 b" M$ F6 n把这个skill加载进allegro,然后输入命令就可以了1 P M+ K) _) B% Q' d
或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层7 I; A3 R v# h: T
|
评分
-
查看全部评分
|