CanAddGeometry 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: 17.0.0.0 (17.0.1090.0)
Since: 2016

Syntax

C#
public bool CanAddGeometry()
Visual Basic
Public Function CanAddGeometry As Boolean
Visual C++
public:
bool CanAddGeometry()

Return Value

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 Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →