AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN


Existing S::STARTUP

Because an S::STARTUP function can be defined in many places (an acad.lsp file, a .mnl file, or any other AutoLISP file loaded from either of these), it's possible to overwrite a previously defined S::STARTUP function. The following example shows one method of ensuring that
your start-up function works with other functions.

(defun MYSTARTUP ()
	....Your Start Up Function....
)

(setq S::STARTUP (append S::STARTUP MYSTARTUP))
The previous code appends your start up function to that of an existing S::STARTUP funtion, and then redefines the S::STARTUP function to include you startup code. This works properly regardless of the prior existence of an S::STARTUP function.

 
The AutoLisp/Visual Lisp/VBA Resource Website

Copyright © 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website