Model.marktousermark#

Model.marktousermark(collection)#

Stores the entities of the passed collection on the user mark.

The user-mark can be accessed through the Model.hm_getusermark() function.

Parameters:

collection (Collection) – The collection containing the entities.

Example#

Save the user collection of properties with IDs 1 , 3 and 5#
import hm
import hm.entities as ent

model = hm.Model()

props = hm.Collection(model, ent.Property, [1, 3, 5])
model.marktousermark(collection=props)
Create a collection of elements with IDs 1 - 3 , save it to the element user mark#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.Collection(model, ent.Element, [1, 2, 3])

model.marktousermark(collection=elems)