LayerKeyedCollection.RemoveAt Method
Exception type | Condition |
---|---|
When the collection is assigned to an environment, thrown if the OpenBlock is not the RootBlock or if the CurrentBlockReference is different from null. |
It removes also entities on the specified layer inside the Environment.Blocks. If a block becomes empty after the removal of the entities on the layer, all the BlockReferences referring to it are removed as well.