Revit 2026 API
BRep |
A validator function that checks the state of this BRepBuilder object. Returns true if this BRepBuilder object is accepting b-rep data, false otherwise.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool CanAddGeometry()
Public Function CanAddGeometry As Boolean
public: bool CanAddGeometry()
member CanAddGeometry : unit -> bool
Return Value
BooleanTrue if this BRepBuilder object is accepting b-rep data, false otherwise.

Use this function before calling AddFace(), AddEdge(), etc. to avoid an exception being thrown.
See Also