Hi All,
I've done this many times with other programs but now the process is failing me and i can't see why. Please help.
The program looks something like this:
(DEFUN ZoomPurgeSaveClose (rezoom / oTab)
lines of code
lines of code
lines of code
lines of code
lines of code
)
;;;Short-Name Stubs
(DEFUN C:ZPSC () (ZoomPurgeSaveClose 1))
(DEFUN C:PSC () (ZoomPurgeSaveClose 0))
In the tool on the tool palette, the command string is:
^C^C(if (not C:PSC)(load "DrawingCleanup"));PSC; <-- suspected problem
Yet when i pick the tool i'm told "Unknown command "PSC"" What's up with that?
If while i'm in the VLIDE i pick the "Load active edit window" button and THEN pick the palette tool, the code runs so i believe the problem is that the palette is not loading the file but i don't know why.
If you need to see all the code i am glad to share but i almost certain the problem is in the load statement.
The compiled code "DrawingCleanup.vlx" is in the directory listed in Options>Files>Support File Search Path
This directory is in the Options>Files>Trusted Locations
As i said, this setup is working many other times here but is failing on this one.
Any help is appreciated.
Sal
Solved! Go to Solution.
Solved by sbrusco. Go to Solution.
Hi Sal,
the 'load' will load the first customization file named DrawingCleanup(.lsp, .fas, .vlx), if one other file with the same name is found at the 'Support File Search Path' will be loaded, then the PSC ommand will be "Unknown command".
Try
^C^C(if (not C:PSC)(load "DrawingCleanup.vlx"));PSC; ;; or ^C^C(if (not C:PSC)(load "X:\\YourPath\\DrawingCleanup.vlx"));PSC;
and see if it works as expected.
Hope that helps
Henrique
Hi Henrique,
I found the problem and while it is very embarrassing to me, i will expose myself for the learning experience of others.
While making the application, which is a "simple" app, when i got to the page that asks "LISP Files to Include" i ~assumed~ the current file would be included... BAD assumptiion. Once i actually put something IN the vlx, everything works. Huh, imagine that.
I must've made 100s of vlx in the past and i knew to do this, but i skipped it on the first build of this program and of course, on subsequent builds i used the "Rebuild" option so it was always empty.
Sorry for taking everyone's time but thanks Henrique for offering help.
Sal