OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Thread Tools Search this Thread Display Modes
Old 25-09-2017, 13:32
mtracy mtracy is offline
Join Date: Jun 2012
Location: Niceville, Florida
Posts: 31
Default Add nodes at intersects

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
ActiveTool = cdrToolPick

End Sub
Myron Tracy
Accent Signs
Reply With Quote
Old 02-10-2017, 11:55
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 13
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Intersects

You would need to add a loop to loop through all your shapes and check them for Intersects.

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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

All times are GMT -5. The time now is 02:23.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com