Model.modelcheck_applycorrection#

Model.modelcheck_applycorrection(check_display_name, correction_display_name)#

Runs auto correction on a given check, if checks are run.

Parameters:
  • check_display_name (hwString) – The GUI display name of the check. This is case sensitive.

  • correction_display_name (hwString) –

    The GUI name of the correction. This is case sensitive.

    If not provided, the then default auto correction associated with the check is applied.

Example#

Run the “Delete unused materials” auto correction for “Unused materials”#
import hm
import hm.entities as ent

model = hm.Model()

model.modelcheck_applycorrection(
    check_display_name="Unused materials",
    correction_display_name="Delete unused materials",
)