GetMatchingPreset Method


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: 2015.0.0.0 (2015.0.0.0)
Since: 2011

Syntax

C#
public string GetMatchingPreset()
Visual Basic
Public Function GetMatchingPreset As String
Visual C++
public:
String^ GetMatchingPreset()

Return Value

Name of the per-document SunAndShadowSettings that matches the view specific element.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The SunAndShadowSettings is not view-specific.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →