First time here? Check our help page!
2

Get Space Lighting Definition

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?

Saif's avatar
626
Saif
asked 2020-10-28 08:15:07 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-10-28 19:04:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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

space.lights.each do |light|
  light_def = light.lightsDefinition
  ...
end
shorowit's avatar
11.8k
shorowit
answered 2020-10-28 10:05:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments