Model.modent_saverepresentation#
- Model.modent_saverepresentation(entity, options)#
Saves the contents of a modular entity representation. When
entityis a subsystem entity, the saved representation will always be in HyperMesh database format (*.hm).- Parameters:
entity (Entity) – The object describing the modular entity to save the representation of. Valid entities are subsystems
options (hwString) –
Optional list of quoted, comma separated option strings.
repKey=<value>
The representation key. This is unique per subsystem.
filepath=<value>
The full path and file name of the representation file.
repcomment=<value>
The comment to add to the representation object.
Example#
Save the contents of subsystem with ID 1 as a representation with key “crash5” in location “C:/representations/Subsystem3_Crash5mm.hm”#import hm import hm.entities as ent model = hm.Model() model.modent_saverepresentation( entity=ent.Subsystem(model, 1), options="repKey=crash5, filepath=C:/representations/Subsystem3_Crash5mm.hm", )