Revision history  [back]

Swap construction set by command line interface

Hello, I want to simulate several cases of external wall thickness change. I decided to use the "Swap Construction In Construction Set" measure using the workflow https://github.com/UnmetHours/openstudio-scripts/tree/master/OpenStudio_CLI_Template.

Hence, I made several construction sets with changed material width, as can be seen below. The problem is that I cannot understand what is the variable of which the measure is executed. while entering to the measure.rb file no coherent data regarding this issue is obtained.

I try to run this code: with "*new_construction * as variable

cons = ["concrete0.2", "concrete0.3", "concrete0.4"].

**new_construction**.each **do** |con|
  run_name = "**new_construction**_#{new_construction.to_s.delete(".")}"
  **new_construction** = make_cons_change(**con**)
  makeOSW(run_name, example_osm_filepath, example_epw_filepath, [**new_construction**, add_hourly_meters], [], [os_results])
end

I get the error:

"undefined local variable or method `new_construction' for main:Object"

What is the correct way to assign variable into this code? Thanks

Swap construction set by command line interface

Hello, I want to simulate several cases of external wall thickness change. I decided to use the "Swap Construction In Construction Set" measure using the workflow https://github.com/UnmetHours/openstudio-scripts/tree/master/OpenStudio_CLI_Template.

Hence, I made several construction sets with changed material width, as can be seen below. The problem is that I cannot understand what is the variable of which the measure is executed. while entering to the measure.rb file no coherent data regarding this issue is obtained.

I try to run this code: with "*new_construction * as variable

cons = ["concrete0.2", "concrete0.3", "concrete0.4"].

**new_construction**.each **do** |con|
  run_name = "**new_construction**_#{new_construction.to_s.delete(".")}"
  **new_construction** = make_cons_change(**con**)
  makeOSW(run_name, example_osm_filepath, example_epw_filepath, [**new_construction**, add_hourly_meters], [], [os_results])
end

I get the error:

"undefined local variable or method `new_construction' for main:Object"

What is the correct way to assign variable into this code? Thanks

Swap construction set by command line interface

Hello, I want to simulate several cases of external wall thickness change. I decided to use the "Swap Construction In Construction Set" measure using the workflow https://github.com/UnmetHours/openstudio-scripts/tree/master/OpenStudio_CLI_Template.

Hence, I made several construction sets with changed material width, as can be seen below. The problem is that I cannot understand what is the variable of which the measure is executed. while entering to the measure.rb file no coherent data regarding this issue is obtained.

I try to run this code: with "*new_construction * as variable

cons = ["concrete0.2", "concrete0.3", "concrete0.4"]. **new_construction**.each **do** "concrete0.4"].

new_construction.each do |con| run_name = "**new_construction**_#{new_construction.to_s.delete(".")}" **new_construction** "new_construction_#{new_construction.to_s.delete(".")}" new_construction = make_cons_change(**con**) make_cons_change(con) makeOSW(run_name, example_osm_filepath, example_epw_filepath, [**new_construction**, [new_construction, add_hourly_meters], [], [os_results]) end

end

I get the error:

error:
"undefined local variable or method `new_construction' for main:Object"
main:Object"

What is the correct way to assign variable into this code? Thanks