SunAndShadowSettings.GetActiveSunAndShadowSettings Method

SunAndShadowSettingsGetActiveSunAndShadowSettings Method

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

Element
The active SunAndShadowSettings element for the supplied document.
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
See Also