*scale_thickness

Scales the thickness of an entity.

Syntax

*scale_thickness entity_type mark_id string_array number_of_strings

Type

HyperMesh Tcl Modify Command

Description

This command scales the thickness and sets the scaled thickness back to entity. This functionality is currently supported only in the Radioss and LS-DYNA user profiles.

Inputs

entity_type
The type of entity to scale. Currently only supported for elems.
mark_id
The ID of the mark that contains the entities to scale. Valid values are 1 and 2.
string_array
The ID of the string array that contains the array of input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
Each argument can be either space or comma separated.
add : <value>
The value to add to the thickness of each entity. To subtract, use a negative value. If not specified, multiply must be used.
multiply : <value>
The value to multiply the thickness of each entity by. To divide, use a value less than one.
If not specified, add must be used.
MaxThickness : <value>
Used to limit the maximum thickness. Not mandatory.
MinThickness : <value>
Used to limit the minimum thickness. Not mandatory.
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray.

Examples

Add 2 to the existing thickness of all elements in the model, with a minimum thickness of 10 and a maximum thickness of 20:

*createstringarray 3 "add : 2" "MinThickness : 10" "MaxThickness : 20"
*createmark elems 1 all
*scale_thickness elems 1 1 3

Multiply element 15-17 thicknesses by 0.5:

*createstringarray 1 "multiply: 0.5"
*createmark elems 1 15-17
*scale_thickness elems 1 1 1

Subtract 2 from the thickness of all elements:

*createstringarray 1 "add: -2"
*createmark elems 2 all
*scale_thickness elems 2 1 1

Errors

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

Version History

13.0