• 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. change selected layer

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 144
  • Views 18960
  • 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

change selected layer

vincentmt
vincentmt over 16 years ago

if i wish to change a selected layer from one data type to another data type, what i should type in CIW ? (without using leHiEditProp())

etc i want to change M1 "drawing" to M1 "B5" on a selected rect/ poligon.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago
    Assuming all the selected shapes are on the same layer (or you don't mind
    changing other things too - in other words, with no sanity checking), it's just:

    geGetSelSet()~>purpose="B5"

    Regards,

    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi vincent,

     You can direct change the layer attributes of selected object.

    obj_id = car(geGetSelSet())

    obj_id~>purpose = "B5"

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vincentmt
    vincentmt over 16 years ago

    Thanks andrew and kbhow.

    so how about if i want to change the layer and the purpose at the same time? is it posible to do it? i have try out, i can't make it if want to do this two action at the same time.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi Vincent,

     To change the layer and layer purpose at the same time, u can do this.

    obj_id~>lpps = list("M2" "net")

     

    How

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vincentmt
    vincentmt over 16 years ago

    hi kbhow,

    i try your advice, but it's didn't show any changes.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi Vincent,

    It is my typo... the layer and purpose can be change easily by changing the object's lpp

    FYI, you can view all the info of the object by using the tail operator. 

    obj_id~>??

     

    And to change the layer and purpose,

    obj_id~>lpp = list("M2" "drawing")

    will helps

     

    How

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi Vincent,

    Your coding should not working cause it is not proper constructed. You may try this.

     

    procedure( changePurpose( @optional (purpose "drawing"))

        let((selset)

            selset = geGetSelSet()

            foreach( sel selset

                    sel~>lpps = list(sel~>layerName purpose)

            );foreach

        );let

    );proc

     

    ;; Set bindkeys

    hiSetBindKey( "Layout" "<Key>F1" "changePurpose()")      ;by default, it will change to drawing

    hiSetBindkKey("Layout" Shift<Key>F1" "changePurpose("pin")")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    You don't really need to do the foreach. You can just do:

      geGetSelSet()~>lpp='("newLayer" "newPurpose")

    or:

      geGetSelSet()~>purpose="newPurpose"

    if you just want to change the purpose.

    How's code won't work because it uses sel~>lpps inside the foreach, and it should be sel~>lpp (the attribute is called lpp, not lpps)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Thanks Adrew for the good catch. =D

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vincentmt
    vincentmt over 16 years ago

    thanks andrew and how for the help. :)

    • 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