BRepBuilderAddEdge Method

Add a new edge to the geometry being built. The BRepBuilder uses edges only to store edge geometry and to track pairs of co-edges that share an edge.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public BRepBuilderGeometryId AddEdge(
	BRepBuilderEdgeGeometry edgeGeom
)

Parameters

edgeGeom  BRepBuilderEdgeGeometry
Information specifying the edge's geometry.

Return Value

BRepBuilderGeometryId
Id of the edge, to be used in calls to other BRepBuilder methods such as AddCoEdge().
Exceptions
ExceptionCondition
ArgumentException The input edge geometry was invalid.
ArgumentNullException A non-optional argument was null
InvalidOperationException This BRepBuilder object isn't accepting new data, either because it has already been used to build geometry, or because of an error. Consult the State property of the BRepBuilder object for more details.
See Also