Model.saveviewmask#

Model.saveviewmask(view_name, visible)#

Saves the currently view orientation and visible entities. Views are stored in the database.

Parameters:
  • view_name (hwString) – The name of the view to save. The numbers 1-5 are reserved and cannot be used.

  • visible (int) –

    A flag indicating whether to save the visible entities or not. Valid values are:

    0 - Save the visible entities and view orientation.

    1 - Save only the view orientation.

Example#

Save a view with the visible entities , with the name “ my_view “#
import hm
import hm.entities as ent

model = hm.Model()

model.saveviewmask(view_name="my_view",visible=0)