2024 Method
Changes 4
M

FailureDefinition.AddResolutionType

Description:
Adds a type of possible resolution for the failure.
Remarks:
In order to inform Revit what failure resolutions can be possibly used with a given failure, a FailureDefinition must contain a full list of resolution types applicable to the failure, including user-visible caption and runtime class of the resolution. The number of resolutions is not limited. The first added resolution becomes the default resolution.
public FailureDefinition AddResolutionType(
	FailureResolutionType type,
	string caption,
	Type classOfResolution
)
  • type
    Type of the resolution to add. The type of resolution can be used only once for the FailureDefinition.
  • String
    caption
    A simple description of the resolution.
  • Type
    classOfResolution
    The runtime class of the resolution. Used to ensure that the actual FailureResoution object added to the instance of FailureMessage belongs to an applicable class.
Return Value The FailureDefinition. The FailureDefinition.