|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- when(axlGetAlias("Up") != "UP";此处修改向上翻页快捷键 如"Up" => "+"
- /* ========================================================= */1 S* v* G* G& m5 `& e
- axlSetFunckey("Up" "skill UP" t);此处修改向上翻页快捷键 如"Up" => "+", b" e/ X7 x$ _1 C% p
- /* ========================================================= */3 v* ~* O! v7 [9 d& o9 ]
- );when' k" ~5 @9 y, }4 `$ n
- when(axlGetAlias("Down") != "DOWN";此处修改向下翻页快捷键 如"Down" => "-"
- /* ========================================================= */
- axlSetFunckey("Down" "skill DOWN" t);此处修改向下翻页快捷键如"Down" => "-": [# M/ w9 t3 E F5 Y
- /* ========================================================= */1 L( F$ B* U+ h+ g& O/ t
- );when$ e2 C7 p1 O" O
- axlCmdRegister("DOWN" 'DOWN), ?& V, ]4 z1 U" G
- axlCmdRegister("UP" 'UP)
- defun(DOWN ()
- EC_layers = axlGetParam("paramLayerGroup:ETCH")->groupmembers, f8 }( _' @/ f" S5 T& h- _
- sum = length(EC_layers)
- ACT_layer = substring(axlGetActiveLayer() 6 20)( \3 I% K. ^& S1 }8 ~
- by_ck = 0# f$ a% s/ r8 H7 b; D6 Z9 @
- prog( ()2 [) a" m# e; l9 O L' h
- for(i 0 sum-1
- when(ACT_layer == nth(i EC_layers) ; ^; z5 N" F5 ?( O+ ?* x( P5 A# W
- by_ck = i $ k9 c3 J/ G- |' y1 Z" w
- return(by_ck)6 U- s; H7 d$ i7 S4 N( s
- );when/ }4 |% u: g4 l6 v+ z
- );for& Y1 r2 }2 A" E5 w: k
- );prog 获取索引 兼容15.x
- : Q8 t4 v" E, I
- if(by_ck == sum - 1- Y9 d7 `/ N7 Y& P% A }
- then! K' D( P* B5 s. n! B" O4 O# u
- NXT_layer = nth(0 EC_layers)
- else
- NXT_layer = nth(by_ck+1 EC_layers)
- );/ O# Z2 W7 t- Y; ?
- axlSetActiveLayer(sprintf(nil "ETCH/%s" NXT_layer))
- axlVisibleDesign(nil)
- axlVisibleLayer(sprintf(nil "ETCH/%s" NXT_layer) t) W* ]8 l- S# ?- p- a
- axlVisibleLayer(sprintf(nil "VIA CLASS/%s" NXT_layer) t)
- axlVisibleLayer(sprintf(nil "PIN/%s" NXT_layer) t), [' F! `1 `8 I8 Z. Y0 I# `
- axlVisibleLayer(sprintf(nil "DRC ERROR CLASS/%s" NXT_layer) t)
- axlVisibleLayer(sprintf(nil "ROUTE KEEPOUT/%s" NXT_layer) t)+ i$ D7 k( E. X5 j
- axlVisibleLayer("ROUTE KEEPOUT/ALL" t)
- axlVisibleLayer("BOARD GEOMETRY/OUTLINE" t)7 W6 M" D K! K
- axlVisibleUpdate(t)# O) F: |/ Z+ r# I. m3 A4 z! _4 @& @
- 0 }# O# j: c3 Q# B
- );defun2 S7 G: u% v$ R9 E
- defun(UP ()
- EC_layers = axlGetParam("paramLayerGroup:ETCH")->groupMembers
- sum = length(EC_layers)/ ~, w* D6 h/ e+ Y! a
- ACT_layer = substring(axlGetActiveLayer() 6 20)0 R1 o3 l9 l0 ~
- by_ck = 03 A' f- ~! g" P" y- @: P/ Y; x
- prog( ()- |( K G4 z+ m
- for(i 0 sum-1
- when(ACT_layer == nth(i EC_layers) ! Z Y" f: D; z" U/ N
- by_ck = i
- return(by_ck)7 t) R( U3 m" }* M
- );when
- );for& F# J0 B+ x' N) _# N
- );prog 获取索引 兼容15.x4 z! m" U' @9 i) c
- if(by_ck == 0 , Q6 y' {* E: l& [4 `
- then
- NXT_layer = nth(sum - 1 EC_layers)
- else% i' G' S9 e2 c: k/ f; v1 b: c2 {! p
- NXT_layer = nth(by_ck -1 EC_layers)4 l2 J) s! M% v+ \+ H: h
- );
- axlSetActiveLayer(sprintf(nil "ETCH/%s" NXT_layer))
- axlVisibleDesign(nil)
- axlVisibleLayer(sprintf(nil "ETCH/%s" NXT_layer) t)4 ~& v( O# u' q
- axlVisibleLayer(sprintf(nil "VIA CLASS/%s" NXT_layer) t)) R9 e& `1 |( v; w3 \7 Y6 {$ L% E
- axlVisibleLayer(sprintf(nil "PIN/%s" NXT_layer) t) I8 l2 z7 b% n! V T9 [/ i: P
- axlVisibleLayer(sprintf(nil "DRC ERROR CLASS/%s" NXT_layer) t)7 O, z9 b; l6 x# }
- axlVisibleLayer(sprintf(nil "ROUTE KEEPOUT/%s" NXT_layer) t). P4 N4 F. k$ }6 ~4 a
- axlVisibleLayer("ROUTE KEEPOUT/ALL" t)! O2 @! Y+ S# v; q _& B2 r3 ~
- axlVisibleLayer("BOARD GEOMETRY/OUTLINE" t)9 `3 t* e$ a4 a1 H+ T
- axlVisibleUpdate(t)4 p# j) }# z+ ]& n
- );defun
|
评分
-
查看全部评分
|