Model.hm_info_unusedlist#

Model.hm_info_unusedlist(entity_type)#

Returns the list of unused entities of the given entity type.

Parameters:

entity_type (EntityFullType) – The entity class for which to return the unused entities.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResult - Result object containing the output values:

    • unused_entities (list) - List of entity objects representing the unused entities of the specified type.

Example#

Return the list of unused properties#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_info_unusedlist(ent.Property)

print(f"Unused property IDs: {[entity.id for entity in result.unused_entities]}")