I'm trying to write a drawing path to a text file after using the getfiled function (see below) but i cant figure out how to use the write-line function to write the path in the text file. Any help would be great
(defun c:setup (/ bdr info bdrok pt1)
(setq bdr (getfiled "Select Market Border" "//Theseus/Proj/" "dwg" 8)) (setq info (getfiled "Select Border Information" "//Theseus/Proj/" "dwg" 8)) (setq PT1 "0,0,0") (setq f (open "c:/new.txt" "w")) (write-line (!bdr) fp)--------------this is where im having problems (close f) (do_a1)
)
(defun c:setup (/ bdr info bdrok pt1)
(setq bdr (getfiled "Select Market Border" "//Theseus/Proj/" "dwg" 8)) (setq info (getfiled "Select Border Information" "//Theseus/Proj/" "dwg" 8)) (setq PT1 "0,0,0") (setq f (open "c:/new.txt" "w")) (write-line (!bdr) fp)--------------this is where im having problems (close f) (do_a1)
)