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

How to getAirloopHVACByName

I'm trying to add zones to airloops, via a measure. Using the ruby console in Sketchup, I see a likely helper method

model.methods.grep(/getA/i)
... :getAirLoopHVACByName
myairloop = model.getAirLoopHVACByName("my air loop")

I have a few questions

  1. I can't find any documentation of that method on the aws sdk, is there a reason for that?
  2. Using getAirLoopHVACByName("my air loop") returns an OptionalAirLoopHVAC, does that mean it has not found 'my air loop' but returned something else?
  3. myairloop.name doesn't allow me to handle it by name. Is there another way to handle it by its name, e.g by looping over all air loops and then matching by name?

How to getAirloopHVACByName

I'm trying to add zones to airloops, via a measure. Using the ruby console in Sketchup, I see a likely helper method

model.methods.grep(/getA/i)
... :getAirLoopHVACByName
myairloop = model.getAirLoopHVACByName("my air loop")

I have a few questions

  1. I can't find any documentation of that method on the aws sdk, is there a reason for that?
  2. Using getAirLoopHVACByName("my air loop") returns an OptionalAirLoopHVAC, does that mean it has not found 'my air loop' but returned something else?
  3. myairloop.name doesn't allow me to handle it by name. Is there another way to handle it by its name, e.g by looping over all air loops and then matching by name?

How to getAirloopHVACByName

I'm trying to add zones to airloops, via a measure. Using the ruby console in Sketchup, I see a likely helper method

model.methods.grep(/getA/i)
... :getAirLoopHVACByName
myairloop = model.getAirLoopHVACByName("my air loop")

I have a few questions

  1. I can't find any documentation of that method on the aws sdk, is there a reason for that?
  2. Using getAirLoopHVACByName("my air loop") returns an OptionalAirLoopHVAC, does that mean it has not found 'my air loop' but returned something else?
  3. myairloop.name doesn't allow me to handle it by name. Is there another way to handle it by its name, e.g by looping over all air loops and then matching by name?