• 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. How to bind a custom function to a specific action?

Stats

  • Replies 2
  • Subscribers 148
  • Views 827
  • Members are here 0

How to bind a custom function to a specific action?

ingalfo
ingalfo 22 days ago
Hi, I’d like to execute a specific function that I defined whenever a certain action is performed. For example, I’d like it to run println("I selected a net") every time I select a net in the schematic. What’s the most effective way to do this? I know, for instance, that the schSingleSelectPt() function is executed on a mouse click—how can I hook my println to that function once it’s been called?

  • Cancel
  • Sign in to reply
Parents
  • thiruvenkata
    thiruvenkata 21 days ago

    procedure( mySelectNet()


    let( (selectedObjs)


    schSingleSelectPt()
    selectedObjs = geGetSelSet()

    foreach( obj selectedObjs


    when( (obj~>objType == "line" || obj~>objType == "path")


    printf("I selected a net. (Net Name: %L)\n" obj~>net~>name)


    )


    )

    t

    )

    )

    hiSetBindKey("Schematics" "<Btn1Down>" "mySelectNet()")

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 21 days ago in reply to thiruvenkata
    ingalfo said:
    I’d like to execute a specific function that I defined whenever a certain action is performed

    There's no general method for doing this. In some cases triggers are provided (although not for selection - the layout editor has a selection filter trigger which can sort-of do this, but not the schematic) - I would have suggested the bind key change as given above by thiruvenkata 

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett 21 days ago in reply to thiruvenkata
    ingalfo said:
    I’d like to execute a specific function that I defined whenever a certain action is performed

    There's no general method for doing this. In some cases triggers are provided (although not for selection - the layout editor has a selection filter trigger which can sort-of do this, but not the schematic) - I would have suggested the bind key change as given above by thiruvenkata 

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data

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.

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

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