Creates a new geometric arc object based on center, radius, unit vectors, and angles.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2014
Syntax
C# |
---|
public static Arc Create(
XYZ center,
double radius,
double startAngle,
double endAngle,
XYZ xAxis,
XYZ yAxis
) |
Visual Basic |
---|
Public Shared Function Create ( _
center As XYZ, _
radius As Double, _
startAngle As Double, _
endAngle As Double, _
xAxis As XYZ, _
yAxis As XYZ _
) As Arc |
Visual C++ |
---|
public:
static Arc^ Create(
XYZ^ center,
double radius,
double startAngle,
double endAngle,
XYZ^ xAxis,
XYZ^ yAxis
) |
Parameters
- center
- Type: Autodesk.Revit.DB..::..XYZ
The center of the arc.
- radius
- Type: System..::..Double
The radius of the arc.
- startAngle
- Type: System..::..Double
The start angle of the arc (in radians).
- endAngle
- Type: System..::..Double
The end angle of the arc (in radians).
- xAxis
- Type: Autodesk.Revit.DB..::..XYZ
The x axis to define the arc plane. Must be normalized.
- yAxis
- Type: Autodesk.Revit.DB..::..XYZ
The y axis to define the arc plane. Must be normalized.
Return Value
The new arc.
Remarks
Examples
CopyC#
double radius = 10;
double startAngle = 0;
double endAngle = Math.PI;
XYZ center = new XYZ(5, 0, 0);
XYZ xAxis = new XYZ(1, 0, 0);
XYZ yAxis = new XYZ(0, 1, 0);
Arc arc = Arc.Create(center, radius, startAngle, endAngle, xAxis, yAxis);
CopyVB.NET
Dim radius As Double = 10
Dim startAngle As Double = 0
Dim endAngle As Double = Math.PI
Dim center As New XYZ(5, 0, 0)
Dim xAxis As New XYZ(1, 0, 0)
Dim yAxis As New XYZ(0, 1, 0)
Dim arc__1 As Arc = Arc.Create(center, radius, startAngle, endAngle, xAxis, yAxis)
Exceptions
See Also