API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.BreakApart method
Breaks apart the curve at each node in the range
Syntax:
Sub BreakApart()
Remarks:
The BreakApart method breaks a curve at each node in the range of nodes.
Examples:
The following VBA example breaks the selected curve into a set of individual segments and then scatters each segment randomly.
Sub Test()
Dim s As Shape
Set s = ActiveShape
s.Curve.Nodes.All.BreakApart ' Break apart curve into multiple subpaths
s.BreakApart ' Break apart subpaths into individual shapes
For Each s In ActiveSelection.Shapes
  s.Move Rnd() - 0.5, Rnd() - 0.5
Next s 
End Sub