Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am trying to get a lisp to run a series of commands when I open a drawing. I found this post from 2017 that had some code on how to do it. I have modified it, and placed it in my acaddoc.lsp file, but it doesn't seem to be working. Can someone point out what I'm doing wrong?
Thanks
-JD
(defun-q spstartup () ;Run the following commands on start up of each drawing
(command "snap" "on")
(command "snap" ".0625")
(command "ucsicon" "off")
(command "grid" "off")
(command "units" "2" "3" "1" "0" "0" "n")
(command "style" "romans" "romans" "0" "1" "0" "n" "n" "n")
(command "ZOOM" "E" "")
(command "DISPLAYVIEWCUBEIN2D" "off")
(command "_navvcube" "off")
)
(setq s::startup (append s::startup spstartup))
Solved! Go to Solution.