*scalemarkwithsystem

Scales a selection of entities by multiplying the coordinates relative to the specified system.

Syntax

*scalemarkwithsystem entity_type mark_id scale_x scale_y scale_z system_id origin

Type

HyperMesh Tcl Modify Command

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-axis of the system.
scale_y
The multiplication factor for the y-axis of the system. Only used in rectangular coordinate systems.
scale_z
The multiplication factor for the z-axis of the system. Not used in spherical coordinate systems.
system_id
The ID of the system which the scaling is in relation to. Note that the type of system affects the scaling. For example, specifying scale_x in a cylindrical or spherical coordinate system scales the mark radially out from the origin.
For scaling of rigid walls in the rigid wall local system, specify as 0.
origin
If zero, the scaling is based at the origin of the system. Otherwise, it specifies a node ID whose coordinates define the base point of the scaling.
For scaling of rigid walls in the rigid wall local system, specify as 0.

Example

To scale nodes 1-8 5 units in the x-direction of system 13 with node 20 as the origin:

*createmark nodes 1 1-8
*scalemarkwithsystem nodes 1 5.0 1.0 1.0 13 20

To scale the rigid wall rwcyl relative to the rigid wall local system:

*createmark groups 1 rwcyl
*scalemarkwithsystem groups 1 3.0 1.0 1.0 0 0

Errors

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