Model.hm_entitymaxid#
- Model.hm_entitymaxid(entity_type, recalculate=1)#
Returns the maximum internal ID in use for an entity type.
- Parameters:
entity_type (EntityFullType) – The type of entity to query.
recalculate (int) –
An optional argument, indicating whether the maximum internal ID should be recalculated due to deleted entities. Valid values are:
0 - Do not recalculate.
1 - Recalculate. (default)
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:maxInternalID (int)
Example#
Get the maximum internal ID for properties#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_entitymaxid(entity_type=ent.Property) print("maxInternalID", result.maxInternalID)