*writeengineeringandcontroldata

Saves a binary file with the engineering and control data.

Syntax

*writeengineeringandcontroldata filename=<value> ?solvername=<value>? ?types={<value>}? ?controls=<value>? ?entities=<value>?

Type

HyperMesh Tcl Modify Command

Description

Saves a binary file with the engineering and control data. By default, it saves the control entities for all valid types (attachment, connector, engineering, mesh) without the corresponding entities.

Inputs

filename=<value>
The full file path of the file to write. If only a filename is provided, the HyperWorks start-in folder will be used as the location for the saved file.
solvername=<value>
The option to specify which engineering and control data will be saved based on the solver definition. If not specified, the data for all solver interfaces will be saved by default.
types={<value>}
The list of types to be saved in the binary file. If the option is not provided, all valid types are saved by default. Valid values are attachment, connector, engineering, mesh and scenario.
controls=<value>
The option to export the control entities.
0 - Do not save control entities.
1 - Save control entities. (default)
entities=<value>
The option to export the entities.
0 - Do not save entities. (default)
1 - Save entities. Not supported for types mesh.

Examples

To write all the engineering control entities to the file C:/temp/shatter10.hm:
*writeengineeringandcontroldata filename=C:/temp/shatter10.hm types={engineering}
To write all the connector and attachment control entities to the file C:/temp/shatter10.hm:
*writeengineeringandcontroldata filename=C:/temp/shatter10.hm types={connector attachment}

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

2022.2