• 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. Need the X:Y co-ordinates of the point

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 149
  • Views 9128
  • 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

Need the X:Y co-ordinates of the point

Chin Cypress
Chin Cypress over 16 years ago

Hello all

          I need the x:y co-ordinates of the point where i clicked in the layout editor window.

Requirement : need to get the points and print in to the file.

 Please suggest the command to be used ASAP

Rgds

Chin 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago
    Sorry - I didn't read the manual for leZoomToPoint - I was just taking your code as a starting point; I shouldn't have assumed it was correct.

    Now that you've explained your requirement - which would have been the best thing to do in the first place, as it is now obvious what you're trying to do.

    I have some SKILL code which does what you want - or similar - albeit in a rather different way. I'll post it later when I've got a proper connection.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    Here's the code. Define a bindkey which calls abCopyWinView() . When you press the bindkey it will prompt you to pick two windows (source and destination) - or just destination if you have infix on - and will copy the zoom position from one window to the other.

    Regards,

    (procedure (abCopyWinViewCB win done points)
      (let (bbox)
           (setq win (hiGetCurrentWindow))
           (when (and done (windowp win) (windowp abCopyWinViewFrom))
                 (setq bbox (hiGetViewBBox abCopyWinViewFrom))
                 (hiZoomIn win bbox))))
    
    /***************************************************************
    *                                                              *
    *             (abCopyWinView @optional (win nil))              *
    *                                                              *
    *     Procedure to copy a view from one window to another      *
    *                                                              *
    ***************************************************************/
    
    (procedure (abCopyWinView @optional (win nil))
      (unless win (setq win (hiGetCurrentWindow)))
      (setq abCopyWinViewFrom win)
      (hiSetCurrentWindow win)
      (when (windowp win)
            (enterMultiRep ?prompts '("Point to the source window" "Point to the destination window")
                           ?points '((0 0))
                           ?doneProc "abCopyWinViewCB"
                           ?dontDraw t
                           ))
      t)
    

    Andrew.

    • 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