Revit 2025.3 API
Component |
Determines whether an element can be repeated using the RepeatElements method.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static bool CanElementBeRepeated( Document ADoc, ElementId elementId )
Public Shared Function CanElementBeRepeated ( ADoc As Document, elementId As ElementId ) As Boolean
public: static bool CanElementBeRepeated( Document^ ADoc, ElementId^ elementId )
static member CanElementBeRepeated : ADoc : Document * elementId : ElementId -> bool
Parameters
Return Value
BooleanTrue if the element can be repeated.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
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