*metadatamarkdate

Creates date metadata on the specified mark of entities.

Syntax

*metadatamarkdate entity_type mark_id name value

Type

HyperMesh Tcl Modify

Description

Creates date 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.
value
The date value assigned to the metadata. This is the number of seconds since the epoch (i.e., January 1st 00:00:00 1970).

Example

To add metadata named Date with the current time in seconds since the epoch:

*createmark undef 1 
*metadatamarkdate undef 1 "Date" [clock seconds]

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}