Model.lockentities#
- Model.lockentities(collection, dataname)#
Adds entity locks for a selection of entities.
- Parameters:
collection (Collection) – The collection containing the entities to lock.
dataname (hwString) – The dataname to lock. Currently only supported for id.
Example#
Lock the displayed element IDs#import hm import hm.entities as ent model = hm.Model() model.lockentities( collection=hm.CollectionByDisplayed(model, ent.Element), dataname="id" )