TA的每日心情 | 奋斗 2020-7-15 15:35 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
8 o/ A% q ?% K; A最终搞定了,用了一个小skill搞定了
7 X7 v z7 B( _' RaxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")" ^& _: I: _8 B, [! |$ z( r5 s+ {0 M
' Q0 S0 M8 |5 ydefun(c_layer (@optional (layer ""))
3 z" I% x0 w" D( d* e5 alet((allLayer countLayer) Q% ?- R0 g+ q9 }8 H
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
/ u8 G! Z6 n" }8 D+ Z countLayer = length(allLayer)) `- G3 S+ A# u5 S- ?# j
if(layer != "" && atoi(layer)
9 e% F! h( _9 `/ s' i# m then
2 m0 \. B" v7 k9 ]! y layer = atoi(layer). x8 ~9 _, U% a+ d" I" j( d
if( layer <= countLayer && layer > 0
3 A* z. q$ s# z$ q' \" X x2 l* n then
# ^( A9 a, a# @8 G: x# V4 u axlVisibleDesign(nil)# V9 I/ r3 D9 J) f1 Q3 T/ E* | X s
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
- }3 _9 c7 g: T9 m axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
7 z' a* C! a/ `( }$ { axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
' q! ]/ p& _8 B6 |0 z9 n, m& ~ axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)* F, t+ V1 Z s3 r2 }: g$ g
axlVisibleLayer(strcat("Board Geometry/Outline") t)
0 W8 S5 e: U* ^, L$ j) ]7 Y9 b axlVisibleUpdate(t)
; |: M6 C |) ^ S3 \ axlUIWPrint(nil "Swtich layer complet...")
l2 G* i: D! f: I! Z- @( m else
. f% @- Q' V' n8 b3 \" D/ ] axlUIWPrint(nil "Error,Wrong layer argument!
" [9 m3 J4 w, U; W8 p );end if- S9 b5 n. T1 d* ]
else
7 j3 w% R1 l- n axlUIWPrint(nil "Please Input argument...")9 h; t( |/ e5 M0 r1 I
);end if 0 a& `. [$ n# X0 p/ |
);end let9 U# [3 h+ i, @2 ?6 t
);end defun) U" E1 g( u7 x% C2 D5 r3 J
( P( [7 }0 E, Y/ y4 Q
6 l7 p7 V. P1 o( e o8 \3 ]2 n
% o N) P# ?3 R A把这个skill加载进allegro,然后输入命令就可以了
4 w* {$ ? l6 z& N或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层
5 A- B1 n9 C0 F- ? |
评分
-
查看全部评分
|