*metadatamarkintarray

Creates integer array metadata on the specified mark of entities.

Syntax

*metadatamarkintarray entity_type mark_id name integer_array number_of_integers

Type

HyperMesh Tcl Modify Command

Description

Creates integer 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.
integer_array
The ID of the integer array that contains the values. The 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 array created using *createarray.

Example

To add metadata named Int_Vals with the values 5 and 7 to elements 1-100:

*createmark elems 1 1-100
*createarray 2 5 7
*metadatamarkintarray elems 1 "Int_Vals" 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
}