Model.metadatamarkdoublearray#
- Model.metadatamarkdoublearray(collection, name, double_array)#
Creates double 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.
double_array (hwDoubleList) – The double array that contains the values.
Example#
Add metadata named “Real_Vals” with the values 17.54 and 31.88 to elements 1 - 100#import hm import hm.entities as ent model = hm.Model() model.metadatamarkdoublearray( collection=hm.Collection(model, ent.Element, list(range(1, 101))), name="Real_Vals", float_array=[17.54, 31.88], )