OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 06-07-2017, 07:03
ebu ebu is offline
Join Date: Mar 2007
Posts: 31
Default Curve. How I get the Start.- and Endcoordinate


if is possible to get the Coordinate of the Start.- and the End from a curve?
(First and Last in the Object Properties Curve)
In VBA. I use X5

Reply With Quote
Old 12-07-2017, 04:48
shark shark is offline
Senior Member
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 146

Curve consists of nodes. Therefore you may use: Curve.Nodes.First and .Last
Every node have a PositionX and PositionY.

Dim s As Shape, x1#, y1#, x2#, y2#
    Set s = ActiveShape
    s.Curve.Nodes.First.GetPosition x1, y1
    s.Curve.Nodes.Last.GetPosition x2, y2
Reply With Quote
Old 24-07-2017, 13:09
ebu ebu is offline
Join Date: Mar 2007
Posts: 31

Thank you for the solution
Reply With Quote
Old 19-10-2017, 04:56
ager ager is offline
Join Date: Jul 2010
Location: Russia
Posts: 44
Default Array of the coordinates

Join to the question.
How quickly to get coordinates of ALL nodes of the curve as a array (without using a cycle for...next)?

Last edited by ager; 19-10-2017 at 05:05.
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
Application Start Event! davidpmp Macros/Add-ons 3 06-02-2012 11:40
Can the Calendar Start on Sunday instead of Monday? LeahStorm Calendar Wizard 1 24-01-2012 03:52
Stop and start screen updating? DChinell CorelDRAW/Corel DESIGNER VBA 5 16-11-2008 15:39
macro for break curve and join curve mgmcs Macros/Add-ons 2 26-05-2006 23:01
run macro at start up Corel 11 ???? -=HKLC=- CorelDRAW/Corel DESIGNER VBA 14 30-10-2004 10:29

All times are GMT -5. The time now is 12:40.

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