*createidrange

Creates an ID range.

Syntax

*createidrange submodel_type id shortname entity_type min_id max_id offset pool_id integer_array number_of_integers

Type

HyperMesh Tcl Modify Command

Description

This command creates an ID range for a submodel.

Inputs

submodel_type
Submodel type to create the ID range for. Valid values are includes and includefiles.
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
Entity type to create the ID range for.
min_id
The minimum ID for the range.
max_id
The maximum ID for the range.
offset
The offset 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 create an ID range for include 1 with min ID 1,000 and max ID 100,000 for components:
*createidrange includes 1 "" comps 1000 100000 0 1 0
To create 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
*createidrange 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