Model.hm_isentitydatanameparameterized#
- Model.hm_isentitydatanameparameterized(entity, data_name_or_attribute, row=-1, column=-1)#
Returns parameter ID if the specified data name or attribute is parameterized, otherwise returns value of 0.
- Parameters:
entity (Entity) – The object describing the entity to query.
data_name_or_attribute (hwString) – The data name or template attribute name to query.
row (int) – Row index for a 1D or 2D array. For a 1D array, it checks the parameterization at the specified row index. For a 2D array, it will check for the entire row. This should be blank for non-array data names/attributes.
column (int) – Column index for a 2D array. Used together with row_index, it checks the parameterization at the specified row_index and column_index. This should be blank for non-array data names/attributes.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:parameterID (int)
Example#
Check the parameterization of attribute with name LSD_DA1 for set entity with ID 5#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_isentitydatanameparameterized( entity=ent.Set(model, 5), data_name_or_attribute="LSD_DA1" ) print("parameterID", result.parameterID)