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

Revision history [back]

click to hide/show revision 1
initial version

Query the number of model stories using OpenStudio sdk

I am wondering if it is possible to get the number of stories in a model using the OpenStudio SDK, I thought that I could do this using the standardsNumberOfStories property in the Building class reference.

See: https://openstudio-sdk-documentation.s3.amazonaws.com/cpp/OpenStudio-2.7.0-doc/model/html/classopenstudio_1_1model_1_1_building.html

But it just returns an optional int and to_s or to_i return nothing, I seem to have found a dead end. Is there any way I can query the number of stories from the model using the SDK?