Model.modelcheck_createchecks#

Model.modelcheck_createchecks(filename, add)#

Loads a model check config file and creates check and correction entities.

Parameters:
  • filename (hwString) – The full path and file name of the config file to load.

  • add (int) –

    0 - Only the checks in the new config file will be loaded (default).

    1 - The config file is appended onto the existing checks.

Examples#

Load the config file “C:/temp/my_checks.xml”#
import hm
import hm.entities as ent

model = hm.Model()

model.modelcheck_createchecks(filename="C:/temp/my_checks.xml", add=0)
Append the config file “C:/temp/my_checks.xml”#
import hm
import hm.entities as ent

model = hm.Model()

model.modelcheck_createchecks(filename="C:/temp/my_checks.xml", add=1)