RVTDocs.com

DialogBoxData.OverrideResult

Method
Description:
Call this method to cause the Autodesk Revit dialog to be dismissed with the specified return value.
Syntax
public bool OverrideResult(
	int result
)
Parameters
Parameter Type Description
result Int32 The result code you wish the Revit dialog to return.
Return Value
Type Description
Boolean Returns true if the result code was accepted.