*freeshapepatternupdate

Updates the pattern grouping options of a free shape design variable.

Syntax

*freeshapepatternupdate name patterntype anchornode firstgrid coords numcoords

Type

HyperMesh Tcl Modify

Description

This command updates the pattern grouping options of a free shape design variable.

Inputs

name
Name of the free shape design variable.
patterntype
Pattern grouping type. Possible values are:
  • 0 – None
  • 10 – One plane symmetry
anchornode
Variable pattern grouping anchor node ID.
Set to 0 using coordinates to define the anchor node.
firstgrid
The grid ID that determines the draw direction.
Set to 0 when using coordinates to define the first grid.
coords
The double array ID that contains the coordinates that define the anchor node and the first grid. The double array is created using the *createdoublearray command. This should always be set to 1.
The array should be created such that [0], [1], and [2] are the x, y, and z coordinates of the anchor node and [3], [4], and [5] are the x, y, and z coordinates of the first grid respectively.
numcoords
Integer indicating the size (number of doubles) in the double array created using *createdoublearray. This should always be set to 6.

Examples

To update the pattern grouping of a free shape design variable fsh1, to one-plane symmetry using node ID 20 for the anchor node and node ID 30 for the first grid:
*freeshapepatternupdate "fsh1" 10 20 30 1 6
To update the pattern grouping of a free shape design variable fsh1, to one-plane symmetry using node ID 25 for the anchor node and coordinates (5.2, 10.6, and 15.0) for the first grid:
*createdoublearray 6 0 0 0 5.2 10.6 15.0
*freeshapepatternupdate "fsh1" 10 25 0 1 6

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

9.0