Model.hm_metadata_all#

Model.hm_metadata_all()#

Returns all metadata.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResultList - Result list object containing HmQueryResult objects with the following output data:

    • entity (Entity) - The entity to which the metadata is attached.

    • name (hwString) - The name of the metadata.

    • value (Union[bool, str, float, int, list, numpy.ndarray, Entity, EntityList]) - The value of the metadata.

Example#

Find all metadata in current model#
import hm
import hm.entities as ent

model = hm.Model()

_, resultlist = model.hm_metadata_all()

for result in resultlist:
    print("Entity ID:", result.entity.id, "| Metadata Name:", result.name, "| Metadata Value:", result.value)