Model.setqualitythresholdcolor#

Model.setqualitythresholdcolor(range_id, color)#

Sets the color for a specified element quality index range. This function is related to the element quality view mode.

Parameters:
  • range_id (int) –

    Specifies the element quality index range to update. Valid values are:

    0 - Ideal (ideal ≤ QI < good)

    1 - Good (good ≤ QI < warn)

    2 - Warn (warn ≤ QI < fail)

    3 - Fail (fail ≤ QI < worst)

    4 - Worst (worst ≤ QI)

  • color (int) – The color to use. Valid values are 1 through 64.

Example#

Sets the color for “Good” elements to blue#
import hm
import hm.entities as ent

model = hm.Model()

model.setqualitythresholdcolor(range_id=1, color=9)