Create Method (XYZ, XYZ)


Constructs a BRepBuilderEdgeGeometry representing a straight line between the two given points.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
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
)

Parameters

startPoint
Type: Autodesk.Revit.DB XYZ
endPoint
Type: Autodesk.Revit.DB XYZ

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentsInconsistentException The vectors startPoint and endPoint are coincident.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →