Actual Lighting Load

Actual Lighting Load

jaymee.manglicmot
Contributor Contributor
746 Views
3 Replies
Message 1 of 4

Actual Lighting Load

jaymee.manglicmot
Contributor
Contributor

Hi all, I would like to know how I can get the Actual Lighting Load value displayed in the Space properties via the API. I tried the ROOM_ACTUAL_LIGHTING_LOAD_PARAM and other parameters having the lighting load but I am getting 0. This parameter is only getting the correct value when I change the Lighting Load Classifications (under Electrical Load Calculations) to Lighting. Same thing with the Space Schedule, I was wondering why there are 2 "Actual Lighting Load", one is displaying 0 and the other one is displaying what's in the Space properties. I would like to get the correct value in my code without changing the load classifications. Attached are screenshots for reference. Thanks. SpaceProperties.pngSpaceSchedule2.pngSpaceSchedule.png

0 Likes
Accepted solutions (1)
747 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Have you explored the element and its properties and parameters with RevitLookup?

 

It does indeed look as if the parameter name is duplicated. You should see both of them there, together with other properties that enable you to distinguish them.

 

If it is, you can retrieve both of the two and determine which value you want to use.

 

Much better, though, would be to retrieve the parameter in a language and string independent manner, e.g., using the appropriate built-in parameter enum or shared parameter GUID.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

jaymee.manglicmot
Contributor
Contributor

Thanks @jeremy_tammik ! I was able to view the parameter with the same name "Actual Lighting Load" but with a different id. I am now able to get the value in my code. Thanks a lot for the quick response.

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

My pleasure. Glad I could help. Thank you for your appreciation.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes