*metadatamarkentityidtypearray

Creates entity ID type array metadata on the specified mark of entities.

Syntax

*metadatamarkentityidtypearray entity_type mark_id name entity_type_2 entity_id_array number_of_entities

Type

HyperMesh Tcl Modify Command

Description

Creates entity ID type array metadata on the specified mark of entities.

Inputs

entity_type
The type of entities contained on the mark.
The undef entity type is used to store metadata on the model itself.
mark_id
The ID of the mark containing the entities to which the metadata will be added. Valid values are 1 and 2.
name
The name by which the metadata will be referenced.
entity_type_2
The type of entity which the metadata references.
entity_id_array
The ID of the integer array that contains the entity IDs. The array is created using the *createarray command. This should always be set to 1.
number_of_entities
Integer indicating the size (number of entity IDs) in the array created using *createarray.

Example

To add metadata named Surfaces with surface 100 and 110 to elements 1-100:

*createmark elems 1 1-100
*createarray 2 100 110
*metadatamarkentityidtypearray elems 1 "Surface" surfs 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
}