SplitFacesOfCuttingSolid Method


Causes the faces of the cutting element where it intersects the element it is cutting to be split or unsplit.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2011

Syntax

C#
public static void SplitFacesOfCuttingSolid(
	Element first,
	Element second,
	bool split
)
Visual Basic
Public Shared Sub SplitFacesOfCuttingSolid ( _
	first As Element, _
	second As Element, _
	split As Boolean _
)
Visual C++
public:
static void SplitFacesOfCuttingSolid(
	Element^ first, 
	Element^ second, 
	bool split
)

Parameters

first
Type: Autodesk.Revit.DBElement
The solid being cut or the cutting solid
second
Type: Autodesk.Revit.DBElement
The solid being cut or the cutting solid
split
Type: SystemBoolean
True to split the faces of intersection, false to unsplit them.

Remarks

There must be a cut between the input elements.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException There is no solid-solid cut between the input elements.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException Unable to split or unsplit faces of cutting solid

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 →