*feoutput_select

Creates an ASCII export file of selected entities based on an output template.

Syntax

*feoutput_select export_template filename mark_id reserved1 reserved2

Type

HyperMesh Tcl Modify Command

Description

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

Only the selected entities are exported.

The following entities will be fully exported, if selected for export:
  • assems
  • contactsurfs
  • loadsteps
  • outputblocks
  • sets

For example, if a set type is element, it will be exported whether or not its referenced elements are also selected. Note that individual entities must be marked. This command does not export any dependent or container entities. For example, elements will not be exported if either a component or a group is exported.

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.
mark_id
The mark ID containing the entities to output. Valid values are 1 and 2.
Only the entities on the specified mark will be output. This is valid for all supported entity types.
reserved1
Reserved for future use. Must be set to 0.
reserved2
Reserved for future use. Must be set to 0.

Example

To export only elements with IDs 1-5:
*createmark elems 1 1-5
*feoutput_select $tmplFileName $outputFileName 1 0 0
To export the nodes of component with ID 1:
*createmark nodes 1 "by component id" 1
*feoutput_select $tmplFileName $outputFileName 1 0 0
To export the elements in components with IDs 1-3:
*createmark elems 1 "by component id" 1 2 3
*feoutput_select $tmplFileName $outputFileName 1 0 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}