![import points to autocad import points to autocad](https://i.stack.imgur.com/5atRi.png)
![import points to autocad import points to autocad](https://149364069.v2.pressablecdn.com/wp-content/uploads/2016/12/convert-3d-revit-to-dwg.png)
Recently, I changed the code of this script and I am using the command “getfiled” that allows the user to select where to create the file in a visual way. In the past I have written a LISP script that allowed the user to export points to a file. The way you can load LISP programs to AutoCAD is here.The script runs by typing IMPO command in AutoCAD. Just copy it to a notepad file and rename it’s extension to “.LSP”. (setq filepath(getfiled "PICK YOUR POINT FILE" "C:/" "txt" 4)) (defun c:impo (/ filepath rline dir file filename) As it is a very basic script, I didn’t add any error check or point numbering etc. From the ASCII text file copy all X, Y, Z points in the desired order and paste these into the command line. All you have to do is to have a file with X,Y coordinates. In AutoCAD are several possibilities available to insert the points. I have written one and it’s very easy to understand. The second way is by using AutoLISP scripts. Have in mind that you have to type POINT manually before the first line of coordinates. Then hit replace all and the word POINT would be inserted in every line between the coordinates. The pictures bellow show how it is done step by step.First, you have to press CTRL+F, then go to the replace tab and type \r at the “Find What:” space and \nPOINTS at the “Replace With:” space. *An easy way to insert the word POINT in every line is by using the Notepad++ app (the best notepad application). The program will go through every line until the end, creating points of the coordinates provided. What you did was that you created a script file that tells AutoCAD to use the command POINT with the coordinates that follow each command. Then save the file but replace the extension. Then you have to add the word POINT in every line between the numbers at the beginning of the list (before the first set of coordinates). Strip it down so there are only the Xs and the Ys (every point should have it’s coordinates in a separate line). First of all, let’s say that you have some points in a txt file. There are some ways to import and export points from AutoCAD too, even if we have to use some DIY stuff. But, don’t be disappointed or try doing this thing manually. Despite the fact that Civil 3D has an integrated tool for this kind of work, AutoCAD doesn’t. There is often the need to import and export points in AutoCAD.