hm_entitymaxid

Returns the maximum internal ID in use for an entity type.

Syntax

hm_entitymaxid entity_type ?recalculate?

Type

HyperWorks Tcl Query Command

Description

Returns the maximum internal ID in use for an entity type.

Inputs

entity_type
The type of entity to query.
recalculate
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).

Example

To get the maximum internal ID for properties:

hm_entitymaxid props

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}