Revit 2025 API
Sun |
Finds the name of the 'per-document' SunAndShadowSettings that matches the properties
of this per-view element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public string GetMatchingPreset()
Public Function GetMatchingPreset As String
public: String^ GetMatchingPreset()
member GetMatchingPreset : unit -> string
Return Value
StringName of the per-document SunAndShadowSettings that matches the view specific element.

Exception | Condition |
---|---|
ArgumentException | The SunAndShadowSettings is not view-specific. |
See Also