Model.window_entitymark#

Model.window_entitymark(collection)#

Fits the view to the entities on the collection.

Parameters:

collection (Collection) – The collection containing the entities to fit the view.

Example#

Fit the view to the elements with IDs 1 - 10#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the elements to fit the view
filter_elements = hm.FilterByEnumeration(ent.Element, list(range(1, 11)))
elements_collection = hm.Collection(model, filter_elements)

model.window_entitymark(collection=elements_collection)