Remove segments from the hosted sweep object.

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

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.DB..::..Reference
Segment's reference which want to be removed.

Exceptions

ExceptionCondition
Autodesk.Revit.Exceptions..::..InvalidOperationExceptionThrown when regeneration fails.

See Also