Generates a copy of current scheme.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2022
Syntax
| C# |
|---|
public ElementId Duplicate( string name ) |
| Visual Basic |
|---|
Public Function Duplicate ( _ name As String _ ) As ElementId |
| Visual C++ |
|---|
public: ElementId^ Duplicate( String^ name ) |
Parameters
- name
- Type: System..::..String
The desired name of copied scheme.
Return Value
The id of copied scheme.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | The name is not valid for new generated scheme. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |