*feoutput_singleinclude
Creates an ASCII export file based on an output template, for a single include file.
Syntax
*feoutput_singleinclude id shortname export_template filename reserved1 reserved2 export_type string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
Creates an ASCII export file based on an output template, for a single include file.
Inputs
- id
- The ID of the include to export. If shortname is specified, this may be set as "".
- shortname
- The short name (portion without the path) of the include to export. If id is specified, this may be set as "".
- 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 for *feoutputwithdata.
Example
To export all entities in the include with ID 10, using the OptiStruct template, to a file named C:/temp/myinclude.fem, skipping the export of connectors:
set template [hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]
*createstringarray 1 "CONNECTORS_SKIP"
*feoutput_singleinclude 10 "" "$template/optistruct/" "C:/temp/myinclude.fem" 0 0 1 1 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}