• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. skill to zoom in and out only with mouse

Stats

  • Replies 5
  • Subscribers 163
  • Views 16398
  • Members are here 0
More Content

skill to zoom in and out only with mouse

AbouYahya
AbouYahya over 15 years ago

 

hi 

Can anyone help me

i need a skill to zoom in and out only with mouse

i work with 15.7

merci.

  • Sign in to reply
  • Cancel
  • vramanan
    vramanan over 15 years ago

     Hi

    You could implement this by adding the following  on the env file

    The env file is located in

    %CDSROOT%/share/pcb/text/env

    ########Start Cut Here

    #--------------------------------------------------------------------
    # MOUSE WHEEL SUPPORT (Windows only)
    #   Environment Variables - Note quote variables so they are evaluated
    #        at button time not when this file is read.
    #   - _wheelcnt variable is set based upon number of detents wheel moved
    #    range is -4 to 4 (no 0)
    #   - sx1 and sy1 are cursor coordinates when wheel is moved
    #
    # Button values
    #   wheel_up:   when wheel is moved up
    #   wheel_down: when wheel is moved down
    #   wheel:    up/down if either of above 2 buttons are not assigned
    # 
    # Keyboard modifiers (note we are case insensitive)
    #   S - shift key
    #   C - control key
    #   SC - shift and control
    #     Example: SCwheel - for wheel button assignment with both shift & control keys
    #

    # Button factor may be factorion (e.g. 0.5)
    set buttonfactor = 1

    button wheel_up "zoom in $buttonfactor"
    button wheel_down "zoom out $buttonfactor"
    button Cwheel_up "zoom in $buttonfactor"
    button Cwheel_down "zoom out $buttonfactor"

    ########End Cut Here

    Regards
    Venkata

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 15 years ago

    Hi

     Those commands could also be executed inside skill using AxlShell.

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AbouYahya
    AbouYahya over 15 years ago

    hi

    can you give me a detail pleaz

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 15 years ago

     This requires Allegro 16.0 or newer. It is not available in 15.7

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tomoo
    tomoo over 15 years ago

    I believe that you can zoom in and out by using middle(wheel) mouse without skill in 15.7 default configuration .
    Usually I also use the function without anything particular setting in 15.7.
    Please refer to the following description in the 15.7 product document.

    ----------------------
    Middle Mouse Button

    Press and hold the middle mouse button while moving the mouse in the direction you want to pan and use the view (zoom) features (see Viewing a Design). If you click the middle mouse button, the system either zooms in or out, based on the direction in which you move the cursor. If you move from top left to bottom right, the display zooms out. If you move from bottom right to top left, the display zooms in. In both cases, a rectangle that depicts the new zoom area displays. You can disable the zoom functionality by setting the environment variable no_dynamic_zoom.

    In Windows, for Wheel mouse devices (middle mouse button is a wheel), the middle mouse button must be defined so that the roam function works correctly. Access the Control Panel to open the Mouse Option Control and check the behavior.

    The easiest way to zoom in, zoom out, and move across a design display in the UI workspace is by way of the middle mouse button. The button gives you access to all the zoom features available from the menu bar or keyboard commands (except zoom in, which is integrated into zoom points) without the need to make a menu selection or enter a command at the console window prompt. Use of the middle mouse button also enables you to roam or pan across a design.

    The zoom function remains active until you click the middle mouse button a second time. (Clicking the left mouse button also takes you out of zoom mode.)

    If you prefer not to use the dynamic zoom features, you can disable the functionality by setting the environment variable no_dynamic_zoom in the User Preferences Editor. By setting this variable, middle-button functionality is limited to zooming in or zooming out.

    ----------------------

    Hope this helps.
    Tomo

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information