*feoutputwithdata

Creates an ASCII export file based on an output template.

Syntax

*feoutputwithdata export_template filename reserved1 reserved2 export_type string_array number_of_strings

Type

HyperMesh Tcl Modify Command

Description

This command exports an ASCII analysis file, formatted based on the specified export_template.

The additional output parameters are defined using the *createstringarray command and the string_array and number_of_strings options. For a list of strings that are supported by each reader, refer to the See Also list.

To determine the proper options and strings to use for this command, it is best to first perform the import action using the HyperMesh workspace and then look at the values written to the command file.

Inputs

export_template
The full path and filename of the export template to be used. Paths with spaces must be enclosed in quotes.
filename
The full path and filename of the output file. Paths with spaces must be enclosed in quotes.
reserved1
Reserved for future use. Must be set to 0.
reserved2
Reserved for future use. Must be set to 0.
export_type
Flag indicating which entities will be output:
  • 0 - Only the displayed entities will be output.
  • 1 - All entities will be output.
  • 2 - Entities will be output based on their/their parent collector’s output bit (custom output). This bit can be set using the *allsuppressoutput, *includesuppressoutput and *setvaluecommands or using the Entity State Browser.
string_array
The string array ID that contains the additional output parameters. The string array is created using the *createstringarray command. This should always be set to 1.
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray. The valid strings are documented as subtopics. Not all templates support all strings.

Example

To output all entities using the OptiStruct template, to a file named C:/model.fem:
set template [hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]
*feoutputwithdata "$template/optistruct/" "C:/model.fem" 0 0 1 1 0
To output all entities using the OptiStruct template, to a file named C:/model.fem, but do not export any connector data:
set template [hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]
*createstringarray 1 "CONNECTORS_SKIP"
*feoutputwithdata "$template/optistruct/" "C:/model.fem" 0 0 1 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

9.0