Model.hm_entityminid#
- Model.hm_entityminid(entity_type, recalculate=1)#
Returns the minimum 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 minimum 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:minInternalID (int)
Example#
Get the the minimum internal ID for properties#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_entityminid(entity_type=ent.Property) print("minInternalID", result.minInternalID)