Creates a new geometric arc object based on three points.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static Arc Create(
XYZ end0,
XYZ end1,
XYZ pointOnArc
)
Parameters
- end0 XYZ
-
The start point of the arc.
- end1 XYZ
-
The end point of the arc.
- pointOnArc XYZ
-
A point on the arc.
Return Value
Arc
The new arc.
Exceptions
| Exception | Condition |
|---|
| ArgumentNullException |
A non-optional argument was NULL
|
| ArgumentsInconsistentException |
The vectors end0 and end1 are coincident.
-or-
The vectors end0 and pointOnArc are coincident.
-or-
The vectors end1 and pointOnArc are coincident.
-or-
Cannot create an arc.
-or-
Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance).
|
Example
C#
XYZ end0 = new XYZ(1, 0, 0);
XYZ end1 = new XYZ(10, 10, 10);
XYZ pointOnCurve = new XYZ(10, 0, 0);
Arc arc = Arc.Create(end0, end1, pointOnCurve);
VB
Dim end0 As New XYZ(1, 0, 0)
Dim end1 As New XYZ(10, 10, 10)
Dim pointOnCurve As New XYZ(10, 0, 0)
Dim arc__1 As Arc = Arc.Create(end0, end1, pointOnCurve)
See Also
Reference