Model.hm_ae_getfe#

Model.hm_ae_getfe(id, entity_type)#

Returns the elements from the realized attachment.

Parameters:
  • id (int) – The ID of the attachment to query.

  • entity_type (EntityFullType) – The type of entity to query. Valid entity type is elements.

Returns:

Example#

Get the elements from attachment with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_ae_getfe(id=2, entity_type=ent.Element)

print("Elements:", [e.id for e in result.elements])