delete_layers
- compas_rhino.utilities.delete_layers(layers)[source]
Delete layers and all contained objects.
- Parameters
layers (
dict
orlist
ofstr
) – Can be given as either a list of strings or as a dictionary.When given as a list the list elements should be name of layers given with
"::"
as a separator between hierarchies.It can also be defined as a dictionary of layers with the keys representing layer names, and the values also dictionaries defining optional nested layers.
Examples
layers = {'COMPAS': {'layers': {'Datastructures': {'layers': {'Mesh': {}, 'Network': {}}}}}} create_layers(layers) delete_layers(['COMPAS::Datastructures::Network']) delete_layers({'COMPAS': {'layers': {'Datastructures': {'layers': {'Mesh': {}}}}}})