• 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. Deleting ghost layer

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 144
  • Views 19069
  • 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

Deleting ghost layer

dNora
dNora over 13 years ago

 Hi,

I'm trying to delete ghost layers that exists in database but you can't select or view. I can get layers through

foreach(lpp cv~>lpps when(lpp~>purpose=="hv" printf("layer found %s %s\n" lpp~>layerName lpp~>purpose) ) )

dbDeleteObject complains it's invalid type, if I try to use ddDeleteObj then I get

 *Error* ddDeleteObj: argument #1 should be a ddUserType (type template = "b") - db:248248124

What other command can I use?

 

  • Cancel
Parents
  • dNora
    dNora over 13 years ago

    Not quite sure about the question. Maybe something like this script might help. This works on whole library, you could change it to be hierarchy.

    procedure(del_layer(libname layer)
    let((libId viewn cv )
    libId = ddGetObj(libname)
    viewn = "layout"
    ;;cv= geGetEditCellView()

     foreach(cell libId~>cells
       when(member(viewn cell~>views~>name)
          cv = dbOpenCellViewByType(libname cell~>name viewn nil "a")
          info(".. Processing %s\n" cv~>cellName)
                foreach(shape cv~>shapes
                when( (shape~>layerName == layer)
                                 dbDeleteObject(shape)
                      ) ;when
                      );foreach
                dbSave(cv)
         );when
      );foreach
     );let
    );procedure

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dNora
    dNora over 13 years ago

    Not quite sure about the question. Maybe something like this script might help. This works on whole library, you could change it to be hierarchy.

    procedure(del_layer(libname layer)
    let((libId viewn cv )
    libId = ddGetObj(libname)
    viewn = "layout"
    ;;cv= geGetEditCellView()

     foreach(cell libId~>cells
       when(member(viewn cell~>views~>name)
          cv = dbOpenCellViewByType(libname cell~>name viewn nil "a")
          info(".. Processing %s\n" cv~>cellName)
                foreach(shape cv~>shapes
                when( (shape~>layerName == layer)
                                 dbDeleteObject(shape)
                      ) ;when
                      );foreach
                dbSave(cv)
         );when
      );foreach
     );let
    );procedure

    • 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