*CE_ExportOneFile

Export connectors which belong to specified original file in their original or specified format.

Syntax

*CE_ExportOneFile mark_id ce_style filename option reserved1 reserved2 reserved3

Type

HyperMesh Tcl Modify

Description

This command exports selected connectors which belong to a specified original file to the file in original format or specified format. The exported connectors file in XML format can be viewed either in an internet browser or in XML notepad. The ASCII or VIP 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 original file.
option
Specifies the output format:
  • 0 – Original format
  • 1 - ASCII
  • 3 - XML
  • 4 - VIP
  • 5 - XML 2.0
  • 6 - XML 2.0 (version A)
  • 7 - XML 2.0 (version B)
reserved1
Reserved for future use. Must be set to "".
reserved2
Reserved for future use. Must be set to 0.
reserved3
Reserved for future use. Must be set to 0.

Examples

To export all of the displayed connectors which belong to C:/ce_info.xml in XML format:
*createmark connectors 1 "displayed"
*CE_ExportOneFile 1 "all" "C:/ce_info.xml" 3 "" 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
}

Version History

12.0.110