• 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. Use procedure while another interactive command is active...

Stats

  • Replies 1
  • Subscribers 159
  • Views 12495
  • Members are here 0
More Content

Use procedure while another interactive command is active?

DavidIMS
DavidIMS over 9 years ago

Hello,

I wrote the following skill procedure and bound it to the spacebar:

zoomin=1
scale=20.0
procedure( ZoomToPoint()
    let((winId coords)
    winId=hiGetCurrentWindow()
    coords=hiGetPoint(winId)
        if((zoomin==1)
            then hiZoomWindowAtPoint(winId scale coords)
                (hiPan winId coords)
                 zoomin=0
                ;printf("\nZoomin\n" )
            
            else
                hiZoomRelativeScale(hiGetCurrentWindow() 1/scale)
                zoomin=1
                ;printf("\nZoomout\n")
            )
    );let

    )

So when pressing space it zooms to the cursor and when pressing it again it zooms out.

What I want to do with it is to be able to place objects quickly and more precisely. So for example I want to select an object and start the movecommand, than zoom to the point where I want to place it, so I can place it precisely and than zoom out again using spacebar.

The problem is that my function does not work, when I am in the middle of an interactive command.

Thanks

David

Using Cadence 5.141

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 9 years ago

    You are posting to the wrong forum. It you are using "hi" Skill APIs  you should post in the Custom IC SKILL forum.

    • 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