Many thanks guys for all the replies - I have learnt a ton from this thread - especially from your detailed explanation Keith, thanks for your time.
So, to be clear, my understanding is that S::STARTUP can be used to execute functions that operate directly on the drawing in question (as S::STARTUP) is loaded after the ACADDOC.lsp file.
I do have one further question:
I have seen two ways to implement the S::STARTUP function:
(defun-q test ( )
(command "_.CIRCLE" '(0 0 0) 10.0)
(princ))
(setq S::STARTUP (append S::STARTUP test))
(defun S::STARTUP ( )
(command "_.CIRCLE" '(0 0 0) 10.0)
(princ))
Now, I always thought that the best way to implement this, is the first method shown, but a few examples in the VLIDE are showing the second - and I have also seen a few examples on here with the second.
So which is correct - or does it vary if the S::STARTUP has not been utilised?
Thanks once again guys, you've been a great help.
Lee
PS> Now I've posted my Lee7 post rank is gone