Constructs a BRepBuilderEdgeGeometry representing a straight line between the two given points.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2016
Syntax
| C# |
|---|
public static BRepBuilderEdgeGeometry Create( XYZ startPoint, XYZ endPoint ) |
| Visual Basic |
|---|
Public Shared Function Create ( _ startPoint As XYZ, _ endPoint As XYZ _ ) As BRepBuilderEdgeGeometry |
| Visual C++ |
|---|
public: static BRepBuilderEdgeGeometry^ Create( XYZ^ startPoint, XYZ^ endPoint ) |
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
| Autodesk.Revit.Exceptions..::..ArgumentsInconsistentException | The vectors startPoint and endPoint are coincident. |