Model.reviewtwomark#
- Model.reviewtwomark(collection_set1, collection_set2, color1, color2)#
Graphically reviews two collection set of nodes with different colors.
- Parameters:
collection_set1 (CollectionSet) – The set of collections containing possibly multiple type of entities.
collection_set2 (CollectionSet) – The set of collections containing possibly multiple type of entities.
color1 (int) –
The color used to review the nodes on
collection_set1. Valid values are 1-64.If specified as 0, the entity will be reviewed with its respective entity color (not yet available).
color2 (int) –
The color used to review the nodes on
collection_set2. Valid values are 1-64.If specified as 0, the entity will be reviewed with its respective entity color (not yet available).
Example#
Review nodes with IDs 1 - 100 with color 4 and nodes with IDs 201 - 300 with color 6#import hm import hm.entities as ent model = hm.Model() # Creating a collection set that contains the nodes with IDs 1-100 filter_nodes1 = hm.FilterByEnumeration(ent.Node, list(range(1, 101))) nodes1_collection = hm.Collection(model, filter_nodes1) CollectionSet1 = hm.CollectionSet(model) CollectionSet1.set(nodes1_collection) # Creating a collection set that contains the elements with IDs 201-300 filter_nodes2 = hm.FilterByEnumeration(ent.Element, list(range(201, 301))) nodes2_collection = hm.Collection(model, filter_nodes2) CollectionSet2 = hm.CollectionSet(model) CollectionSet2.set(nodes2_collection) model.reviewtwomark( collection_set1=CollectionSet1, collection_set2=CollectionSet2, color1=4, color2=6 )