|
- ;==========================================================================
- ;Function: "Ctrl" or "Shift" + mouse wheel to modify the horizontal or vertical number of through holes (Via)
- ;Instructions:
- ; 1.In the CIW window, Load this il file
- ; 2.In the layout window, After selecting Via,
- ; Hold down "Ctrl" or "Shift" and slide the mouse wheel
- ;
- ;Note: When selecting Via, you may accidentally select other devices.
- ; This script only modifies Via parameters, not other device parameters.
- ;
- ;==========================================================================
- row = "row"
- col = "column"
- hiSetBindKey("Layout" "Shift<Btn4Down>" "NewVia(row 1)")
- hiSetBindKey("Layout" "Shift<Btn5Down>" "NewVia(row -1)")
- hiSetBindKey("Layout" "Ctrl<Btn4Down>" "NewVia(col 1)")
- hiSetBindKey("Layout" "Ctrl<Btn5Down>" "NewVia(col -1)")
- procedure(NewVia(dir num)
- instID = geGetSelSet() ;get via ID list
- viaID = setof(obj instID obj~>objType == "stdVia")
- rotation = list("R90" "R270" "MYR90" "MXR90")
- foreach(via viaID
- when(dir == "row"
- if(member(via~>orient rotation) == nil then
- org = via~>cutRows
- via~>cutRows = apply('plus list(org num))
- else
- org = via~>cutColumns
- via~>cutColumns = apply('plus list(org num))
- );end if
- );end when
- when(dir == "column"
- if(member(via~>orient rotation) == nil then
- org = via~>cutColumns
- via~>cutColumns = apply('plus list(org num))
- else
- org = via~>cutRows
- via~>cutRows = apply('plus list(org num))
- );end if
- );end when
- );end foreach()
- );end procedure
复制代码
|
EDA1024论坛免责声明
请勿上传侵权资料及软件!
如果发现资料侵权请及时联系,联系邮件: fenxin@fenchip.com QQ: 2322712906. 我们将在最短时间内删除。
|