Merges two adjacent segments into one.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public void MergeSegments( int movedSegmentIndex, int targetSegmentIndex )
Parameters
- movedSegmentIndex Int32
- The index of the moved segment.
- targetSegmentIndex Int32
- The index of the target segment.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Only two adjacent segments can be merged. -or- The segment index should start from 0 and be less than the total segment count. |