Hi,
I would appreciate a little help with the code below which I have in my start up.
I have two versions of AutoCAD installed 2014 and 2016, but would like to only load in a custom cuix for 2014 only.
How can I achieve this?
Many thanks in advance, Robbo.
(echooff)
(defun IWillOnlyRunOnceADay nil
(command "cuiload" "C:\\Program Files\\Autodesk\\ApplicationPlugins\\Custom 2014.bundle\\Contents\\Support\\Custom.cuix" ^C)
(princ)
)
(if
(not
(and
(setq date (getenv "OnceADay"))
(< (fix (getvar 'DATE)) (atoi date))
)
)
(progn
(IWillOnlyRunOnceADay)
(setenv "OnceADay" (itoa (+ 1 (fix (getvar 'DATE)))))
)
)
(princ)
(echoon)