CopyPropertySet Method


IFCUser Defined Property Set Copy Property Set Method

Create copy of property set with new name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public IFCUserDefinedPropertySet CopyPropertySet(
	Document document,
	string copyPropertySetName
)

Parameters

document Document
The Revit document to save the copied property set.
copyPropertySetName String
The name for copied property set name.

Return Value

IFCUserDefinedPropertySet
The copied property set element.
Exceptions
Exception Condition
ArgumentException The name is empty or already exists.
ArgumentNullException A non-optional argument was null
InvalidOperationException Failed to create IFCUserDefinedPropertySet element.
Remarks
The copied property set is saved in the document passed as parameter. Passing the same document as the source property set's document will create a new property set in the same document.
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 →