Message 1 of 3
How to get the relationship between FamilyInstance of light fixture and LightNod

Not applicable
04-16-2020
08:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there some relationship between FamilyInstance of light fixture and LightNod, and how to get it?
With below codes I can get LightingFixture object, but I can't advance to get the relationship between FamilyInstance of light fixture and LightNod.
Element element = m_doc.GetElement(elementId);
string element_category = element.Category.Name;
if (element_category == "Lighting Fixtures")
{
FamilyInstance light = element as FamilyInstance;
LightingFixture lightFxiture = light.MEPModel as LightingFixture;
}
Can anyone give some help?
Thanks in advance.