LightGroup
Description:
This class represents a set of lights grouped together for easier management of various lighting scenarios
This class represents a set of lights grouped together for easier management of various lighting scenarios
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Lighting.LightGroup
System.Object
Autodesk.Revit.DB.Lighting.LightGroup
public class LightGroup : IDisposable
public void AddRemoveLightInGroup(LightGroup groupOne, LightGroup groupTwo, FamilyInstance lightOne, FamilyInstance lightTwo)
{
// Add two lights into groupOne.
groupOne.AddLight(lightOne.Id);
groupOne.AddLight(lightTwo.Id);
// Move a light from groupOne to groupTwo
groupTwo.AddLight(lightOne.Id);
// Retrieve the added lights in the group
ICollection<ElementId> existingLightIds = groupOne.GetLights();
// remove the light
groupOne.RemoveLight(lightTwo.Id);
}
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AddLight(ElementId) | None | Add a new light instance to the group | |
| Dispose() | None | Releases all resources used by the LightGroup | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetLights() | ICollection<ElementId> | Get the set of contained light instances The set of light instances | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| RemoveLight(ElementId) | None | Remove the given light instance from the set of light instances in this group | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Id | ElementId | The ElementId of the LightGroup | |
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. | |
| Name | string | The name of the LightGroup |