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

Revision history [back]

In addition to the answer by @mdahlhausen, the model method you want is getStandardGlazings with an 's' at the end.

In addition to the answer by @mdahlhausen, the model method you want is getStandardGlazings with an 's' at the end.

EDIT: These methods aren't explicitly documented anywhere. They're alluded to in the Measure Writer's Reference Guide in this section, and the method templates are documented as getModelObject or getModelObjects (or getModelObjectByName/getModelObjectsByName), where you replace 'ModelObject' with the object class name. You can refer to those methods for the arguments required for those methods, e.g. an object handle for getModelObject. If you want a list of all the methods available to the model (or any) class, you can list them from Ruby by calling model.methods.

In addition to the answer by @mdahlhausen, the model method you want is getStandardGlazings with an 's' at the end.

EDIT: These methods aren't explicitly documented anywhere. They're alluded to in the Measure Writer's Reference Guide in this section, and the method templates are documented as getModelObject or getModelObjects (or getModelObjectByName/getModelObjectsByName), where you replace 'ModelObject' with the object class name. You can refer to the documentation for those methods for the arguments required for those methods, arguments, e.g. an object handle for getModelObject. If you want a list of all the methods available to the model (or any) class, you can list them from Ruby by calling model.methods.

In addition to the answer by @mdahlhausen, the model method you want is getStandardGlazings with an 's' at the end.

EDIT: These methods aren't explicitly documented anywhere. They're alluded to in the Measure Writer's Reference Guide in this section, and the section. The method templates are documented as getModelObject or getModelObjects (or getModelObjectByName/getModelObjectsByName), where you replace 'ModelObject' with the object class name. You can refer to the documentation for those methods for the required arguments, e.g. an object handle for getModelObject. If you want a list of all the methods available to the model (or any) class, you can list them from Ruby by calling model.methods.