Model.lockallentities#

Model.lockallentities(pool_entity, dataname)#

Lock all entities with the same entity type and ID pool across includes.

Parameters:
  • pool_entity (Entity) – The object describing the entity to lock.

  • dataname (hwString) – Must be set to id.

Example#

Lock all elements with ID pool 2#
import hm
import hm.entities as ent

model = hm.Model()

model.lockallentities(pool_entity=ent.Element(model, 2), dataname="id")