TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
" C J; ?7 g) _+ g9 F$ F, `" @0 |
最终搞定了,用了一个小skill搞定了
# Z1 @' u) y7 k, JaxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive"): a' I! ]# f! g' O. s/ i+ m
[0 V1 g& I1 B6 c D% d
defun(c_layer (@optional (layer ""))- M# M9 I% c! E7 _6 b
let((allLayer countLayer)+ T% W' p1 T- _$ ~8 j+ C9 X$ Z$ N
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
9 P* D/ n& e& B) t1 L$ P1 `" D- L countLayer = length(allLayer)
% X! @' w8 w6 k o) J if(layer != "" && atoi(layer)% b' {$ _6 D2 S Y' u. Y
then+ i9 v: A* A) N9 p
layer = atoi(layer)
+ C* ^8 ~8 A& } if( layer <= countLayer && layer > 0" m8 O9 Z9 Q+ s8 j5 o+ O' ^- a
then+ K; [3 d1 ], D2 C4 j! K& A1 s
axlVisibleDesign(nil)
! }/ t$ B# L( e2 c2 @/ F9 p/ i# {' P axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
: q( w6 a9 E0 @) Z/ S: J) x axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)0 h" _ z7 c& z- g
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t) , N/ N; k. D+ }# A1 l
axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)
. c1 e1 x% F* e, D9 `, `- Z axlVisibleLayer(strcat("Board Geometry/Outline") t)( v# q+ f* b3 j$ C# y# @# [
axlVisibleUpdate(t)
2 [# w$ B7 B# O, G& C7 u: N axlUIWPrint(nil "Swtich layer complet...")) I0 ]! I% m: i8 M
else
' B# q7 X: J' t: S0 h6 o$ u axlUIWPrint(nil "Error,Wrong layer argument! 7 l1 d& _3 [) O& R
);end if& B* X% t( z8 `- C) Y2 D7 \
else# `1 o! W0 B% F- b, Q
axlUIWPrint(nil "Please Input argument...")
+ v, |& r; ^1 h" G* @; J' m );end if
5 p2 v7 ~" r0 ], ~( Z5 Y+ C);end let4 I3 r1 ?1 |; I4 ]( C
);end defun/ |4 ^" \: O+ Z+ U
# v+ j# [7 U6 g/ ~, @5 O
/ }$ u! d' }" s' J/ C0 [+ ~& g% R9 K
把这个skill加载进allegro,然后输入命令就可以了6 t M: j' _+ O' a6 b0 p, S* I
或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层1 t* p. N; M" L" _8 a
|
评分
-
查看全部评分
|