*entitybundleclear

Removes all entities either from a single data item of an or from all the data items of an entitybundle.

Syntax

*entitybundleclear name data_item

Type

HyperMesh Tcl Modify Command

Description

Removes all entities either from a single data item of an or from all the data items of an entitybundle.

Inputs

name
The name of the entity bundle to be modified.
data_item
The data item of the entity bundle to be cleared. Note that these indices start with 0. If set to -1, all data items are cleared.

Examples

To clear all the data stored in the first data item of the entity bundle "compbundle":

*entitybundleclear "compbundle" 0
To clear all the data stored all data items of the entity bundle "compbundle":
*entitybundleclear "compbundle" -1

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