*modent_saverepresentation2

Saves the contents of a modular entity representation.

Syntax

*modent_saverepresentation2 entity_type entity_id ?repkey=<value>? ?filepath=<value>? ?repcomment=<value>?

Type

HyperMesh Tcl Modify Command

Description

Saves the contents of a modular entity representation. If entity_type is subsystems, the representation will always be saved in HyperMesh database format (*.hm). When the representation already has a key and file path associated with it, those parameters are not required.

Inputs

entity_type
Type of modular entity to save the representation of. Currently only supported for subsystems.
entity_id
ID of the modular entity.
repKey=<value>
The representation key. This is unique per subsystem.
filepath=<value>
Full path and file name of the representation file.
repcomment=<value>
The comment to add to the representation object.

Examples

Save the contents of subsystem ID 3 as a representation with key "crash5" in location "C:/representations/Subsystem3_Crash5mm.hm":
*modent_saverepresentation2 subsystems 3 repkey=crash5 filepath=“C:/representations/Subsystem3_Crash5mm.hm”

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

2023