*writeh3dwithoptions

Writes an H3D file using various options to control the exported data.

Syntax

*writeh3dwithoptions filename string_array number_of_strings

Type

HyperMesh Tcl Modify Command

Description

Writes an H3D file using various options to control the exported data.

Inputs

filename
Full name and path of the H3D file to save.
string_array
The ID of the string array that contains the additional output parameters. The string array is created using the *createstringarray command. This should always be set to 1.
Arguments can be provided in any order and must be space separated.
model=<value>
1 - Write FE data only (default)
2 - Write geometry (STL) data only
3 - Write both geometry (STL) and FE data
result=<value>
0 - Do not write results (default).
1 - For supported entities and result contours, this writes the displayed results to the H3D file. If no supported result contour is displayed, this option is ignored.
title=<value>
0 - Do not write HyperMesh titles as HyperView notes (default).
1 - Write HyperMesh titles as HyperView notes.
orient="n1x ny1 n1z n2x n2y n2z n3x n3y n3z"
The x, y, z coordinates of the 3 orientation nodes. The default is to not write orientation nodes.
overwrite=<value>
0 - Do not overwrite file if it exists (default)
1 - Overwrite file if it exists
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray.

Examples

To save an H3D as C:/test.h3d:

*writeh3dwithoptions C:/test.h3d 1 0

To save an H3D as C:/test.h3d with both geometry and FE data, along with titles:

*createstringarray 2 model=3 title=1
*writeh3dwithoptions C:/test.h3d 1 2

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

14.0