Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Get Space Lighting Definition

asked 4 years ago

Saif's avatar

updated 4 years ago

I am writing a reporting measure that adds up the areas of spaces using the same lighting definition. I couldn't find a method in the Space Class to get the lighting definition, however there is a method to get the SpaceType Class, but I could not find a method in the SpaceType to get the lighting definition. How can I get the space lighting definition?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 4 years ago

The Space class has a lights method. So you can do:

space.lights.each do |light|
  light_def = light.lightsDefinition
  ...
end
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 324 times

Last updated: Oct 28 '20