TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
) q5 ~; n) K5 f- _" I' s6 i最终搞定了,用了一个小skill搞定了 s4 K% w: ~( ]/ v+ n
axlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
* Y. M+ I. W5 U2 V T; s- o( h+ k2 _7 I; J' M
defun(c_layer (@optional (layer ""))
, O3 P; ] L) L7 Q$ V% C2 t: y @3 Zlet((allLayer countLayer)8 V# ~( R" \- R7 V4 Y7 `+ U
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers# m6 d, u/ u o: d* d9 F
countLayer = length(allLayer)! ? B% {9 t. i* P2 F
if(layer != "" && atoi(layer)6 n; ^% _0 n0 G( I& g/ a) h
then
1 H0 {3 v7 q& w( Z `+ j- u layer = atoi(layer)% N1 x- e& C8 K
if( layer <= countLayer && layer > 0- A, F& G8 \3 q. m5 e
then+ P5 Z$ c. V% o1 V& T9 m$ o. ~
axlVisibleDesign(nil)! a9 h& B) c8 r/ ]
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t) \4 k' t" W% c9 B: j# T8 ]+ h
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)& N% Q: ]) n4 E
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
" u/ v) e* J( c* Y% s axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t). q ]# E6 z+ s6 q
axlVisibleLayer(strcat("Board Geometry/Outline") t) R3 n( V, q% @) f+ e! p7 L/ e) @' ~
axlVisibleUpdate(t)1 f, ^! M8 h# w, r6 M# B6 P
axlUIWPrint(nil "Swtich layer complet...")
- Y3 b1 h% s1 H r9 l0 O! \ else# U2 q) m* V3 {$ A: f: v# T: L
axlUIWPrint(nil "Error,Wrong layer argument!
2 e8 Q- O6 I' O5 u3 G );end if
# _, a6 \# N) }; g else
' D9 M+ r" |& o7 A4 t, d axlUIWPrint(nil "Please Input argument...")' T6 b1 _2 j! t# Z4 v% L! W
);end if
+ _' C3 y- |0 z0 }, r);end let, ?' A' M- ]1 P
);end defun# f, J b. |/ M/ A+ D1 M& m
0 D- Q' S) A6 C# w# {7 x* [2 F0 d- `- a7 u1 r
4 @4 H' p2 ]7 o4 E1 R: Z6 R" }4 |把这个skill加载进allegro,然后输入命令就可以了
% A) z+ ~/ R) c" U3 N或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层) S; m1 H) A& H7 w4 G$ }4 [
|
评分
-
查看全部评分
|