TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
9 `% W# a! I' V7 _# C
最终搞定了,用了一个小skill搞定了3 Z7 e `' m5 d9 U3 T! c' p/ q7 m
axlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
2 M! q% J8 O2 K6 |/ e8 G q+ m" F! M" d& W! s6 l( c( ^, d8 S& z5 c
defun(c_layer (@optional (layer ""))0 `2 l C6 n: T& E
let((allLayer countLayer)2 `. a+ l- Y- _1 K6 R# T4 S
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers4 X1 s: ?% M: W6 [: N. v. H7 T4 a- N" t
countLayer = length(allLayer)
+ t: K0 M3 O% w: {8 i( n& I# j if(layer != "" && atoi(layer)
9 @2 c" [( E5 w4 E* K then
- G* D" V l% J+ h' |* k. V layer = atoi(layer): Z- @) z# o& ^5 @+ s3 u/ H6 s
if( layer <= countLayer && layer > 0; s5 {' K) |" ^& [' U
then
. x' H; m% k+ L" S7 o5 z: L; x axlVisibleDesign(nil)# J9 c7 J/ z: u7 o% w/ C
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)
1 _: J) v' q/ L; j0 W' x axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)" E! o( j: z% w
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
+ [, z- ~/ E4 z: e$ Q axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)
% T {) R9 I/ a axlVisibleLayer(strcat("Board Geometry/Outline") t)% |: N0 t% q4 X- d- r, J: f6 H i$ D
axlVisibleUpdate(t)
! i6 ]& t; Q% \1 X( M! ? axlUIWPrint(nil "Swtich layer complet...")
* @6 w* K ]; S {5 f# ]8 O else
. z9 Q7 V* H# G( f* A4 J axlUIWPrint(nil "Error,Wrong layer argument!
# t" r v' c, o6 e! y );end if ^2 p5 m) Z* E8 `: M8 N S! S
else, o6 }+ ]9 e0 ?" t( h! b
axlUIWPrint(nil "Please Input argument..."): _3 p; H/ k; Z3 h
);end if
; J3 x9 }9 x: C0 k8 t);end let7 V8 u8 B% O" i2 |( e8 Q
);end defun
# k0 h9 F0 ^! ^) ~0 ?) N6 h1 u; F( L7 l: F. F# k
; z- N k" [% e9 K
+ ?/ y7 v1 d, M0 v把这个skill加载进allegro,然后输入命令就可以了
/ @; {+ V! H! A0 B/ o" @( ?6 I+ a或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层; l$ z- U B: o+ l2 o; k6 F( A
|
评分
-
查看全部评分
|