TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
. W3 U' n( c! ]& m' }7 M7 i8 U
最终搞定了,用了一个小skill搞定了" s: F* G8 [% j
axlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
! X; `9 ~& i- T: ]% y8 g! @0 ?8 J3 P+ p8 w. {$ f, L% e
defun(c_layer (@optional (layer ""))
2 f5 y& u) n- c8 D' c w0 Zlet((allLayer countLayer)
& m6 ^3 W% Z: B P$ L S, h6 X F allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers
9 `4 q- \; h; ` countLayer = length(allLayer)
. c6 Q/ K+ }# N. Y if(layer != "" && atoi(layer)3 R6 R: |8 Q, K- I
then7 I. K# [. y8 h! T |
layer = atoi(layer)
8 Z# C1 H5 Q% c( ~3 I4 P- P* _$ s if( layer <= countLayer && layer > 0! |# @" x5 w$ c
then
) H1 o. a/ l) E x7 Z9 R. L( r axlVisibleDesign(nil)
9 D$ ~) ?8 B- Q% o* c6 L6 j- f axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
; _& I2 Y; b# T6 K1 Y axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)
2 k$ d( J5 u, v6 c5 D axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
2 I2 \# x$ x& T, `; z axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)
* h0 C" k6 g% | axlVisibleLayer(strcat("Board Geometry/Outline") t)
6 S, d- _% g! G/ ~# {4 G# p axlVisibleUpdate(t)# p- C2 J1 D/ F0 o" p( \
axlUIWPrint(nil "Swtich layer complet...")
* n' S& A/ j F. t' a else+ I: L9 [. }8 h+ j$ S
axlUIWPrint(nil "Error,Wrong layer argument! 4 L2 v+ G3 d: E
);end if
) ^1 ^2 F: {% j9 X else! k$ Z% M1 e8 |
axlUIWPrint(nil "Please Input argument...") a( Z) `9 E3 e; X! t
);end if
) V% I) c7 a9 Q& O; U$ t);end let
2 f4 P/ y4 Z! B);end defun9 N! h$ |( {1 V
8 e( m9 q% u. h* f$ w, b. h; k6 R9 [5 n2 z/ O; g j; d
/ U' B* d0 I6 Z* D
把这个skill加载进allegro,然后输入命令就可以了
6 J: {5 a2 `" w7 ^% L0 r或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层0 Z( A# t: a1 c1 f% F0 U* m
|
评分
-
查看全部评分
|