Model.hm_ae_state#

Model.hm_ae_state(entity)#

Return the current state of an attachment (modified, unrealized, realized, failed).

Parameters:

entity (Entity) – The object describing the attachment entity to query.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResult - Result object containing the output values:

    • state (str) - Current state of an attachment (modified, unrealized, realized, failed)

Example#

Query the state of attachment with ID 4#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_ae_state(entity=ent.Attachment(model, 4))

print("Attachment State:", result.state)