Share

ProjectLocation.Duplicate Method

Generate a copy of this project location with the specified name.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public ProjectLocation Duplicate(
	string name
)

Parameters

name  String
 

Return Value

ProjectLocation
A new ProjectLocation which is a duplicate of this location, with the input name.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

The name must not be the same as the name of any existing locations. This function will modify the document, as the new ProjectLocation will be added to it.

See Also

Reference

Was this information helpful?