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 measure I wrote doesn't work

Dear all,

Now I am trying to develop a measure to change the dirt correction value to be used in PAT. Actually, I am not a trained programmer but in this project using OS, I have to program some codes. So, maybe this question might be just the basic one for Ruby coding, but I need someone's help.

When my measure is ran, the error message was shown "Error: wrong number of arguments (0 for 1)". This pointed the line of "xxx=workspace.getStandardGlazing" has problems.

I think, maybe, this is because there's no function ".getStandardGlazing". (I wrote this statement, because I found that .getStandardOpaqueMaterials worked in another measure, and there's a class "StandardGlazing" stated at this page.)

Here, my questions are:

  • What kind of function should be used here?
  • Where can I find the appropriate functions to be used for OS measures?

I will wait for any tips from you.

Thanks.

The measure I wrote doesn't work

Dear all,

Now I am trying to develop a measure to change the dirt correction value to be used in PAT. PAT. Actually, I am not a trained programmer but in this project using OS, I have to program some codes. codes. So, maybe this question might be just the basic one for Ruby coding, but I need someone's help.

When my measure is ran, the error message was shown "Error: wrong number of arguments (0 for 1)". This pointed the line of "xxx=workspace.getStandardGlazing" has problems.

I think, maybe, this is because there's no function ".getStandardGlazing". (I wrote this statement, because I found that .getStandardOpaqueMaterials worked in another measure, and there's a class "StandardGlazing" stated at this page.)

Here, my questions are:

  • What kind of function should be used here?
  • Where can I find the appropriate functions to be used for OS measures?

I will wait for any tips from you.

Thanks.

The measure I wrote doesn't work

Dear all,

Now I am trying to develop a measure to change the dirt correction value to be used in PAT. Actually, I am not a trained programmer but in this project using OS, I have to program some codes. So, this question might be just the basic one for Ruby coding, but I need someone's help.

When my measure is ran, the error message was shown "Error: wrong number of arguments (0 for 1)". This pointed the line of "xxx=workspace.getStandardGlazing" has problems.

I think, maybe, this is because there's no function ".getStandardGlazing". (I wrote this statement, because I found that .getStandardOpaqueMaterials worked in another measure, and there's a class "StandardGlazing" stated at this page.)

Here, my questions are:

  • What kind of function should be used here?
  • Where can I find the appropriate functions to be used for OS measures?

I will wait for any tips from you.

Thanks.

The measure I wrote doesn't work

Dear all,

Now I am trying to develop a measure to change the dirt correction value to be used in PAT. Actually, I am not a trained programmer but in this project using OS, I have to program some codes. So, this question might be just the basic one for Ruby coding, but I need someone's help.

When my measure is ran, the error message was shown "Error: wrong number of arguments (0 for 1)". This pointed the line of "xxx=workspace.getStandardGlazing" has problems.

I think, maybe, this is because there's no function ".getStandardGlazing". (I wrote this statement, because I found that .getStandardOpaqueMaterials worked in another measure, and there's a class "StandardGlazing" stated at this page.)

Here, my questions are:

  • What kind of function should be used here?
  • Where can I find the appropriate functions to be used for OS measures?

I will wait for any tips from you.

Thanks.