This class represents a set of lights grouped together for easier management of various lighting scenarios
Namespace: Autodesk.Revit.DB.Lighting
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since:
2013
Syntax
Visual Basic |
---|
Public Class LightGroup _
Implements IDisposable |
Examples
CopyC#
public void AddRemoveLightInGroup(LightGroup groupOne, LightGroup groupTwo, FamilyInstance lightOne, FamilyInstance lightTwo)
{
groupOne.AddLight(lightOne.Id);
groupOne.AddLight(lightTwo.Id);
groupTwo.AddLight(lightOne.Id);
ICollection<ElementId> existingLightIds = groupOne.GetLights();
groupOne.RemoveLight(lightTwo.Id);
}
CopyVB.NET
Public Sub AddRemoveLightInGroup(groupOne As LightGroup, groupTwo As LightGroup, lightOne As FamilyInstance, lightTwo As FamilyInstance)
groupOne.AddLight(lightOne.Id)
groupOne.AddLight(lightTwo.Id)
groupTwo.AddLight(lightOne.Id)
Dim existingLightIds As ICollection(Of ElementId) = groupOne.GetLights()
groupOne.RemoveLight(lightTwo.Id)
End Sub
Inheritance Hierarchy
See Also