CanElementBeRepeated Method


Component Repeater Can Element Be Repeated Method

Determines whether an element can be repeated using the RepeatElements method.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool CanElementBeRepeated(
	Document ADoc,
	ElementId elementId
)

Parameters

ADoc Document
The document containing the element.
elementId ElementId
The element to be tested.

Return Value

Boolean
True if the element can be repeated.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
The element must be an adaptive family instance and have no shape handles. At least one placement point must be hosted on a 1D or 2D repeating reference. All other placement points can be hosted on a 0D, 1D or 2D repeating reference, or must be unhosted.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →