CanAddGeometry Method


BRep Builder Can Add Geometry Method

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: 25.0.0.0 (25.0.0.0)
Syntax
public bool CanAddGeometry()

Return Value

Boolean
True if this BRepBuilder object is accepting b-rep data, false otherwise.
Remarks
Use this function before calling AddFace(), AddEdge(), etc. to avoid an exception being thrown.
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 →