![]() |
#1
|
|||
|
|||
![]()
Select two shapes. Tested with X7.
Sub NodesToIntesects() Dim s As Shape Dim nr As New NodeRange Dim cps As CrossPoints Dim cp As CrossPoint ActiveDocument.BeginCommandGroup "NodesToIntersects" Set s = ActiveSelectionRange.Combine Set cps = s.Curve.SubPaths(1).GetIntersections(s.Curve.SubPaths(2), cdrAbsoluteSegmentOffset) For Each cp In cps nr.Add s.Curve.SubPaths(1).AddNodeAt(cp.Offset, cdrAbsoluteSegmentOffset) nr.Add s.Curve.SubPaths(2).AddNodeAt(cp.Offset2, cdrAbsoluteSegmentOffset) Next cp s.BreakApart ActiveTool = cdrToolPick ActiveSelectionRange.RemoveFromSelection ActiveDocument.EndCommandGroup End Sub |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Finding text that intersects the shape | vavalexus | CorelDRAW/Corel DESIGNER VBA | 1 | 10-09-2012 12:36 |
Nodes | Val Costanzo | General | 4 | 25-09-2008 06:46 |
VBA Nodes Tutorial | Sablesword | CorelDRAW/Corel DESIGNER VBA | 1 | 23-09-2008 22:01 |
re : add nodes problem | joyJOYJOY | CorelDRAW/Corel DESIGNER VBA | 0 | 17-09-2007 12:48 |
Too many nodes | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 3 | 27-02-2004 08:14 |