Model.hm_getincludesentities_byids#

Model.hm_getincludesentities_byids(include_ids, collection_set)#

Selects entities and returns the entity types contained in specified include files. The return value is the list of entity types found in the specified includes. The actual entities are populated on the specified collection.

Parameters:
  • include_ids (hwIntList) – The IDs of the includes to query.

  • collection_set (CollectionSet) – The set of collections containing possibly multiple type of found entities.

Returns:

Example#

Find all of the entities in include IDs 1,2,3,4#
import hm
import hm.entities as ent

model = hm.Model()

output = hm.CollectionSet(model)

_, result = model.hm_getincludesentities_byids(include_ids=[1, 2, 3, 4], collection_set=output)

print("entity_types", result.entity_types)