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 2020-10-28 08:15:07 -0600

Saif gravatar image

updated 2020-10-28 19:04:04 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2020-10-28 10:05:13 -0600

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

space.lights.each do |light|
  light_def = light.lightsDefinition
  ...
end
edit flag offensive delete link more

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2020-10-28 08:15:07 -0600

Seen: 237 times

Last updated: Oct 28