• 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. Merge Shapes -- cycle through 'Scope' options

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 681
  • 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

Merge Shapes -- cycle through 'Scope' options

iDoLayout
iDoLayout over 2 years ago

I want to assign a bindkey to cycle through the 'Merge Shapes' options.  In the documentation I only see a way to toggle 'Merge Shapes' on and off with 'mergeEnable' -- can't see a way to access the 'Scope' options of 'Pcells, Except current, All'.

I'd like to write a procedure to switch through 'mergeEnable nil' -> 'mergeEnable t w/ Pcells scope' -> 'mergeEnable t w/ Except current scope' -> 'mergeEnable t w/ All scope' -> back to 'mergeEnable nil'

Thanks.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    I just threw together a function which cycles through the options. Hopefully you can see how this works:

    procedure(CCFcycleMergeShapes(@optional (win hiGetCurrentWindow()))
      letseq((
        (mergeEnable win->mergeEnable)
        (mergeScope mergeEnable && win->mergeScope)
        )
        ;--------------------------------------------------------------------
        ; Using a list of mergeEnable and mergeScope settings, find the
        ; matching entry in the sequence and then use the next entry
        ; to update the window properties
        ;--------------------------------------------------------------------
        destructuringBind(
          (@optional nextEnable nextScope)
          cadr(member(
            list(mergeEnable mergeScope)
            list(list(nil nil) list(t "pcells") list(t "except current")
              list(t "all") list(nil nil))))
          win->mergeEnable=nextEnable
          win->mergeScope=nextScope
          ;------------------------------------------------------------------
          ; Return the new values in case it's useful!
          ;------------------------------------------------------------------
          list(nextEnable nextScope)
        )
      )
    )
    
    • 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