*scalemark

Scales a selection of entities by multiplying the coordinates.

Syntax

*scalemark entity_type mark_id scale_x scale_y scale_z origin

Type

HyperMesh Tcl Modify

Description

This command scales a selection of entities by multiplying the coordinates.

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.
scale_x
The multiplication factor for the x-coordinate.
scale_y
The multiplication factor for the y-coordinate.
scale_z
The multiplication factor for the z-coordinate.
origin
The node ID defining the origin of the scaling. If set to 0, the global origin is used.

Example

To scale component top uniformly 10 times about node 3:

*createmark comps 1 top
*scalemark comps 1 10.0 10.0 10.0 3

Errors

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