Revit 2025 API
View |
Splits the schedule segment by the given heights of new segments.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SplitSegment( int segmentIndex, IList<double> segmentHeights )
Public Sub SplitSegment ( segmentIndex As Integer, segmentHeights As IList(Of Double) )
public: void SplitSegment( int segmentIndex, IList<double>^ segmentHeights )
member SplitSegment : segmentIndex : int * segmentHeights : IList<float> -> unit
Parameters

Exception | Condition |
---|---|
ArgumentException | The height of a schedule segment must be greater than 0. The total height must be less than the split segment height. The total segment count must be greater than 0 and less than 10000. -or- The segment index should start from 0 and be less than the total segment count. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This ViewSchedule is not split yet. |

The height values are used to set the height of schedule instance for each segment shown on sheet view.
Each input height must be greater than 0 and the total height must be less than the height of the split segment.
See Also