How to get elementId from LightNode?

How to get elementId from LightNode?

e_juma
Enthusiast Enthusiast
502 Views
2 Replies
Message 1 of 3

How to get elementId from LightNode?

e_juma
Enthusiast
Enthusiast

I need track down each lights in the Revit. So, when user changes any of them, I can modify them accordingly. So, I need a way to distinguish a light to others. I thought elementId is useful. But LightNode is very simple. I do not figure out how to get elementId from it. 

Can anyone help me?

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

jeremytammik
Autodesk
Autodesk
Accepted solution

LightNode is issued in the custom exporter context. In the same context, you also get things like 'family instance begin' or 'processing element id'. Simply set a breakpoint in each method defined by the custom exporter and see for yourself where the element id associated with the light node pops up.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

e_juma
Enthusiast
Enthusiast

Thank you! I will have a try.

0 Likes