2024 Method
Changes 0
M

ComponentRepeater.RepeatElements

Description:
Repeats a set of adaptive component hosted on one or more repeating references.
Remarks:
All elements must be adaptive family instances 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. Use CanElementBeRepeated(Document, ElementId) to test whether an element meets these conditions.
public static IList<ComponentRepeater> RepeatElements(
	Document document,
	ICollection<ElementId> elementIds
)
  • document
    The document that contains the elements.
  • ICollection<ElementId>
    elementIds
    The set of adaptive components used as an input pattern for the repeating operation.
Return Value IList<ComponentRepeater> One or more component repeater objects representing the result pattern of the repeating operation.