Loading Lisp Problems
I have been using this lisp routine in Autocad for many years and as I have now moved onto using Bricscad I would like to be able to run the lisp routine on Bricscad. I have tried loading the lisp using APPLOAD but the following error message appears.
; ----- Error around expression -----
(LOAD "Q:/Library/One Zone/#One Zone Standards/Library/miscellaneous/bonus 2009/ATTREF.lsp")
;
; error : malformed list on input at [READ] : File
I cannot figure out what the problem is, when I added an extra ")" to the first command line I managed to get the dialogue box to appear on screen when I loaded the lisp. A problem with that is that it appears immediately after loading the lisp rather than when typing in the command "ref" which is what you do when running Autocad.
What should be happening is that you load the lisp using APPLOAD, close the "Load Application File" dialogue box, then type "ref" in the command window and bobs your uncle everything should work, but alas no.
I have added the folder to the support path where all the menus and dcl files are kept that refer to this lisp but but still no joy.
In desperate need of some help.
0
Comments
-
There is a ")" missing in the last line. Write [code](exit))[/code] instead of [code](exit)[/code].
Stefan
0 -
That's brilliant, thank you Stefan.The next problem is that now the Dialogue box is open, you can enter the "prefix text" etc, select your reference style and when inserting the reference this appears as a sequence of "XXXX's" rather than say EG/01, EG/02, EG/03 and so on.I have attached the DCL file and also a zip file containing the blocks that the lisp and DCL file require.Your help is much appreciated.0
-
Hi Damian,
go to your Lisp-File and change the line[code](command "_attedit" "y" "" "" "" "l" "v" "" v "")[/code]to[code](command "_attedit" "_yes" "*" "*" "*" "_last" "" "_value" "_replace" v "")[/code]
The difference is the "" between "l" and "v". The rest of the changes are just for better readability.
0 -
You are in fact a genius,However hard I try I still cannot fully get my head around lisp routines.Thank you so much for helping me out with this, if I could buy you a beer I would.RegardsDamian Free0
-
Hello again Stefan,Once again I am having problems with this lisp routine. It has been working fine since the last time you helped me, however since I have upgraded to Bricscad V 14.1.02, the routing has stopped working. I am getting the error message, Unable to recognize command "VALUE". This was the same problem as last time, where all that is showing is a series of XXX's rather than numbers.Once again many thanks for any help you can giveRegardsDamian0
This discussion has been closed.