*updateidrange

Updates an ID range.

Syntax

*updateidrange submodel_type id shortname entity_type min_id max_id pool_id integer_array number_of_integers

Type

HyperMesh Tcl Modify Command

Description

This command updates an ID range for a submodel.

Inputs

submodel_type
The type of submodel to update the ID range for. Valid values are includes and submodel. Submodel is recommended.
id
The ID of the submodel. Not required if shortname is used.
shortname
The shortname of the submodel. Not required if id is used.
entity_type
The type of entity to update the ID range for.
min_id
The minimum ID for the range.
max_id
The maximum ID for the range.
pool_id
The ID of the solver pool.
integer_array
The ID of the integer array that contains the locked IDs. The integer array is created using the *createarray command. This should always be set to 1.
number_of_integers
Integer indicating the size (number of integers) in the integer array created using *createarray.

Examples

To update an ID range for include 1 with min ID 1,000 and max ID 100,000 for components:

*updateidrange includes 1 "" comps 1000 100000 0 1 0

To update an ID range for include 1 with min ID 1,000 and max ID 100,000 for components, with locked IDs 2000 and 5000:

*createarray 2 2000 5000
*updateidrange includes 1 "" comps 1000 100000 0 1 2

Errors

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

Version History

12.0.110