pjmac Posted February 14, 2012 Posted February 14, 2012 I am attempting to teach myself AutoLisp. I am going through the tutorials on AfraLisp and am having trouble save a routine. I am told to "Now, save this file as "testline.lsp" remembering, to save it as a ASCII Text file and ensuring that it is saved in a directory in your AutoCAD's search path. Now open AutoCAD and type this :" I am not sure what a ASCII text file is and is not in my drop down menu on notepad. Any advice would be appreciated. Thank you. Peter Quote
MSasu Posted February 14, 2012 Posted February 14, 2012 ASCII file is just what "text" file - it contains letters, numbers, punctuation marks and carriage returns. For Notepad just select the *.TXT option. I suggest you to use the VisualLISP editor that come with AutoCAD instead of Notepad since there you will have access to better functionalities. Regards, Mircea Quote
Lee Mac Posted February 14, 2012 Posted February 14, 2012 Set the 'Save as Type' box to 'All Files', with 'Encoding' set to 'ANSI'; ensure the filename has a '.lsp' extension: Quote
pjmac Posted February 14, 2012 Author Posted February 14, 2012 autocad is not finding it. Is there a way that i can see what autocad's search path is? Quote
Lee Mac Posted February 14, 2012 Posted February 14, 2012 Tools > Options > Files > Support File Search Path Quote
pjmac Posted February 14, 2012 Author Posted February 14, 2012 Thank you Lee Mac. That was my first time writing a program. Quote
Lee Mac Posted February 14, 2012 Posted February 14, 2012 You're welcome Maybe my tutorial will help fill in the blanks: http://lee-mac.com/runlisp.html Quote
pjmac Posted February 14, 2012 Author Posted February 14, 2012 I will check it out. Thanks again. Quote
fuccaro Posted February 15, 2012 Posted February 15, 2012 In Windows environment, also you can load a lsp file by dragging it in the drawing area. 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.