DuplicateConstruction Method


Create a new construction for Space constructions.

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

Syntax

C#
public MEPBuildingConstruction DuplicateConstruction(
	MEPBuildingConstruction pCurrentConstruction,
	string pName
)
Visual Basic
Public Function DuplicateConstruction ( _
	pCurrentConstruction As MEPBuildingConstruction, _
	pName As String _
) As MEPBuildingConstruction
Visual C++
public:
MEPBuildingConstruction^ DuplicateConstruction(
	MEPBuildingConstruction^ pCurrentConstruction, 
	String^ pName
)

Parameters

pCurrentConstruction
Type: Autodesk.Revit.DB.MechanicalMEPBuildingConstruction
The existing construction to be duplicated.
pName
Type: SystemString
The name of the new construction.

Remarks

If the name is same with the existing one, an exception will be thrown.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →