*translatemarkwithsystem

Translates a selection of entities along a vector of the specified system.

Syntax

*translatemarkwithsystem entity_type mark_id vector_id distance system_id origin

Type

HyperMesh Tcl Modify Command

Description

This command translates a selection of entities along a vector of the specified system.

Inputs

entity_type
The type of entity to translate.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
vector_id
The ID of the vector to use for the translation. This is defined using the *createvector command. The vector is relative to the specified system.
distance
The distance to translate.
system_id
The ID of the system which the vector is relative to. Note that the type of system affects the meaning of vector. For example, the vector (1, 0, 0), x-axis, in a cylindrical coordinate system translates the mark radially out from the origin.
origin
If zero, the vector is based at the origin of the system. Otherwise, it specifies a node ID whose coordinates define the base point of the vector.

Example

To translate node 1 5 units along the y-axis of system 13 with node 2 being the origin:
*createvector 1 0.0 1.0 0.0
*createmark nodes 1 1
*translatemarkwithsystem nodes 1 1 5.0 13 2

Errors

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