MNH Posted December 15, 2016 Posted December 15, 2016 Can I export a CSV file of X, Y coordinates to AutoCAD LT 2017? Quote
ReMark Posted December 15, 2016 Posted December 15, 2016 AutoDesk suggests this as one possible method. "Create a script file (.scr) of the point file and drag and drop it into the AutoCAD model view window." And this is a copy of the sample script file they provided. _MULTIPLE _POINT 9231.55,8799.44,10 9241.83,8781.49,20 9194.23,8765.63,20 9191.68,8751.05,30 9158.88,8725.80,50 9147.11,8726.84,80 9128.10,8712.21,40 9145.18,8690.02,10 9152.41,8689.65,0 9167.86,8585.40,0 A script file can be written using any ASCII text editor like Notepad. Save the file with the .scr file type extension. Quote
ReMark Posted December 15, 2016 Posted December 15, 2016 Don't thank me yet. I haven't tested the method so who's to say it will work. Let us know how it went. Quote
MNH Posted January 3, 2017 Author Posted January 3, 2017 -insert ipoint 5000,5000 -insert ipoint 5400,5300 -insert ipoint 5400,5000 I created a script file leaving 2 lines empty before each subsequent -insert command to indicate "ENTER" for each line, therefore entering default values for scale factor and rotation angle. When I run the script from the command line, I get Requires valid numeric angle or second point. Specify rotation angle : from AutoCAD. Only the first point gets inserted. I've followed all of the rules for writing a script file. I wrote the script file in Notepad. I created a block called ipoint.dwg. It is an "X" point type. The insertion point is the node. Quote
BIGAL Posted January 3, 2017 Posted January 3, 2017 Try it like this -insert ipoint 5000,5000 1 1 0 -insert ipoint 5400,5300 1 1 0 -insert ipoint 5400,5000 1 1 0 Look at using excel to create the script using the concatenate command copy the column to notepad and save as a script. Quote
MNH Posted January 7, 2017 Author Posted January 7, 2017 Your horizontal format works! Thanks! The script doesn't stop after the third line is executed. I have to press ESC, or simply wait for the prompt for a rotation angle to disappear. When you save the script in Notepad, you must leave the last line empty. The cursor must be at the beginning of the fourth line, in my case. If not, the script won't execute properly. When I saved the script with the cursor at the end of the third line, only the first line of the script executed. Quote
BIGAL Posted January 8, 2017 Posted January 8, 2017 You can use blank lines in a script as = to press Enter. As you say often you need just one more as last line to end the command or it sits and waits. You have to watch the commnad line closely sometimes, one to watch out for is scripting text if you have a text style with height set its 1 command less. Text Pt 2.5 90 asdf or Text pt 90 asdf line 1,1 3,3 circle 1,1 10 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.