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

Revision history [back]

The lines causing the error are:

#get window material name
$WindowMaterials = workspace.getObjectsByType("WindowMaterial:SimpleGlazingSystem".to_IddObjectType)
$WindowMaterialName = $WindowMaterials[0].getString(0).to_s

Does your model have WindowMaterial:SimpleGlazingSystem objects in it? If not, getObjectsByType would return nil, which will throw a NoMethodError when getString is called. Probably the easiest fix is to change your window materials to that type.