Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing x,y coordinates to create a shape

Status
Not open for further replies.

Tractrix

Technical User
Aug 4, 2007
1
CA
How can I create a shape using a series of x,y coordinates in CorelDraw ?
I have 3 curves with about 150 coordinates each. The coordinated were generated from an Excel spreadsheet and I am able to create a text file with all the x,y values.
In Autocad, I can use a script to import the data (line command), but is it possible to do something similar in Draw ?
 
Corel has a scripting language too, and its probably possible but I suspect not easy.

In the past I've done something similar using foxpro to create a postscript file which at its simplest looks something like:

%!PS
50 50 moveto
100 100 lineto
120 150 lineto
closepath
fill
showpage
%End

You can then bring that into Corel using the "Postscript Interpreted" import filter.

Instead of foxpro, you can use any other language you're familiar with that can read the excel file and write to a text file which should be created with a .ps extension.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top