• 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. Custom IC SKILL
  3. Virtuoso graphical window - get absolute scale

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 143
  • Views 5980
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Virtuoso graphical window - get absolute scale

caver456
caver456 over 4 years ago

What's the best way to determine the absolute scale (in the same definition as hiZoomAbsoluteScale) of an existing window?  I'd like to set one window to have the same absolute scale as another window - even if the windows are different sizes / aspect raios.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to caver456

    I'm not sure that's really doable. You'd need to know the number of pixels on the canvas itself together with the hiGetViewBBox - and then use that to compute the equivalent zoom area in the other window using the canvas size of that window. You can find the screen coordinates (in pixels) of the entire window, but that includes the toolbars, assistants and so on, but not sure there's a way of finding the canvas area in pixels.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • caver456
    caver456 over 4 years ago in reply to Andrew Beckett

    I'll probably just go with the entire window size, figuring/hoping that it's "close enough", and see how that goes.  Regardless, thanks for your quick help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RK56
    RK56 over 4 years ago in reply to caver456

    I'm not sure of your requirement. But registering and unregistering the zoom pan proc are not problematic and I was able to sync two windows. The implementation was quite simple; Get the window coordinates that come from the callback and apply to the target window.

    With ICADV20 version, I see only zoom events are getting triggered by hiRegZoomPanProc(). In previous versions, any layer visibility change was triggering the callback. I have not checked through the documentation for this behaviour

    -Ramakrishnan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
<

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