TA的每日心情 | 奋斗 2020-7-15 15:35 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
% p7 \7 H& p$ s1 b1 L: m; `- i" g
最终搞定了,用了一个小skill搞定了
$ G' L# S9 v" {3 MaxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
6 U/ A; O: N6 R5 P b9 l8 Z# ?8 T* K+ ^2 F# `: U& w$ ? D
defun(c_layer (@optional (layer ""))
" z2 p# ~" |8 q" J& @$ Z4 qlet((allLayer countLayer)6 E' c O* \' M: C9 T
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
1 f2 V4 C+ B" F `2 w3 o% m countLayer = length(allLayer)
8 \( d# z3 S' S$ s: Q6 Y if(layer != "" && atoi(layer)
) X2 F$ N( U1 n then4 t& c7 d! L/ W X2 u$ q( W0 Z
layer = atoi(layer)/ k; x" ^& h' x6 W7 X+ X$ `- E
if( layer <= countLayer && layer > 07 V; a. X Z5 c
then, @/ w! H$ s) o
axlVisibleDesign(nil)
5 h; Q+ L& B& ^- |6 Q axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)2 N% }- I; J& }3 q1 U
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)* g3 z0 W0 n2 }2 Q
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t) 8 M7 K; ]5 C& b, A4 w5 T
axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)$ B& r5 f! J3 j- F
axlVisibleLayer(strcat("Board Geometry/Outline") t)
8 X* ~9 s N& F2 x. y- h axlVisibleUpdate(t)$ W; G; V1 R- Z5 B1 C
axlUIWPrint(nil "Swtich layer complet...")4 B* p. O! M) j3 p1 j
else! p- ?* ]4 s) S! V2 Z
axlUIWPrint(nil "Error,Wrong layer argument! 8 A* Z( k# A3 z- C& X
);end if
% O/ s/ p& I. @! S/ l( {( o else+ h5 b. c) v& d. J% A
axlUIWPrint(nil "Please Input argument...")+ N1 F; X$ K0 _5 n* O% c/ v
);end if 6 k* k; T( y2 W5 i5 X- g
);end let
) K9 X7 D/ Q6 k) _7 R1 \);end defun7 C$ a) T: V8 r; i9 A1 L
7 G$ T5 l& V6 l- j: k# E' j5 M% s- f' ]+ Q: y# C$ p8 j8 h
8 O5 E. g& L% X; t+ z1 g把这个skill加载进allegro,然后输入命令就可以了
& ^1 n! G3 M$ l) ]7 s$ h C# A或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层) \2 n7 T3 b* t. C- z
|
评分
-
查看全部评分
|