Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.BreakApart |
Sub BreakApart()
Member of NodeRange
The BreakApart method breaks a curve at each node in the range of nodes.
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 |
Copyright 2013 Corel Corporation. All rights reserved.