Model.filewritecomponentgeometry#
- Model.filewritecomponentgeometry(filename, component, compression)#
Allows you to export HyperMesh files on a per-component basis, so you can export geometry that is part of a larger assembly without exporting the entire assembly.
- Parameters:
filename (hwString) – The file name to create, including the extension. Example: bumper.hm.
component (hwString) – The component name to be exported.
compression (int) –
Flag to save the file in compressed form or not, excluding optional specific information such as facets or plot coordinates. Compressed files are smaller, but require more processing time to recalculate when loaded.
0 - Save as uncompressed file (including all optional data).
1 - Save as compressed file (excluding optional data).
Example#
Save the bumper component to a compressed file named bumper1.hm#import hm import hm.entities as ent model = hm.Model() model.filewritecomponentgeometry( filename="bumper1.hm", component="bumper", compression=1 )