TA的每日心情 | 奋斗 2020-7-15 15:35 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
; y7 Z$ |) @& Z# }8 ]
最终搞定了,用了一个小skill搞定了
0 R4 ^2 x i# x2 @3 \) baxlCmdRegister("c_layer" 'c_layer ?cmdType "interactive")
; Z4 t" q* U9 F$ W: i
( _+ A- d, A: W1 S% L% b5 Sdefun(c_layer (@optional (layer ""))
2 h' r& B; M% t' N- Llet((allLayer countLayer)4 y/ {1 M4 Q- D( {! A1 A. G
allLayer = axlGetParam("paramLayerGroup:ETCH")->groupMembers5 `3 h2 s7 W0 ]2 D5 r( P: d: ~
countLayer = length(allLayer)6 E6 L: m! C) T% s8 t# G
if(layer != "" && atoi(layer)( b7 J/ u& O2 I Y4 d( V! b4 ~9 B
then
2 y( I; e! [) a, X6 @ layer = atoi(layer)
( q. Y1 y1 ]$ J$ J$ h if( layer <= countLayer && layer > 0
) a |. z2 V, j% U then& K; \' p3 v0 O0 {' H; Q, r
axlVisibleDesign(nil)' l& \/ X* Q, O" L" Z
axlVisibleLayer(strcat("ETCH/" nthelem(layer allLayer)) t)9 ]* |+ t+ P4 G9 _4 P* }- F3 [
axlVisibleLayer(strcat("PIN/" nthelem(layer allLayer)) t)+ N8 L& y k3 |1 @
axlVisibleLayer(strcat("VIA CLASS/" nthelem(layer allLayer)) t)
- I p0 w& y' O2 C axlVisibleLayer(strcat("DRC ERROR CLASS/" nthelem(layer allLayer)) t)& m' B; p k7 N/ Q) [
axlVisibleLayer(strcat("Board Geometry/Outline") t)' j- z4 K& z- I
axlVisibleUpdate(t)
( M# ~2 z* P% s axlUIWPrint(nil "Swtich layer complet...")
+ K0 ]3 W/ C5 d1 t5 r else
) _# D, z" x/ M axlUIWPrint(nil "Error,Wrong layer argument!
- E% O9 p- X8 `! M' w+ q );end if( ]9 a! h0 l6 w6 n
else
+ F1 i' N: s/ `5 N# v& F0 A( | axlUIWPrint(nil "Please Input argument...")
# z* G, n2 z7 H );end if
0 N. l2 |3 t6 Z' J) {);end let# t. h* B' v% T7 W4 R
);end defun. A. ]$ W' g& z
3 ^# \3 _4 }# \' |* B
% g% V- l; f0 v9 W; S/ d
& E$ g R- n' B' J把这个skill加载进allegro,然后输入命令就可以了, O, z0 `/ D! s; u# K
或者在env文件里面加快捷命令1 2 3 4 ...就可以实现用数字换层
+ w- f: g* O, K" W |
评分
-
查看全部评分
|