What I'm trying to do is this:
We have 60 villages that we provide telephone support to in the bush here in Alaska. Each village has it's own directory and under each directory is a map with the villages exchange number as a name (i.e. 231oa.dwg).
What I'm trying to do is write a simple lisp that when loaded will have all my village directories and map names in there so that when I'm in AutoCad, I can just type x231 on the command line and it will open that villages map.
I know that filedia has to be switched to 0 at the start and returned to 1 at the end.
Here's what I have that isn't working so far..
(defun C:X231()
(command "filedia" "0")
(command "OPEN" "T:\\PRM\\Birch Creek\\231OA.DWG" )
(command "filedia" "1")
)
I'm getting the following as an error:
Unknown command "T:\PRM\BIRCH CREEK\231OA.DWG"
I've tried with without the quotes but then it just gives me a nil..
I'm pretty sure this is a simple fix but, I can think very hard today.. Any help is greatly appreciated. My brain is fried from a lovely flu virus I've had for the last 4 days..
Thanks!