*ME_ModuleExport

Exports the contents of a module to an ASCII export file based on an output template.

Syntax

*ME_ModuleExport id recursive filename export_template string_array number_of_strings

Type

HyperMesh Tcl Modify

Description

Exports the contents of a module to an ASCII export file based on an output template.

Inputs

id
The ID of the part or part assembly to export.
recursive
Specifies option for whether the module hierarchy should be traversed recursively to identify all of the entities to be exported.
If set to 0, only the entities from the specified module will be exported.
If 1 (or any non-zero), the entities from the specified module and all of its child modules will be exported.
filename
The full path and filename of the output file. Paths with spaces must be enclosed in quotes.
export_template
The full path and filename of the export template to be used. Paths with spaces must be enclosed in quotes.
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.
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray. The valid strings are documented as subtopics to *feoutputwithdata. Not all templates support all strings.

Example

To output using the OptiStruct template, to a file named C:/model.fem for all entities in part with ID 10:

*ME_ModuleExport 10 0 "C:/model.fem" [hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]/feoutput/optistruct/optistruct" 1 0

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