Model.hm_entityinfo_configid#
- Model.hm_entityinfo_configid(entity_type, config_name)#
Returns for the current template the configuration ID for the specified entity type and configuration name.
- Parameters:
entity_type (EntityFullType) – The entity type on which the configuaration ID is queried. Currently supported for elements and loads.
config_name (hwString) – The configuration name.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:currentConfigTypeId (int)
Example#
Find the configuration ID forconfig_name="quad4 "element entities in Optistruct profile#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_entityinfo_configid(entity_type=ent.Element, config_name="quad4") print("Configuration Type ID:", result.currentConfigTypeId)