Model.hm_getqualitycriteriastatus#

Model.hm_getqualitycriteriastatus(elementsize)#

Checks the status of the quality criteria.

Parameters:

elementsize (double) – Checks to see if it matches the existing quality criteria. If 0.0 is specified, the mismatch is not evaluated.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResult - Result object containing the output values:

    • criteriaStatus (int) - The output uses the following values:

      0 - Good criteria - criteria exist and match with the specified element size (if it is being checked).

      1 - Criteria do not exist.

      2 - Bad (inconsistent) quality criteria.

      3 - Mismatch of the specified element size and the criteria.

Example#

Check the status of the quality criteria for an element size of 10.0#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getqualitycriteriastatus(elementsize=10.0)

print("criteriaStatus:", result.criteriaStatus)