• 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 set all layers of a specific layer name visible,...

Stats

  • Replies 1
  • Subscribers 148
  • Views 38
  • Members are here 0

How to set all layers of a specific layer name visible, regardless of layer purpose

cvictoria
cvictoria 6 hours ago

I'm creating a procedure that toggles the visibility of a group of layers in the Layout View window. My goal is to toggle all the layers that have the LayerName M1 regardless of their purpose.

I'm able to do this currently by listing out each LayerName & LayerPurpose Pair like so;

leSetLayerVisible(`("M1" "drawing") t)

leSetLayerVisible(`("M1" "dummy") t)

etc. etc.

But its sooooo tedious. 

Is there a way I can use the leSetLayerVisible function for all M1 layers without having to specify each individual purpose combo? I've tried replacing the purpose string with a " * " wildcard but that doesnt seem valid.  

  • Cancel
  • Sign in to reply
Parents
  • Andrew Beckett
    Andrew Beckett 6 hours ago

    procedure(CCFsetLayerVisible(layerName visible @optional (cv geGetEditCellView()))
      let(((tf techGetTechFile(cv)))
        foreach(purpose setof(lp tf~>lps lp~>name==layerName)~>purpose
          leSetLayerVisible(list(layerName purpose) visible)
        )
        t
      )
    )

    Then you can use CCFsetLayerVisible("M1" t)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett 6 hours ago

    procedure(CCFsetLayerVisible(layerName visible @optional (cv geGetEditCellView()))
      let(((tf techGetTechFile(cv)))
        foreach(purpose setof(lp tf~>lps lp~>name==layerName)~>purpose
          leSetLayerVisible(list(layerName purpose) visible)
        )
        t
      )
    )

    Then you can use CCFsetLayerVisible("M1" t)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information