Model.numbersmark#

Model.numbersmark(collection, on)#

Places the entities in the collection on the numbers mark. This will display the ID of the entity.

Parameters:
  • collection (Collection) – The collection containing the entities to display their entity.

  • on (int) –

    Determines whether the entities will be placed on the numbers mark or removed from the numbers mark.

    0 - Remove

    1 - Put on

Example#

Place the nodes with IDs 5 , 6 , and 7 on the numbers mark#
import hm
import hm.entities as ent

model = hm.Model()

model.numbersmark(collection=hm.Collection(model, ent.Node, [5, 6, 7]), on=1)