*CE_ExportFile

Export connectors in the native XML/ASCII format.

Syntax

*CE_ExportFile mark_id ce_style filename header_string with_md option reserved1 reserved2

Type

HyperMesh Tcl Modify Command

Description

This command exports selected connectors in the native XML/ASCII format. The exported connectors file in XML format can be viewed either in an internet browser or in XML notepad. The ASCII format file can be viewed in any text viewer.

Inputs

mark_id
The ID of the mark containing the connectors to export. Valid values are 1 and 2.
ce_style
Filter the specific type of connector to exported. Valid values are:
  • all
  • spot
  • bolt
  • apply_mass
  • seam
  • area
filename
The full path and filename of the output file (.xml or .mcf extension).
header_string
Optional string information that is written out only in ASCII export.
with_md
Flag to indicate whether to write metadata information. Valid values are:
  • 0 - Metadata is not written
  • 1 - Metadata is written
options
Export format:
  • 1 - ASCII (.mcf)
  • 3 - XML (.xml)
reserved1
Reserved for future use. Must be set to "".
reserved2
Reserved for future use. Must be set to 0.

Examples

To export all of the displayed connectors in XML format to the file C:/ce_info.xml, including all metadata:
*createmark connectors 1 "displayed"
*CE_ExportFile 1 "all" "C:/ce_info.xml" "" 1 3 "" 0

Errors

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