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

When does and doesn't the OpenStudio API retrieve properties with methods?

I was curious as to when the OpenStudio API retrieves properties with a method or just by directly accessing the property? For example, using a space object conveniently named "space", why is the call to get it's name space.name() where as to get it's spaceType is simply space.spaceType? These both will return optional objects, but the call for the name property is a method. I'm using the C# bindings.

When does and doesn't the OpenStudio API retrieve properties with methods?

I was curious as to when the OpenStudio API retrieves properties with a method or just by directly accessing the property? For example, using a space object conveniently named "space", why is the call to get it's name space.name() where as to get it's spaceType is simply space.spaceType? These both will return optional objects, but the call for the name property is a method. I'm using the C# bindings.