PDA

View Full Version : How to go from coordinates in a file to a cut path



cramcram
03-08-2008, 02:13 PM
Any ideas on the easiest way to go from XY coordinates in a text file to a cut path?

Thanks,

Marc

DocWheeler
03-08-2008, 02:57 PM
Marc,

I am a little slow sometimes, could you explain this a little differently?

jlitz
03-08-2008, 03:11 PM
Any ideas on the easiest way to go from XY coordinates in a text file to a cut path?

Thanks,

Marc

Depending upon the complexity, with a little reformatting you could run it through this tool: http://www.allcw.com/Forum/viewtopic.php?t=301

Using a simple Illustrator .ai file, you can create line segments, open & closed paths, etc. using the below template.
%!PS-Adobe-3.0
%%Creator: Adobe Illustrator(TM) 3.2
%%BoundingBox: 23 619 246 707
%AI3_TemplateBox: 306.5 395.5 306.5 395.5
%AI3_TileBox: 12 12 600 780
%%PageOrigin:12 12
%%AI3_PaperRect:-12 780 600 -12
%%AI3_Margin:12 -11 -11 12
%%EndComments
%%BeginProlog
%%EndProlog
%%BeginSetup
%%EndSetup
358.5 375.5 m
191.5 375.5 L
S
519.5 528.5 m
322.5 528.5 L
322.5 612.5 L
519.5 612.5 L
S
244.5 212.5 m
472.5 212.5 L
472.5 93.5 L
244.5 93.5 L
244.5 212.5 L
s
%%PageTrailer
%%Trailer
%%EOF
In the following example of a line segment, "m" is move to start of a new path, "L" line segment to next position, "S" leave path open, and the coordinates are in terms of "printing points" 72 points per inch:
358.5 375.5 m
191.5 375.5 L
S
In this example, the trailing lower case "s" means a closed path, creating a closed box:
244.5 212.5 m
472.5 212.5 L
472.5 93.5 L
244.5 93.5 L
244.5 212.5 L
s

There are other ways to accomplish this as well.

cramcram
03-08-2008, 03:30 PM
That looks like the ticket. I can easily re-format the data into the .ai format.

For the previous poster, what I have is data from a spreadsheet that defines a path I want to cut out in a board. I'd rather have the original data directly converted into a .mpc file than to enter each point by hand.

Thanks,

Marc