Model.hm_comparesetreviewcolordefault#
- Model.hm_comparesetreviewcolordefault()#
Sets the graphical review color for comparison results back to the defaults. This must be followed by a call to
Model.hm_comparesetreview()to refresh the graphics.The default colors are:
Inactive - 1
Unmatched source - 11
Unmatched target - 14
Topology source - 26
Topology target - 46
Intersected source - 42
Intersected target - 38
Overlapped source - 62
Overlapped target - 30
Matched source - 54
Matched target - 22
- 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_comparesetreviewcolordefault() model.hm_comparesetreview(type=2) model.hm_compareend()