TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
& u9 s6 b0 d3 N+ G+ h# A最终搞定了,用了一个小skill搞定了
5 a, I6 S! s# {- raxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")" R: ^/ X6 F6 `
, q$ W( |4 g7 w' I$ m5 A9 Qdefun(c_layer (@optional (layer ""))1 A0 V; Y* \2 C) e% W
let((allLayer countLayer): B" E$ _' B2 W1 c" m, u( Y6 _2 ]
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
1 T! E6 K2 m$ K' N+ @* q5 { countLayer = length(allLayer), ?8 S3 q& A% f! e5 X
if(layer != "" && atoi(layer)
# r1 f) o L/ t+ a1 o0 A) u then& H- E! o2 M6 n* Q
layer = atoi(layer)% _( O6 z9 D h# U
if( layer <= countLayer && layer > 09 Y0 X8 d O) j, Q4 ]
then* t0 G. K% v7 s' E; x& |+ Q5 K5 B6 x) y
axlVisibleDesign(nil)1 k$ N D) x0 N2 j' L! a0 ]3 i
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)" O4 M2 `2 z% I) D8 @- L+ l* f
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
4 n9 M0 F& J1 Z axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
) A% D+ {) X' o' b axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)# i' U7 M+ i; _
axlVisibleLayer(strcat("Board Geometry/Outline") t)
/ N, I B, W/ G+ D1 w1 ?& h' \ axlVisibleUpdate(t)
8 P& O2 u6 f: X3 d$ S6 [* } axlUIWPrint(nil "Swtich layer complet...")
2 C3 `* e0 f" \( P; m else4 S7 M& }; j2 E( t
axlUIWPrint(nil "Error,Wrong layer argument! 2 p' S+ ~ K1 V9 V
);end if
% L" b4 X. \2 ?# x4 [1 t else# {9 t9 r+ ?/ e# }* A3 ~
axlUIWPrint(nil "Please Input argument...")( K/ ^8 b8 o4 L+ f! u
);end if
( d- Q3 T% T+ V# h$ _5 y);end let# l% |2 i0 A! W8 X4 c& I! m8 V
);end defun
, W# c/ s: J' t% ^
|3 ~+ B8 u" g! ?, V& i
3 \" D2 _3 p; Y9 v; f- _8 t* j, T- E0 _( g1 M
把这个skill加载进allegro,然后输入命令就可以了
2 g1 \, Z' {7 J或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层+ z9 K. p. w. J2 U7 }) }$ p
|
评分
-
查看全部评分
|