Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

use of the mouse wheel to zoom in and out in icfb ic5

Status
Not open for further replies.

adhil1986

Junior Member level 1
Joined
Mar 14, 2011
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,402
hi guys!!

I am trying to impliment a feature in icfb ic5 where the user is able to zoom in and out of a layout design using the mouse wheel, can anyone advise me on this, i really dont have any lead to start on this project.

thanks in advance
Adhil
 

I am a newbie to this site. I may not know exactly what you are asking. Are you referring to a similar action that can occur in AutoCad? Whereas the thumb-wheel action of your mouse zooms in/out?
 

Dear adhil:
I remember ic5141 has this feature. If not modify the .cdsinit or copy all the files in the $CDS_INST_DIR/tools/dfII/sample/local to $CDS_INST_DIR/tools//dfII/local and change the name of cdsinit to .cdsinit
Hope helpful
Daniel

---------- Post added at 18:42 ---------- Previous post was at 18:37 ----------

what's more, I find a few lines about the mouse wheel.

alias bk hiSetBindKey
when( isCallable('leGetEnv)
bk("Layout" "<Btn4Down>" "geScroll(nil \"n\" nil)")
bk("Layout" "<Btn5Down>" "geScroll(nil \"s\" nil)")
bk("Layout" "Shift <Btn4Down>" "geScroll(nil \"w\" nil)")
bk("Layout" "Shift <Btn5Down>" "geScroll(nil \"e\" nil)")
bk("Layout" "Ctrl <Btn4Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 2.0)")
bk("Layout" "Ctrl <Btn5Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 0.5)")
)

<Btn4Down> and <Btn5Down> correspond to rolling up and down the wheel.
 

thanks dannie, the code works, and implemented it into the .cdsinit file
 

To my opinion it will be better nstead of

bk("Layout" "Ctrl <Btn4Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 2.0)")
bk("Layout" "Ctrl <Btn5Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 0.5)")

use

bk("Layout" "Ctrl <Btn4Down>" "hiZoomInAtMouse()")
bk("Layout" "Ctrl <Btn5Down>" "hiZoomOutAtMouse()")

In this case image will be zoomed to mouse cursor place (like in Google map)
 
hey!!!

i am also trying to use the stretch whilst zooming out of the layout, so that i can select the edges that i want from edges of polygons which are closely situated. the ic5 that im using does not handle zooming out and stretching at the same time, how can i fix this problem

Adhil
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top