CopyElements Method (Document, ICollection(ElementId), Document, Transform, CopyPasteOptions)


Element Transform Utils Copy Elements(Document, ICollection Element Id , Document, Transform, Copy Paste Options) Method


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static ICollection<ElementId> CopyElements(
	Document sourceDocument,
	ICollection<ElementId> elementsToCopy,
	Document destinationDocument,
	Transform transform,
	CopyPasteOptions options
)

Parameters

sourceDocument Document
elementsToCopy ICollection ElementId
destinationDocument Document
transform Transform
options CopyPasteOptions

Return Value

ICollection ElementId
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 →