Revision history  [back]

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?

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?

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: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 suggestion?sugestion?