RemoveSegment Method


Remove segments from the hosted sweep object.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.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.DB Reference
Segment's reference which want to be removed.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException Thrown when regeneration fails.

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 →