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

rename modelObject by ruby

Hi I want to construct a new airloop in openstudio model using ruby bindings, now I know how to construct it but the name is defualt:

irb(main):068:0>new_AirLoop = OpenStudio::Model::AirLoopHVAC.new(model)
irb(main):069:0> new_AirLoop.name.get
=> "Air Loop HVAC 1"

How can I change this name? Any sugestion?

rename modelObject by ruby

Hi I want to construct a new airloop in openstudio model using ruby bindings, now I know how to construct it but the name is defualt:defaulted:

irb(main):068:0>new_AirLoop = OpenStudio::Model::AirLoopHVAC.new(model)
irb(main):069:0> new_AirLoop.name.get
=> "Air Loop HVAC 1"

How can I change this name? Any sugestion?suggestion?

rename modelObject by ruby

Hi I want to construct a new airloop in openstudio model using ruby bindings, now I know how to construct it but the name is defaulted:

irb(main):068:0>new_AirLoop = OpenStudio::Model::AirLoopHVAC.new(model)
irb(main):069:0> new_AirLoop.name.get
=> "Air Loop HVAC 1"

How can I change this name? Any suggestion?