SetDuplicateTypeNamesHandler Method


Sets a custom duplicate type names handler. If this value is not set, the default handler is used. By default, Revit displays a modal dialog with options to either copy new types only, or cancel the operation.

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

Syntax

C#
public void SetDuplicateTypeNamesHandler(
	IDuplicateTypeNamesHandler handler
)
Visual Basic
Public Sub SetDuplicateTypeNamesHandler ( _
	handler As IDuplicateTypeNamesHandler _
)
Visual C++
public:
void SetDuplicateTypeNamesHandler(
	IDuplicateTypeNamesHandler^ handler
)

Parameters

handler
Type: Autodesk.Revit.DBIDuplicateTypeNamesHandler
The duplicate type names handler.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

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 →