Do you have data points in an Excel file that you want to import to AutoCAD? This minHour will teach you how to import X, Y, Z coordinates from Excel to AutoCAD using a script file. First, you'll need an Excel spreadsheet file.
Open your project in Excel.
You can open the program from the Start menu in Windows or in the Applications in Finder on Mac; then click . You can also open your file from your file manager by right-clicking it and selecting .
- You’re going to create the script file from the Excel data.
Select and copy your data.
Simply click to select the first cell with data and drag and drop your cursor to the last cell that contains data. To copy, press (Windows) or (Mac).
Paste the copied data to a Notepad or TextEdit file.
You’ll find Notepad in the Start menu of Windows and TextEdit in the Applications folder in Finder for Mac.
- To paste, press Ctrl + V (Windows) or Cmd + V (Mac). The data will appear in your text file along with spaces to look like the original source.
Use the “Find and Replace” tool to get rid of the spaces.
Select (drag and drop) a space, then go to then you should see the space in the “Find what” text field (Mac users may need to select “Use selection for Find”). Enter a comma in the “Replace with” field and click .
- When you replace all the characters, you’ll see your data set without the spaces, but instead with commas.
Add “_MULTIPLE _POINT” to the top of the list.
AutoCAD recognizes the underscore mark as a command and spaces as enters, so it will run the “MULTIPLE” and “POINT” commands separately.
Save the file as an SCR file.
Go to then change the “Save as type” drop-down and select “All Files.” For Mac, hold the key as you click to get “Save As.”
- Name the file then add “.scr” to the end and click Save.
You can launch this app from your Start menu in Windows or the Applications folder in Finder on Mac.
Type “SCR” and press Enter or Return.
You’ll see the SCRIPT command appear above the command bar at the bottom of your screen as you type and your file manager will open when you press the key.
Navigate to and double-click your SCR file.
When you double-click to select it, AutoCAD will read the commands on the first line of the document and automatically import the X, Y, Z coordinates.
Press Esc and double-click your mouse in the drawing area.
Pressing closes the last command (which was the POINT command) and double-clicking will zoom out so you can see all the coordinates you imported.