• 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. Help on skill code for unselecting/selcting objects like...

Stats

  • Locked Locked
  • Replies 23
  • Subscribers 143
  • Views 13900
  • 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

Help on skill code for unselecting/selcting objects like path/wire, rectangle/polygon etc.

zeroskills
zeroskills over 15 years ago

Hi All,

First of all, i have no talent doing skill code, i have very very basic knowledge of it. here's my request, and i think it's possible because if did some reseach on it, i just don't know how to do it.

Problem:

For example, i have a wire/path and a rectangle/polygon overlapping each other, i would like to select "only" the wire/path and not the rectangle/polygon. it would be nice if there's a skill code that can turn off or on wire/path or rectangle/polygon selection like the instance button on the LSW window.

So basically i would like to have something like the intance turning on or off selection, like this...

--->leSetObjectSelectable("inst" t) instance is selectable or

--->leSetObjectSelectable("inst" nil) instance is unselectable

But i would like something like this for other objects, like wire/path, rectabgle/polygon etc. not necessarily a button but i would like it to toggle, like "shift+w" to turn it on or off using if statements.

Thanks in advance, I hope someone could help me. 

 

 

  • Cancel
Parents
  • zeroskills
    zeroskills over 15 years ago

    Thanks Andrew for your patience! Now it is really working for me!

    i was reading it but not sure what to do with it, so you previous reply was really helpful. i did this:

    hiSetBindKey("Layout" "Ctrl<Key>7" "abShapeSelectionSetFilter(?togglePath t)")

    and it does toggle the wire selectable/unslectable. also added this:

    hiSetBindKey("Layout" "Ctrl<Key>8" "abShapeSelectionSetFilter(?togglePolygon t)")
    hiSetBindKey("Layout" "Ctrl<Key>9" "abShapeSelectionSetFilter(?toggleText t)")
    hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    so the polygon and text are toggleing the same as the wire, so i get it now. then i tried what if i did the selectable/unselectable for wire,polygon, text? so i did the last one...

    hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    it does toggle from selectable/unselectable, but the only thing different is, when i want everything selectable, it doesn't "reset" the current state of the wire,polygon,text. for example,

    wire=unselectable, polygon=selectable, text=selectable

    when i tried this: hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    wire=selectable, polygon=unselectable, text=unselectable

    could there be a separate code to do  selectable all and unselectable all? please correct me again if in the notes.

     

    But Thanks! The code really really works 100%! Thanks you very much, I hope you'll me again on my next request.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • zeroskills
    zeroskills over 15 years ago

    Thanks Andrew for your patience! Now it is really working for me!

    i was reading it but not sure what to do with it, so you previous reply was really helpful. i did this:

    hiSetBindKey("Layout" "Ctrl<Key>7" "abShapeSelectionSetFilter(?togglePath t)")

    and it does toggle the wire selectable/unslectable. also added this:

    hiSetBindKey("Layout" "Ctrl<Key>8" "abShapeSelectionSetFilter(?togglePolygon t)")
    hiSetBindKey("Layout" "Ctrl<Key>9" "abShapeSelectionSetFilter(?toggleText t)")
    hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    so the polygon and text are toggleing the same as the wire, so i get it now. then i tried what if i did the selectable/unselectable for wire,polygon, text? so i did the last one...

    hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    it does toggle from selectable/unselectable, but the only thing different is, when i want everything selectable, it doesn't "reset" the current state of the wire,polygon,text. for example,

    wire=unselectable, polygon=selectable, text=selectable

    when i tried this: hiSetBindKey("Layout" "Ctrl<Key>0" "abShapeSelectionSetFilter(?toggleText t ?togglePolygon t ?togglePath t)")

    wire=selectable, polygon=unselectable, text=unselectable

    could there be a separate code to do  selectable all and unselectable all? please correct me again if in the notes.

     

    But Thanks! The code really really works 100%! Thanks you very much, I hope you'll me again on my next request.

     

    • 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