Returns the default repeating reference source for a given element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static RepeatingReferenceSource GetDefaultRepeatingReferenceSource( Document document, ElementId elementId )
Parameters
- document Document
- The document that contains the element.
- elementId ElementId
- The id of the element.
Return Value
RepeatingReferenceSourceThe default repeating reference source of the given element.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The element elementId does not exist in the document -or- The element does not have any repeating reference sources. |
ArgumentNullException | A non-optional argument was null |