Duplicate Method (SheetDuplicateOption)


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#
public ElementId Duplicate(
	SheetDuplicateOption duplicateOption
)
Visual Basic
Public Function Duplicate ( _
	duplicateOption As SheetDuplicateOption _
) As ElementId
Visual C++
public:
ElementId^ Duplicate(
	SheetDuplicateOption duplicateOption
)

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

See Also