Creates a new geometric arc object based on center, radius, unit vectors, and angles.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static Arc Create( XYZ center, double radius, double startAngle, double endAngle, XYZ xAxis, XYZ yAxis )
Parameters
- center XYZ
- The center of the arc.
- radius Double
- The radius of the arc.
- startAngle Double
- The start angle of the arc (in radians).
- endAngle Double
- The end angle of the arc (in radians).
- xAxis XYZ
- The x axis to define the arc plane. Must be normalized.
- yAxis XYZ
- The y axis to define the arc plane. Must be normalized.
Return Value
ArcThe new arc.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was NULL |
ArgumentOutOfRangeException | xAxis is not length 1.0. -or- yAxis is not length 1.0. -or- The given value for radius must be between 0 and 30000 feet. |
ArgumentsInconsistentException | The vectors xAxis and yAxis are not perpendicular. -or- Start angle must be less than end angle. -or- Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance). |