2027 Method
Changes 0
M

LinearArray.Create

Description:
Creates a new linear array element from a single element.
Overloads (2):
Create(Document,View,ElementId,Int32,XYZ,ArrayAnchorMember)
public static LinearArray Create(
	Document aDoc,
	View dBView,
	ElementId id,
	int count,
	XYZ translationToAnchorMember,
	ArrayAnchorMember anchorMember
)
  • aDoc
    The document.
  • dBView
    The view. If it is a 2d view, translation vector must be in the view plane if the element is a view-specific element.
  • id
    The element to array.
  • Int32
    count
    The number of array members to create including the initial element grouping. Must between 2 and 200 in projects, and between 0 and 200 in families.
  • translationToAnchorMember
    The translation vector for the array.
  • anchorMember
    Indicates if the translation vector specifies the location of the second member of the array, or the last member of the array.
Return Value LinearArray The new linear array element.
  • The element id does not exist in the document -or- id is not arrayable. -or- count must be between 2 and 200 in project documents and between 0 and 200 in family documents. -or- The view is invalid for specific view elements array. -or- The translation point vector is invalid to array the element.
  • A non-optional argument was null
  • A value passed for an enumeration argument is not a member of that enumeration
  • Failed to create the linear array.