• 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. Quick Align Pointer

Stats

  • Replies 4
  • Subscribers 143
  • Views 1832
  • Members are here 0

Quick Align Pointer

EA1000
EA1000 5 months ago

Hi Everyone, 

I need help. I'm doing script right now. 

Does anyone here know how I can capture the first point (reference point) and second point in QuickAlign, like getting their layer names when I left-click the mouse? The geGetSelSet here is not working. 

In addition, is there any chance that I can modify and reuse the leHiQuickAlign() locally? 

Thanks a lot! 

  • Sign in to reply
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett 5 months ago

    It's not clear what you are asking for here. Are you wanting to implement something yourself which prompts the user to get a reference point and so on? If so, that's what enterPoints() does. Or enterPoint(). You might need to then use dbGetTrueOverlaps or dbShapeQuery to find objects under those points and get the layer name.

    Or maybe you're asking something else.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EA1000
    EA1000 4 months ago in reply to Andrew Beckett

    Hi Andrew,

    Example for this simple script:

    procedure(printLayer()

    gs = geGetObjectSelectedSet()~>layerName
    printf("=> %L\n" gs)


    )
    hiSetBindKey("Layout" "None<Btn1Down>" "printLayer() mouseSingleSelectPt()")
    hiSetBindKey("Layout" "None<Btn1Down>EF" "printLayer() mouseAddPt()")

    When I click the left mouse button, there's a delay before the layer name appears—I have to click again somewhere else for it to show up. Is there a way to fix this so the layer name prints in real time every time I click, without any delay?

    Thanks,

    EA

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 4 months ago in reply to EA1000

    There's no "delay" - it's just that your bindkey does the selection after the call to printLayer, which makes no sense. That means that you'll only print the information on the previous selection.

    hiSetBindKey("Layout" "None<Btn1Down>" "mouseSingleSelectPt() printLayer()")

    should do what you want.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett 4 months ago in reply to EA1000

    There's no "delay" - it's just that your bindkey does the selection after the call to printLayer, which makes no sense. That means that you'll only print the information on the previous selection.

    hiSetBindKey("Layout" "None<Btn1Down>" "mouseSingleSelectPt() printLayer()")

    should do what you want.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • EA1000
    EA1000 4 months ago in reply to Andrew Beckett

    it worked! Thank you so much, Andrew.

    Regards,

    EA

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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