2025.3 Method
Changes 0
M

RepeatingReferenceSource.GetDefaultRepeatingReferenceSource

Description:
Returns the default repeating reference source for a given element.
Remarks:
The element must support repeating references. Use HasRepeatingReferenceSource() to find out whether an element has any repeating references.
public static RepeatingReferenceSource GetDefaultRepeatingReferenceSource(
	Document document,
	ElementId elementId
)
  • document
    The document that contains the element.
  • elementId
    The id of the element.
Return Value RepeatingReferenceSource The default repeating reference source of the given element.
  • The element elementId does not exist in the document -or- The element does not have any repeating reference sources.
  • A non-optional argument was null