I am trying to create a text file and save it in the current drawing directory. How would I go about that?
(setq filepath (getvar "dwgprefix")
(setq fl (open "PointDepth1.csv" "w")) ;change file name and path to your specs
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
@jamesbarnett wrote:
I am trying to create a text file and save it in the current drawing directory. How would I go about that?
(setq filepath (getvar "dwgprefix")
(setq fl (open "PointDepth1.csv" "w")) ;change file name and path to your specs
Perhaps
(setq fl (open (strcat (getvar 'dwgprefix) "PointDepth1.csv") "w")) ... (close fl)
HTH
Henrique