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

The .spaceType method returns a SpaceType as an optional, as you can see in the variable output you posted. If you use .get on an optional that is true, it will return the object wrapped in the optional. In your case space.spaceType.get.handle will return the handle of the space type assigned to the space if that's what you'd like to compare. Is there a particular reason you need to compare space type handles?