First time here? Check out the Help page!
1 | initial version |
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.