RemoveSegment Method


Remove segments from the hosted sweep object.

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

Syntax

C#
public void RemoveSegment(
	Reference targetRef
)
Visual Basic
Public Sub RemoveSegment ( _
	targetRef As Reference _
)
Visual C++
public:
void RemoveSegment(
	Reference^ targetRef
)

Parameters

targetRef
Type: Autodesk.Revit.DBReference
Segment's reference which want to be removed.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationExceptionThrown when regeneration fails.

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 →