OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-11-2018, 10:24
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 154
Default how to add node at specific position in VBA

how to add node at specific position in VBA
Reply With Quote
  #2  
Old 13-11-2018, 04:24
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 145
Default

use Segment.AddNodeAt or SubPath.AddNodeAt
Reply With Quote
  #3  
Old 13-11-2018, 10:18
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 154
Default

how to use Segment.AddNodeAt
If I select a point on active curve by using Getuserclick which gives me x,y coordinates
e.g.
clicks = xyClicks
x = clicks(1)
y = clicks(2)

Public Function xyClicks()
Dim x As Double, y As Double, Shift As Long
Dim clicks(1 To 2) As Double
If ActiveDocument.GetUserClick(x, y, Shift, 5, False, CursorShape:=301) <> 0 Then xyClicks
clicks(1) = x
clicks(2) = y
xyClicks = clicks
End Function
Reply With Quote
  #4  
Old 16-11-2018, 04:10
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 145
Default

use FindSegmentAtPoint(x,y,ofs) to find segment, then AddNodeAt ofs to create node
Reply With Quote
Reply


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
Creating new specific document hvw Corel Photo-Paint VBA 1 06-02-2012 14:34
lock a node position and transform a shape runflacruiser CorelDRAW/Corel DESIGNER VBA 5 11-09-2011 14:21
X5 Watch For Specific Action knowbodynow CorelDRAW/Corel DESIGNER VBA 15 06-05-2010 01:24
How to select a word at specific tab position aakkaarr CorelDRAW/Corel DESIGNER VBA 4 28-12-2009 15:43
Align to Specific Layer ProofingGuy CorelDRAW/Corel DESIGNER VBA 6 11-06-2008 18:11


All times are GMT -5. The time now is 08:48.


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