TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
& d$ E+ e! \. C+ V/ Q最终搞定了,用了一个小skill搞定了
s/ s Q5 `1 y3 E* P: BaxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
4 \6 B# ?3 V6 A
; G$ H3 W, d' b6 Y# D3 O% h- S( idefun(c_layer (@optional (layer ""))
9 u4 B. u6 y* |9 \9 s- o0 _let((allLayer countLayer)
) S8 m2 a$ j% h# E& I' @0 @ allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers7 D m& ]; i/ t
countLayer = length(allLayer)
8 ^( o* H) f$ U# u if(layer != "" && atoi(layer)4 @, a# A' o7 Y: S' [* r. s) }- N0 a+ a
then5 J$ K/ }3 `! x- a
layer = atoi(layer)
" S! w, \/ F/ J0 c+ S. m if( layer <= countLayer && layer > 04 f! p6 l9 W* Q9 R
then
: p. g9 o C+ n) D axlVisibleDesign(nil)
" {- J6 C1 b- J* e& u" y0 y axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
. H9 k0 u% x+ Z3 H: x( I axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
6 l. a2 C+ H& K, [4 { axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t) 3 S. k) B: d$ J) l
axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)
q1 p% _7 x# X3 l axlVisibleLayer(strcat("Board Geometry/Outline") t)
8 j# I8 i0 K% ]2 c axlVisibleUpdate(t)
a) D) U% J% e/ C axlUIWPrint(nil "Swtich layer complet...")$ g) C7 w' W" O7 v: o
else; Z1 j7 V) T: p
axlUIWPrint(nil "Error,Wrong layer argument!
- [0 }) [- f3 M4 W* s7 f );end if% l5 J5 v8 o& }. d
else5 `+ h. x% Q& T
axlUIWPrint(nil "Please Input argument...")
& U: ^; B! U& e: y4 }3 J. e, c );end if
1 o: p+ o4 d) ^- y6 q% c& T);end let
7 ^5 u* a8 f4 t, h. l);end defun. W) U L; S& W7 e: ~9 u+ ^
" S0 E8 N' V% H: H9 E" R, U0 O# ]/ I! @7 Q
. ]2 D) o6 Z% b8 `& {
把这个skill加载进allegro,然后输入命令就可以了
9 y; X% e3 q/ X0 {9 N或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层
5 U* z. Z2 [1 }: ?9 M |
评分
-
查看全部评分
|