Model.hm_attributeindexsolver_byentityname#
- Model.hm_attributeindexsolver_byentityname(entity_type, entity_name, attribute_index)#
Returns the solver number of an indexed attribute on an entity.
- Parameters:
entity_type (EntityFullType) – The type of entity to query.
entity_name (hwString) – The name of the entity.
attribute_index (int) – The index of the attribute owned by the queried entity (starting at 1).
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:solverNumber (int)
Example#
Get the attribute solver number of the attribute with index 3 on material with name “ mat1 “#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_attributeindexsolver_byentityname( entity_type=ent.Material, entity_name="mat1", attribute_index=3 ) print("solverNumber", result.solverNumber)