Model.metadatamarkdouble#

Model.metadatamarkdouble(collection, name, value)#

Creates double 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.

  • value (double) – The double value assigned to the metadata.

Example#

Add metadata named “Real_Val” with the value 17.54 to elements with IDs 1 - 100#
import hm
import hm.entities as ent

model = hm.Model()

model.metadatamarkdouble(
    collection=hm.Collection(model, ent.Element(list(range(1, 101)))),
    name="Real_Val",
    value=17.54,
)