Model.hm_comparesetreviewcolor#
- Model.hm_comparesetreviewcolor(match_type, match_location, color)#
Sets the graphical review color for comparison results. This must be followed by a call to
Model.hm_comparesetreview()to refresh the graphics.- Parameters:
match_type (int) –
The type of match to set the color for. Valid values are:
0 - Unmatched
1 - Topological
2 - Intersected
3 - Overlapped
4 - Matched
match_location (int) –
The location of the entities to set the color for. Valid values are:
1 - Source entities
2 - Target entities
color (int) – A color value from 1-64.
- Returns:
hwReturnStatus- Status object
Example#
Generate a same side comparison of surfaces with IDs 1 - 20 and elements with IDs 101 - 120 , use the 2D shell thickness and offset , ignore fillets and all holes < 8.0 in diameter#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_comparesetreviewcolor(match_type=0, match_location=1, color=1) model.hm_comparesetreviewcolor(match_type=0, match_location=2, color=1) model.hm_comparesetreview(type=2) model.hm_compareend()