• 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. Message with timeout in graphic editor (layout, schematic...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 14424
  • 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

Message with timeout in graphic editor (layout, schematic)

patschouly
patschouly over 5 years ago

I have some keybindings for changing layers, grid etc. in layout and schematic. I would like to get some visual feedback what setting I switched to (for instance the grid spacing). I tried to do this with hiDisplayAppDBox, but this creates a dialog that I have to dismiss, which is a nuisance. Is there a way to draw directly on the canvas (e.g. as the "Selection Hint" does)? This message should disappear after some seconds or after the canvas is moved.

Here is my current approach:

procedure(SetGridSnapSpacing(snap)
    let( (cv)
        cv = hiGetCurrentWindow()
        cv~>xSnapSpacing = snap
        cv~>ySnapSpacing = snap
        cv~>gridSpacing = snap
        cv~>gridMultiple = 5
        hiDisplayAppDBox(?name gensym("dummy") ?dboxText sprintf(nil "Snap pattern changed to %g" snap) ?buttonLayout 'Close ?dialogType hicInformationDialog)
    ) ; let
)

Thanks in advance, kind regards,

Patrick

  • Cancel
Parents
  • dmay
    dmay over 5 years ago

    You could create a highlight label that appears over the layout at the current zoom location and then use the hiRegTimer to clear the highlight after a few seconds. The size of the label should be made relative to the size of the current view area so that it is visible and readable whether you are zoomed way in or way out. 

    curWinCoordBox = geGetWindowBox(hiGetCurrentWindow())

    Here is an example of creating a highlight label:

    https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nVwQEAU&pageName=ArticleContent

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 5 years ago in reply to dmay

    Looking at the sample code in the link, it appears to delete ALL highlight sets which may not be what you want and it also requires the bindkey press. Max gave an example of hiRegTimer which could clear the highlight automatically.

    The code creates a hilightSet called set1. I'd do it like this:

    CCSaddHighlight.hiSet = geCreateHilightSet(cv list("hilite" "drawing1")) ; Store as symbol property instead of global variable

    hiRegTimer("geDeleteHilightSet(CCSaddHighlight.hiSet)" 50)

    The rest of the code can be used as is (skip the F10 bindkey). This will clear the one highlight set after 5 seconds. Of course, if your users toggle the snap grid settings more than once in 5 seconds, you'll be creating multiple highlight sets and overwriting the setting you intend to clear. I'll leave this as an exercise for you to solve. The geDeleteAllHilightSets will indeed clear all of these and any other highlights in the cellview.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dmay
    dmay over 5 years ago in reply to dmay

    Looking at the sample code in the link, it appears to delete ALL highlight sets which may not be what you want and it also requires the bindkey press. Max gave an example of hiRegTimer which could clear the highlight automatically.

    The code creates a hilightSet called set1. I'd do it like this:

    CCSaddHighlight.hiSet = geCreateHilightSet(cv list("hilite" "drawing1")) ; Store as symbol property instead of global variable

    hiRegTimer("geDeleteHilightSet(CCSaddHighlight.hiSet)" 50)

    The rest of the code can be used as is (skip the F10 bindkey). This will clear the one highlight set after 5 seconds. Of course, if your users toggle the snap grid settings more than once in 5 seconds, you'll be creating multiple highlight sets and overwriting the setting you intend to clear. I'll leave this as an exercise for you to solve. The geDeleteAllHilightSets will indeed clear all of these and any other highlights in the cellview.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • 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.

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

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