![]() |
#1
|
|||
|
|||
![]()
how to add node at specific position in VBA
|
#2
|
|||
|
|||
![]()
use Segment.AddNodeAt or SubPath.AddNodeAt
|
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
use FindSegmentAtPoint(x,y,ofs) to find segment, then AddNodeAt ofs to create node
|
![]() |
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 |
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 |