Ok let me start by saying i am very very new to writing LSP files. That being said i am trying to write a very simple one that Zooms, Saves, and Closes (it runs a script i have already written).
My code is as follows:
I know this works if the script file is in the active directory of the drawing i am working in. What i want it to do is search for a different file back, i.e. C:/User/Somefolder/ZoomSaveClose.scr. for the file. Can anyone help me with this? I have already tried...Code:(defun c:zsc () (command "script" "ZoomSaveClose.scr") (princ) )
but that doesn't work and i can't find a pre-written lsp that would give me some idea of how to do this.Code:(defun c:zsc () (command "script" "C:/User/Somefolder/ZoomSaveClose.scr") (princ) )