Model.setreviewbyname#
- Model.setreviewbyname(entity_type, name, color, review_type)#
Adds entities to the review list based on an entity name.
- Parameters:
entity_type (EntityFullType) – The type of entity to add to the review list. Valid entities are blocks and groups.
name (hwString) – The name of the entity.
color (int) – The color to use for review of the entity. Valid values are 1-64.
review_type (int) –
The review type to control.
For blocks:
1 - Nodes
2 - Elements
For groups:
1 - Secondary only
2 - Main only
3 - Main and secondary
Example#
Review only secondary elements from group CONTACT with color 4 , with all other non - reviewed entities have transparency and gray color#import hm import hm.entities as ent model = hm.Model() model.setreviewbyname(entity_type=ent.Group, name="CONTACT", color=4, review_type=1) model.setreviewcolormode(mode=0) model.setreviewtransparentmode(mode=1) model.setreviewmode(mode=1)