Model.metadatamarkintarray#
- Model.metadatamarkintarray(collection, name, integer_array)#
Creates integer array metadata on the specified collection of entities.
- 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.
integer_array (hwIntList) – The list the integers array that contains the values.
Example#
Add metadata named “Int_Vals” with the values 5 and 7 to elements with IDs 1 - 100#import hm import hm.entities as ent model = hm.Model() model.metadatamarkintarray( collection=hm.Collection(model, ent.Element, list(range(1, 101))), name="Int_Vals", integer_array=[5, 7], )