delete_layers

compas_rhino.utilities.delete_layers(layers)[source]

Delete layers and all contained objects.

Parameters

layers (dict) – 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': {}}}}}})