Model.hm_attributenamefromid#

Model.hm_attributenamefromid(attribute_id)#

Returns an attribute name from the attribute ID for the current template. If the attribute does not exist in the current template, an error is returned.

Parameters:

attribute_id (int) – The ID of the attribute to query.

Returns:

Example#

Get the attribute name of the attribute ID 100#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_attributenamefromid(attribute_id=100)

print("Attribute Name:", result.name)