Model.hm_comparesetreviewmode#

Model.hm_comparesetreviewmode(mode=0)#

Sets the graphical review mode for comparison results. This must be followed by a call to Model.hm_comparesetreview() to refresh the graphics.

Parameters:

mode (int) –

0 - Show as grouped match types (matched, overlapped grouped and intersected, unmatched grouped)

1 - Show as normal match types (default)

Returns:

Example#

Set the review mode to grouped match types for a same side comparison of elements with IDs 1 - 20 and with IDs 101 - 120#
import hm
import hm.entities as ent

model = hm.Model()

elems1 = hm.Collection(model, ent.Element, list(range(1, 21)))
elems2 = hm.Collection(model, ent.Element, list(range(101, 121)))

model.hm_compareinit()

model.hm_compareentitiessameside(
    source_entities=elems1,
    target_entities=elems2,
    tolerance=0.1,
    result_type=2,
    review_results=False,
)

model.hm_comparesetreviewmode(mode=1)

model.hm_comparesetreview(type=2)

model.hm_compareend()