• 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 delete Via in layout?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 15451
  • 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 delete Via in layout?

hasley17
hasley17 over 7 years ago

I draw  my layout. When I use the function deleteAllObjectsInLayout( cvid ) to delete the layout, all instances and metals are deleted except the Vias I created.

the function is defined below, How should I modify my code  for deleting Vias? Thank you!

procedure(deleteAllObjectsInLayout( cvid )

  let((propName inst)
     dbDeleteAllNet( cvid )


     foreach( inst cvid~>instances
    dbDeleteObject( inst ))


    foreach( inst getSGq( cvid shapes )
   dbDeleteObject( inst ))


t);end let
);end procedure

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    You'd need:

    foreach(via cvid~>vias dbDeleteObject(via))

    By the way, if you're using the C-style I wouldn't use the getSGq function - it's completely equivalent to the ~> operator. So the shapes line would be more cleanly written as:

    foreach(shape cvid~>shapes dbDeleteObject(shape))

    (I wouldn't have called the loop variable  inst  either when iterating over shapes, as it's confusing).

    Given that the above code won't delete blockages, markers and various other objects - if your goal is to completely erase everything in the cellView the simplest way is just to do:

    dbReopen(cvid "w")

    which will erase everything in one go.

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • hasley17
    hasley17 over 7 years ago in reply to Andrew Beckett

    thank you for your suggestions. It works!

    • 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