Model.mergefile#
- Model.mergefile(filename, geom_merge, fe_merge)#
Merges (imports) the referenced HyperMesh database file (*.hm) into the current model. Any entity names or IDs in the incoming file are renamed/renumbered with the least disruption possible.
- Parameters:
filename (hwString) – The full path and filename of the database file.
geom_merge (int) –
A flag indicating whether to import and merge geometry from the incoming model. If both
geom_merge=0andfe_merge=0, this behaves likeModel.readfile(). Valid values are:0 - Do not merge geometry
1 - Merge geometry
fe_merge (int) –
A flag indicating whether to import and merge FE from the incoming model. If both
geom_merge=0andfe_merge=0, this behaves likeModel.readfile(). Valid values are:0 - Do not merge FE
1 - Merge FE
Example#
Merge/import the file named “C:/temp/Rail2.hm” to the active model (i.e. HyperMesh window)#import hm import hm.entities as ent model = hm.Model() model.mergefile(filename="C:/temp/Rail2.hm",geom_merge=1,fe_merge=1)