SetDefaultResolutionType Method


Sets the default resolution type for the failure.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2011

Syntax

C#
public void SetDefaultResolutionType(
	FailureResolutionType type
)
Visual Basic
Public Sub SetDefaultResolutionType ( _
	type As FailureResolutionType _
)
Visual C++
public:
void SetDefaultResolutionType(
	FailureResolutionType type
)

Parameters

type
Type: Autodesk.Revit.DBFailureResolutionType
The type of resolution to be used as default.

Remarks

If failure has multiple resolutions, one of them is designated as designated as the default resolution. The default resolution is used by Revit failure processing mechanism to resolve failures automatically when applicable.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Resolution of the type is not applicable to the failure.
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.ExceptionsInvalidOperationException The FailureDefinitionAccessor has not been properly initialized. -or- FailureDefinition does not have any resolutions.

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 →