Revit 2026 API
Light |
Creates a light type object from the given document and family type ID
Namespace: Autodesk.Revit.DB.Lighting
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static LightType GetLightType( Document document, ElementId typeId )
Public Shared Function GetLightType ( document As Document, typeId As ElementId ) As LightType
public: static LightType^ GetLightType( Document^ document, ElementId^ typeId )
static member GetLightType : document : Document * typeId : ElementId -> LightType
Parameters
Return Value
LightTypeThe newly created LightType object
| Exception | Condition |
|---|---|
| ArgumentException | The ElementId is the argument that is being validated The ElementId is not valid because it is not for a light element. |
| ArgumentNullException | A non-optional argument was null |
See Also