*exportuserdefinedshapes

Exports shape design variables, shapes and nodal information in user-defined format for HyperStudy or Templex analysis codes.

Syntax

*exportuserdefinedshapes header keyword delimiter1 delimiter1_value nodeid_width delimiter2 delimiter2_value x_coord_width x_coord_precision y_coord_width y_coord_precision z_coord_width z_coord_precision delimiter3 delimiter3_value outputfile

Type

HyperMesh Tcl Modify

Description

This command exports shape design variables, shapes and nodal information in user-defined format for HyperStudy or Templex analysis codes.

Inputs

header
Header information for the node block.
keyword
Keyword for a node.
delimiter1
The delimiter type between keyword and the node ID. Valid values are:
  • Delimiter – Use for delimiters such as slash, comma, etc.
  • Whitespace – Use for spaces.
delimeter1_value
If deliminter1 is Delimiter, this is the character to use as the delimiter.
If delimiter1 is Whitespace, this is the number of spaces.
nodeid_width
Width of the node ID field.
delimiter2
The delimiter type between the node ID and the x-coordinate. Valid values are:
  • Delimiter – Use for delimiters such as slash, comma, etc.
  • Whitespace – Use for spaces.
delimeter2_value
If deliminter2 is Delimiter, this is the character to use as the delimiter.
If delimiter2 is Whitespace, this is the number of spaces.
x_coord_width
Field width for output of the x-coordinate.
x_coord_precision
Field precision for output of the x-coordinate.
y_coord_width
Field width for output of the y-coordinate.
y_coord_precision
Field precision for output of the y-coordinate.
z_coord_width
Field width for output of the z-coordinate.
z_coord_precision
Field precision for output of the z-coordinate.
delimiter3
The delimiter type between the x-y and y-z coordinates. Valid values are:
  • Delimiter – Use for delimiters such as slash, comma, etc.
  • Whitespace – Use for spaces.
delimeter3_value
If deliminter3 is Delimiter, this is the character to use as the delimiter.
If delimiter3 is Whitespace, this is the number of spaces.
outputfile
Name of the output file.

Example

To output nodal coordinates in the following format to the shape.dat file:
COORDINATES
NODE  /     8844, 5.0000000e+001  6.0000000e+001  5.0000000e+001
...

*exportuserdefinedshapes "COORDINATES"  "NODE " "Delimiter" "/" 9 "Delimiter" "," 15 7 15 7 15 7 "Whitespace" 1 "shape.dat"

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

10.0