*entitybundleaddid
Adds a single entity to a data item of a bundle.
Syntax
*entitybundleaddid name data_item id
Type
HyperMesh Tcl Modify Command
Description
Adds a single entity to a data item of a bundle.
Inputs
- name
- The name of the entity bundle to be modified.
- data_item
- The data item of the entity bundle to be modified. Note that these indices start with 0.
- id
- The ID of the entity to add. Note that the entity type is inferred from the bundle definition.
Example
To add entity ID 17 as the first data item of the bundle "compbundle":
*entitybundleaddid "compbundle" 0 17
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
14.0.130