Model.restoreviewmask#
- Model.restoreviewmask(view_name, visible)#
Restores a view saved using
Model.saveviewmask(). The orientation and visible entities can be restored.- Parameters:
view_name (hwString) – The name of the view to restore.
visible (int) –
A flag indicating whether to restore the visible entities or not. Valid values are:
0 - Restore the visible entities and view orientation.
1 - Restore the view orientation only.
2 - Restore the visible entities only.
Example#
Restore the view with the name “my_view” , include the orientation and visible entities#import hm import hm.entities as ent model = hm.Model() model.restoreviewmask(view_name="my_view", visible=0)