You are on page 1of 2

Import X,Y Coordinates from Excel into AutoCAD - Between the Lines

http://autodesk.blogs.com/between_the_lines/2009/06/import-xy-coordi...

Between the Lines


Home Archives Autodesk Labs AutoCAD History On Twitter Autodesk Blogs About Subscribe by RSS

Import X,Y Coordinates from Excel into AutoCAD


I am currently on vacation but wanted to share a great AutoCAD Tip from my friend the AutoCAD Trainer Guy Michael Beal. Michael always has great tips and clear instructions in his monthly Michaels Corner available on the web as well as a monthly newsletter. The following tip is from Michaels Corner May 2009. Prerequisite: The X and Y values need to be in a single cell in the format of X,Y for this to work. If X and Y have their own column, you will need to make the necessary adjustments to get them to X,Y format. Instructions to Create a Drawing with X,Y Coordinates from Excel 1. In Excel, highlight and Copy the column of X,Y coordinates to be used to generate the drawing. 2. Open Windows Notepad (Start All Programs Accessories Notepad). 3. Before pasting the coordinates, type LINE as the first word in the file (this will launch the Line command when the script is run), then press [Enter]. 4. Now Paste the column of coordinates into the file and you should see something like that shown in the figure. 5. Close and save the .SCR file (remember where you're saving it). 6. In AutoCAD, launch the SCRIPT command, then navigate to where you saved your file in the previous step, then select it and click Open. AutoCAD will launch the Line command then, beginning at the first set of coordinates entered, will draw line segments from one point to the next. You may also want to consider Replacing the LINE command with the PLINE command. Adding the word CLOSE as the last word in the script to have the linework close back to the start point. Dragging the .SCR file out of Windows Explorer and dropping it into the drawing window. Do you have an AutoCAD, AutoCAD Architecture,AutoCAD Mechanical, or AutoCAD MEP tips, tricks, or resources you would .like to share with the thousands of readers of this Between the Lines blog? Send me your favorite tips, tricks and resources 30 June 2009 | Permalink
0

Like

TrackBack
TrackBack URL for this entry: http://www.typepad.com/services/trackback/6a00d8341bfd0c53ef0115709c0ecc970c Listed below are links to weblogs that reference Import X,Y Coordinates from Excel into AutoCAD:

Comments David Saenz said...

1 of 2

04-10-2011 PM 09:23

Import X,Y Coordinates from Excel into AutoCAD - Between the Lines

http://autodesk.blogs.com/between_the_lines/2009/06/import-xy-coordi...

I and my fellow R/C Airplane geeks have been doing this since at least R14 to import airfoils readly available as .dat files. Reply 01 July 2009 at 08:43 Earl Kubaskie said... OSNAPs OFF first! Reply 01 July 2009 at 21:57 Amin said... Thanks for ur tip. I knew this but had forgot. Reply 07 July 2009 at 03:30 John said... You can also export the xls as a csv, rename the extension to txt, open in notepad, add the commands, I suggest PLINE, then save, and then rename extension as scr. phew! Reply 21 October 2009 at 05:02 leo said... I am having a problem: When i load my script (scr) file in my ACAD 2008 (full version), it seems ACAD opens up the file but it stays looping forever. I already tried adding the CLOSE command at the bottom of the scr file but still keeps looping. I want to plot around 120 x,y points. Please let me know. Thanks Reply 04 November 2009 at 07:36 Comments on this post are closed.

Between the Lines Follow Me on Twitter

2 of 2

04-10-2011 PM 09:23

You might also like