Moving from LSP to VLX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a large group of legacy lisp programs to support. I want to move from deploying the raw lisp files to deploying a single VLX file, but this does not seem to be working for me.
I have used the MAKELISPAPP Wizard to create a VLX & successfully loaded that VLX with APPLOAD. However, on load the alphabetically first function runs without calling from the command line, then that command & all the other lisp commands do not work.
I suspect that the problem lies in the way that the lisp files are currently loaded. This is the current lisp file situation...
In acad.lsp there is this line to load a "master" lisp file > (LOAD "MASTER")
Within the master lisp file, the remaining lisp files are loaded as definitions using a generic load lisp function. This is an example lisp file definition...
(defun C:LFX(/ e l1 l1found l1b l1mess n)
(E::load_file "LFX") ; see below for E::load_file definition
)
& this is the simplified generic load lisp function...
(defun E::load_file(gf)
(if (findfile (strcat E::lisp gf ".lsp")) ; E::lisp is the lisp file directory
(progn
(command-s "_undo" "_be")
(load (strcat E::lisp gf))
(command-s "_undo" "_end")
)
(progn
(prompt "\nIncorrect Software Installation...")
(prompt "\n")(prompt (strcat E::lisp gf ".lsp not found "))
)
)
)
I think that loading the master lisp file from acad.lsp isn't the best method, but I can address that once I have the VLX alternative working.
These are my questions...
Can I deploy a single VLX without any FAS files?
Can I continue to use a master file to define the loading of subordinate files?
If so, do I need to change the E::load_file to load something other than ".lsp"?