Finish Method


Complete construction of the geometry. The geometry will be validated and, if valid, stored in this Builder. Otherwise it will be deleted.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.484.0)
Since: 2016

Syntax

C#
public BRepBuilderOutcome Finish()
Visual Basic
Public Function Finish As BRepBuilderOutcome
Visual C++
public:
BRepBuilderOutcome Finish()

Return Value

BRepBuilderOutcome.Success if successful, BRepBuilderOutcome.Failure otherwise.

Remarks

If this function returned anything but BRepBuilderOutcome.Success, this BrepBuilder object should be discarded. An attempt to retrieve the built b-rep via GetBRep() will cause an exception to be thrown.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions 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. -or- BRep doesn't have enough faces. -or- FinishFace() must be called on all the faces of the BRepBuilder.

See Also