Model.metadatamarkbool#
- Model.metadatamarkbool(collection, name, value)#
Creates bool metadata on the entities on the specified collection.
- Parameters:
collection (Collection) – The collection containing the entities to which the metadata will be added.
name (hwString) – The name by which the metadata will be referenced.
value (int) – The boolean value assigned to the metadata (0 or 1).
Example#
Add metadata named “Bool_Val” with the value 0 to elements with IDs 1 - 100#import hm import hm.entities as ent model = hm.Model() model.metadatamarkbool( collection=hm.Collection(model, ent.Element, list(range(1, 101))), name="Bool_Val", value=0, )