Revit 2025.3 API
Sun |
Returns the current SunAndShadowSettings element assigned to the active view for the
supplied document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static Element GetActiveSunAndShadowSettings( Document aDocument )
Public Shared Function GetActiveSunAndShadowSettings ( aDocument As Document ) As Element
public: static Element^ GetActiveSunAndShadowSettings( Document^ aDocument )
static member GetActiveSunAndShadowSettings : aDocument : Document -> Element
Parameters
- aDocument Document
- The document.
Return Value
ElementThe active SunAndShadowSettings element for the supplied document.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
See Also