Model.hm_comparesetreviewtypes#

Model.hm_comparesetreviewtypes(match_types)#

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

Parameters:

match_types (hwIntList) –

The type of matches to enable. Multiple values can be specified. Any value not specified is turned off for review.

0 - Unmatched

1 - Topological

2 - Intersected

3 - Overlapped

4 - Matched

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_comparesetreviewtypes(match_types=[4, 3])

model.hm_comparesetreview(type=2)

model.hm_compareend()