OberonPlace.com Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-08-2014, 21:34
nic nic is offline
Member
 
Join Date: May 2009
Posts: 90
Default Drawing smooth curves

Hi
Trying to draw hundreds of smooth curves from an Excel spreadsheet and struggling to find a way that doesnt require manual intervention.

I currently have a macro that reads in the node points (Excel only has the x,y coordinates) and draws overlapping curves - the first two/last three nodes overlap the previous/next curve. Each part of each curve is created with AppendLineSegment then the curve is created with CreateCurve. I can then manually select each curve/select All Nodes/To Curves/Smooth and use a macro to delete the first and last node, ending up with non-overlapping curves that look like a continuous smooth line.

I had tried to use AppendCurveSegment but whilst this created curved nodes with handles the lines were not smooth - I think because of the lack of control handle information and I would need to manually change the nodes back To Lines before converting them back To Curves.

The method wasnt good but I could get away with it with a few curves but now I want to draw hundreds of small curves of about 20 nodes each and Im wondering if someone could give advice about how to go about it.


Best wishes
nic

Last edited by nic; 08-08-2014 at 21:37.
Reply With Quote
 

Tags
appendline segment, smooth curves


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
Setting Drawing Origin in VBA nic CorelDRAW/Corel DESIGNER VBA 2 30-10-2013 09:04
connect curves: arc curves TobWen CurveWorks 4 30-05-2008 13:47
Drawing a 'T', a simple Q madhur General 3 18-09-2007 07:37
A Simple Question - drawing curves madhur General 4 01-08-2006 22:37
Drawing a cross hair ashwinw Corel Photo-Paint VBA 1 29-05-2004 18:44


All times are GMT -5. The time now is 04:39.


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