[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Part1 - Part2 - Single Page
Top Document: comp.cad.autocad AutoLISP FAQ (part 1/2) - general
Previous Document: [15] (command "ROTATE3D") does not work! Why?
Next Document: [17] How to export Visual Lisp functions to AutoLISP/AutoCAD?
-
Search the FAQ Archives
Part1 - Part2 - Single Page
Top Document: comp.cad.autocad AutoLISP FAQ (part 1/2) - general
Previous Document: [15] (command "ROTATE3D") does not work! Why?
Next Document: [17] How to export Visual Lisp functions to AutoLISP/AutoCAD?
[16] LISP programs operating over multiple drawings
"I am having trouble getting a lisp file that will open a drawing and
continue running. Once the new drawing is opened the LISP file ceases
to exist in the Autocads memory. It has to be reloaded to recognise
the commands."
LISP memory is reloaded on a per drawing basis. There are some
ways to execute a LISP on multiple drawings:
1) via a script that executes on multiple files.
MYSCRIPT.SCR:
(load "mylisp")
_QSAVE _OPEN !nextdwg
(load "mylisp")
_QSAVE _OPEN !nextdwg
...
2) External 3rd party software such as RunLisp, ScriptPro or DDSCRIPT automate
step 1.
3) R14 has a new feature, called 'Persistent LISP'.
Set it in Preferences-Compatibility-Persistent LISP
4) Vital LISP has a built-in variable to act as Persistent LISP:
(setq *VILL-NEW-FULL-INIT* nil) ;keep symbols between sessions
5) same with Visual LISP: (setq *VLISP-NEW-FULL-INIT* nil)
Top Document: comp.cad.autocad AutoLISP FAQ (part 1/2) - general
Previous Document: [15] (command "ROTATE3D") does not work! Why?
Next Document: [17] How to export Visual Lisp functions to AutoLISP/AutoCAD?
Part1 - Part2 - Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
rurban@xarch.tu-graz.ac.at (Reini Urban)
Last Update July 24 2008 @ 00:12 AM