so that I obtain a series of single segments/curves
I'm able to create only the first 3 steps above. Apart from this I can
find the correct commands to use.
Any suggestion would be very appreciated.
Thanks in advance.
tony
---
SweetMan = Tony =).
HTH
Peter
Sub ExplodeToCurves()
Dim s As Shape
Dim I As Long
Dim shr As New ShapeRange
Set shr = ActiveSelectionRange
For Each s In shr
If s.Type <> cdrCurveShape Then s.ConvertToCurves
'if shape converted to a curve object proceed
If s.Type = cdrCurveShape Then
'Break First node in closed curve apart
s.Curve.Closed = False
'Step through each node in open curve breaking apart
For I = s.Curve.Nodes.Count To 1 Step -1
s.Curve.Nodes(I).BreakApart
Next I
s.BreakApart 'Break apart all segments in curve
Else
End If
Next s
End Sub
this was just what I was searching for.
I'll try it soon.
Thanks again.
tony
Nice job! Here is a slightly modified (and faster) version of your macro:
Sub ExplodeToCurves()
Dim s As Shape
For Each s In ActiveSelectionRange
If s.Type <> cdrCurveShape Then s.ConvertToCurves
If s.Type = cdrCurveShape Then
s.Curve.Nodes.All.BreakApart
s.BreakApart
> s.Curve.Nodes.All.BreakApart
That's the bit. A new function to add to the repertoire ;-)
Thanks
Peter