Model.hm_getentitytypes#
- Model.hm_getentitytypes(option)#
Returns a list of entity types based on the specified option.
- Parameters:
option (hwString) –
The type of entity types to return. Valid values are:
all - All entity types are returned
named - Only named entity types are returned
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:entityTypeList (list of strings)
Example#
Get the named entity types#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getentitytypes(option="named") print("Named entity types:", result.entityTypeList)