I have a file path im trying to capture in a text file however its not working and autocad is prompting back,
; error bad argument type: streamp nil
Im assuming its because of the slashbacks but Im not sure..
Herse the code sofar...
(defun C:GO () (SETQ ACADLSP (findfile "acad.lsp")) (setq f (open "C:\test.txt" "w")) (write-line ACADLSP f) (close f) )
Try to run autocad as administrator,
I was having the same problem, I could create file on "D:" , but could not on "C:".
I think that is your problem, because I think that you cannot create a file on "C:" if you don't run autocad as administrator.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!