• 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 create a menu icon for toggling via partial selection...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 5490
  • 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

How to create a menu icon for toggling via partial selection.

skillEater
skillEater over 1 year ago

Hi 

Can anybody tell me is there any option to add via partial selection to the options menu bar or any other menu bar.

If not Can somebody tell me how to write a skill code for that.or a bindkey which can toggle the via partial selection.

Thanks

Ganesh Doddipatla.

  • Cancel
Parents
  • AurelBuche
    AurelBuche over 1 year ago

    Hi,

    Here you go

    procedure( toggle_partial_via_selection_locally( @key (win hiGetCurrentWindow()) @rest _args)
      "Toggle Partial Via Selection in current window"
      win->selectPartialVia = !win->selectPartialVia
      )
    
    
    procedure( toggle_partial_via_selection_globally( @rest _args)
      "Toggle Partial Via Selection for all windows"
      envSetVal( "graphic" "selectPartialVia" 'boolean !envGetVal("graphic" "selectPartialVia" 'boolean))
      )

    Cheers

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillEater
    skillEater over 1 year ago in reply to AurelBuche

    Hi Aurelien

    Thank you for the help. It worked.

    I just need one more help. I also want the same for mosaics.

    I am also trying to put the icons on menu bar anyway with the help of SKILL because I want to learn how to do it.

    If you could help me regarding that. It will be very helpful.

    I am trying to find the inputs like "selectPartialVia"  in Finder. But not able to find it.

    Can you help me how to find them. It would be helpful for future trials.

    Thank you

    Ganesh Doddipatla.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago in reply to skillEater

    Ganesh,

    This isn't a foolproof method, but in many cases you can go to Options→Cdsenv Editor in the CIW and search for something relevant. For example, search for "partial". Then in the Layout Editor, go to Options→Selection and check the Mosaic Partial Selection, hit Apply, and then the Cdsenv Editor should highlight what changed.

    You can (in this case) use the same property name for the window as the cdsenv name.

    Hope that helps in terms of "teaching you how to fish!!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 1 year ago in reply to Andrew Beckett

    Hi  Andrew Beckett,

    I know this has already been discussed but it would be very helpful if the Cdsenv Editor had those improvements : 

    A description column with documentation for most variables

    The ability to search using several expressions, i.e. the search string "partial via" should return all the variables matching "partial" and "via"

    The ability to seach in descriptions as well

    Usually I find the variables I am looking for in the support website.
    Even if I find them in the Cdesenv Editor, I end up looking for the description by searching the support website using the exact variable name

    In the current case I got (from Virtuoso Layout Suite L User Guide IC6.1.8 - Selection Options Form)

    Via Partial Selection allows partial selection of vias. You can control the status of this option using the SKILL Command

    hiGetCurrentWindow()~>selectPartialVia

    Which is still a very limited info about the variable

    Cheers

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillEater
    skillEater over 1 year ago in reply to AurelBuche

    Hi Aurelien and Andrew,

    Thank you for your response.

    Andrew,

    I am able to find it for mosiac as well using cdsenv Editor.

    But now I am not able to use it for a different option that I want access.

    Now I am trying to toggle between keepcopying and normal copying with the help of a bindkey while using the copy option.

    long back you helped me doing this while drawing a rectangle.

    Now I am trying to use same way to access copy options.But not able to access it.

    It is still working during draw rectangle input instead of during copy function.

    The code is as follows

    hiSetBindKey("Layout" "<Key>sEF" "leSetEnv(\"copyRecursive\" !leGetEnv(\"copyRecursive\"))")

    Can you tell me where I am wrong and how to correct it.

    Thanks

    Ganesh Doddipatla.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillEater
    skillEater over 1 year ago in reply to AurelBuche

    Hi Aurelien and Andrew,

    Thank you for your response.

    Andrew,

    I am able to find it for mosiac as well using cdsenv Editor.

    But now I am not able to use it for a different option that I want access.

    Now I am trying to toggle between keepcopying and normal copying with the help of a bindkey while using the copy option.

    long back you helped me doing this while drawing a rectangle.

    Now I am trying to use same way to access copy options.But not able to access it.

    It is still working during draw rectangle input instead of during copy function.

    The code is as follows

    hiSetBindKey("Layout" "<Key>sEF" "leSetEnv(\"copyRecursive\" !leGetEnv(\"copyRecursive\"))")

    Can you tell me where I am wrong and how to correct it.

    Thanks

    Ganesh Doddipatla.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 1 year ago in reply to skillEater

    Ganesh,

    The env var is called keepCopying not copyRecursive. For some reason the field on the options form is called copyRecursive (possibly it was called that during development), but you can see the keepCopying var changing on the cdsenv editor easily enough.

    Andrew

    • 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