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.
↧