• 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. Skill solution for smartSnap in layout

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 145
  • Views 14323
  • 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

Skill solution for smartSnap in layout

ssram
ssram over 5 years ago

Hi,

Most of the layout functions have now got a smartSnap option. 

For example:

for "leHiCreateRect()", we have the following to turn the smartSnap on/off

leRectXLForm->rectSmartSnapEnable->value= t

leRectXLForm->rectSmartSnapEnable->value= nil

for "leHiCreateRuler", we have the following to turn the snap option on/off

ruler->rulerSnapOff->checked=t

ruler->rulerSnapEdges->checked=t

So, i was thinking if i could set a global bindkey to turn the smartSnap on/off for all such functions. What i mean is, when the "leHiCreateRect()" is active pressing the bindkey for example "Shift<Key>s" would toggle the smartSnap for it on/off and if the function "leHiCreateRuler" is active, the same bindkey "Shift<Key>s" would toggle the smartSnap on/off for it.

Can anyone help out with a SKILL solution? I think its a good to have feature built in Cadence tool itself.

Thanks

Ram

  • Cancel
Parents
  • sedersingh
    sedersingh over 5 years ago
    This reply was deleted.
    • Cancel
    • Cancel
Reply
  • sedersingh
    sedersingh over 5 years ago
    This reply was deleted.
    • Cancel
    • Cancel
Children
  • ssram
    ssram over 5 years ago in reply to sedersingh

    Hey, i'm using the IC18.1.7

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to ssram

    I'm not sure what version is IC18.7 (there's no such version), but I think you could call this function on a bind key - and it could be extended for other commands potentially:

    procedure(CCFtoggleSnap(@optional (win hiGetCurrentWindow()))
      let((current)
        case(hiGetCurrentCmd(win)
          ("Ruler"
            current=ruler->rulerSnapOff->checked
            ruler->rulerSnapOff->checked=!current
            ruler->rulerSnapEdges->checked=current
          )
          ("Rectangle"
            leSetEnv("rectSmartSnapEnable" !leGetEnv("rectSmartSnapEnable"))
          )
        )
      )
    )

    Simply load the code, and then have CCFtoggleSnap() on your bind key.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ssram
    ssram over 5 years ago in reply to Andrew Beckett

    Thanks Andrew, its the IC18.1 version

    • 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