Model.readbatchparamsfile#
- Model.readbatchparamsfile(params_filename)#
Use this function to set cleanup parameters directly in the function file when using automatic topology cleanup with the
Model.autotopocleanup()function. The cleanup parameters file must be created using CriteriaEditor in HyperMesh or BatchMesher.- Parameters:
params_filename (hwString) – The name of cleanup parameters file to be read.
Example#
Perform topology cleanup of all displayed surfaces use the element quality criteria from the “ “ nvh10.criteria “ file and quality parameters from the “ “ nvh10.param “ file#import hm import hm.entities as ent model = hm.Model() model.readbatchparamsfile(params_filename="nvh10.param") model.autotopocleanup( surfcollection=hm.CollectionByDisplayed(model, ent.Surface), criteria_filename="nvh10.criteria", param_filename="", )
Note
The cleanup parameters are deleted just after each use and must be set before every call that uses the “dummy” parameter file name.