Model.EntityPreviewUnused#
- Model.EntityPreviewUnused(output_collection)#
Searches the specified entities for any unused entities, and stores them in the output collection.
The following entities can be used:
Property
Unused when there are no components, elements, or attributes pointing to the property.
Material
Unused when there are no components, properties, groups, or attributes pointing to the material
Curve
Unused when the curve is not contained in any plots or when no attributes point to the curve.
- Parameters:
output_collection (Collection) – The collection containing the entities.
Example#
Store all unused properties in the collection#import hm import hm.entities as ent model = hm.Model() props = hm.Collection(model, ent.Property) model.EntityPreviewUnused(output_collection=props)