Arc.Create(XYZ, XYZ, XYZ)
Method
Description:
Creates a new geometric arc object based on three points.
Creates a new geometric arc object based on three points.
Examples
// Create a new arc using two ends and a point on the curve
XYZ end0 = new XYZ(1, 0, 0); // start point of the arc
XYZ end1 = new XYZ(10, 10, 10); // end point of the arc
XYZ pointOnCurve = new XYZ(10, 0, 0); // point along arc
Arc arc = Arc.Create(end0, end1, pointOnCurve);
Parameters
Parameter | Type | Description |
---|---|---|
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
Type | Description |
---|---|
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). |