Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Every OpenStudio model object now has an AdditionalProperties object available on it to store meta information. If you ask for the object and it doesn't already exist, it is automatically created for you. Once you have the object, see the OpenStudio SDK documentation for all of the available methods.

For example:

mat = StandardOpaqueMaterial.new(model)
props = mat.additionalProperties
props.setFeature("color", "white")
puts props.getFeatureAsString("color")

Every OpenStudio model object now has an AdditionalProperties object available on it to store meta information. If you ask for the object and it doesn't already exist, it is automatically created for you. Once you have the object, see the OpenStudio SDK documentation for all of the available methods.

For example:

mat = StandardOpaqueMaterial.new(model)
props = mat.additionalProperties
props.setFeature("color", "white")
puts props.getFeatureAsString("color")
props.getFeatureAsString("color") # => "white"

Every OpenStudio model object now has an AdditionalProperties object available on it to store meta information. If you ask for the object and it doesn't already exist, it is automatically created for you. Once you have the object, see the OpenStudio SDK documentation for all of the available methods.

For example:

mat = StandardOpaqueMaterial.new(model)
OpenStudio::Model::StandardOpaqueMaterial.new(model)
props = mat.additionalProperties
props.setFeature("color", "white")
puts props.getFeatureAsString("color") # => "white"