Model.hm_me_entitiesall#

Model.hm_me_entitiesall(id)#

Returns all of the entity types and IDs contained in a part.

Parameters:

id (int) – The ID of the part to query.

Returns:

Example#

Get the entities contained in a part with ID 10#
import hm
import hm.entities as ent

model = hm.Model()

_,resultlist = model.hm_me_entitiesall(id=10)

for result in resultlist:
    print("entityType", result.entityType)
    print("ids", result.ids)