Model.hm_attributetypename#

Model.hm_attributetypename(attribute_id)#

Returns the attribute type string of an attribute for the current template. If the attribute is not an attribute from the current template, an error is returned.

Parameters:

attribute_id (int) – The ID of the attribute to query. The attribute must be in the current template.

Returns:

Example#

Get the attribute type string of the attribute with ID 149 for the LS - DYNA template#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_attributetypename(attribute_id=149)

print("Attribute Type Name:", result.type)