Support Forum

How to delete all sub cells?

User
LayoutEditorFull
Tuesday 4th February 2020
Attachments:
(only for registered users)
 many_cells.gds
I want to delete many sub cells all at once using a macro. The deleteCurrentCell() function can only delete the current open cell, but all of its sub cells still exist. What is the correct way of deleting a cell and all of its sub cells in a macro? Please see the attached files for details. Thanks!
J├╝rgen
LayoutEditorFull
Tuesday 4th February 2020
It is not exactly what you have request, but mostly exactly what you really need: the feature *stripUnneeded* , it will remove any cell not required in the current cell. You can call it from a macro with ``` layout->drawing->stripUnneeded();``` If you simple remove all dependences that are used by the removed cell, you may remove as well a cell that is still in use by another cell reference.