Duplicates this sheet to generate a new one.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2023
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- duplicateOption
- Type: Autodesk.Revit.DB SheetDuplicateOption
The option to use when duplicating the sheet.
Return Value
The id of the newly created sheet.Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
| Autodesk.Revit.Exceptions InvalidOperationException | Sheet cannot be duplicated |