RadialArrayCreate(Document, View, ICollectionElementId, Int32, Line, Double, ArrayAnchorMember) Method |
Creates a new radial array element from a set of elements based
on an input rotation axis.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static RadialArray Create(
Document aDoc,
View dBView,
ICollection<ElementId> ids,
int count,
Line axis,
double angle,
ArrayAnchorMember anchorMember
)
Public Shared Function Create (
aDoc As Document,
dBView As View,
ids As ICollection(Of ElementId),
count As Integer,
axis As Line,
angle As Double,
anchorMember As ArrayAnchorMember
) As RadialArray
public:
static RadialArray^ Create(
Document^ aDoc,
View^ dBView,
ICollection<ElementId^>^ ids,
int count,
Line^ axis,
double angle,
ArrayAnchorMember anchorMember
)
static member Create :
aDoc : Document *
dBView : View *
ids : ICollection<ElementId> *
count : int *
axis : Line *
angle : float *
anchorMember : ArrayAnchorMember -> RadialArray
Parameters
- aDoc Document
-
The document.
- dBView View
-
The view. If it is a 2d view, translation vector must be in the view plane if elements include view-specific elements.
If elements include view-specific elements, they must belong to this view.
- ids ICollectionElementId
-
The set of elements to array. The position of the rotation
axis is determined by the cumulative center of the elements' bounding boxes.
- count Int32
-
The number of array members to create.
The accepted range is from 3 to 200 in a project document, and between 0 and 200 in a family document.
- axis Line
-
The rotation axis.
- angle Double
-
The angle in radians of the rotation.
- anchorMember ArrayAnchorMember
-
Indicates if the translation vector specifies the location of the second member
of the array, or the last member of the array.
Return Value
RadialArray
The new radial array element.
ExceptionsException | Condition |
---|
ArgumentException |
The given element id set is empty.
-or-
One or more elements in ids do not exist in the document.
-or-
One or more elements in ids is owned by different views and thus cannot be arrayed together.
-or-
One or more elements in ids is not arrayable.
-or-
count must be between 3 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 rotation axis is invalid to array the elements.
-or-
Angle value must be not zero.
|
ArgumentNullException |
A non-optional argument was null
|
ArgumentOutOfRangeException |
A value passed for an enumeration argument is not a member of that enumeration
|
InvalidOperationException |
Failed to create the radial array.
|
See Also