|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2003-12
Posts: 47
![]() |
Hi;
I have been getting the title error when I run the attached lisp prog in Acad 2000 and above but not Acad R14. I cannot figure out what's wrong and I have noted the error line in the attached file. I hope to get some help. Thanks. csgoh |
|
|
|
|
|
#2 |
|
100 Club
Join Date: 2000-12
Posts: 126
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Because READ respects certain characters reserved for lisp evaluations. A quote "'" is read as the function QUOTE:
(read "a") returns the symbol A, but (read "'a") returns (QUOTE A) It's the same thing that makes READ capable of returning lisp expressions, as in (read "(cons 2 4)") where the left parenthesis signals a lisp expression. Whenever READ bumps into a reserved character it expects an expression to follow. You'll have to check the returned character before using READ. |
|
|
|
|
|
#3 |
|
Member
Join Date: 2003-12
Posts: 47
![]() |
Hi;
If that's the case, then the prog should not work in Autocad R14 at all but it is working well and there is no problem in R14. But when tested in 2000 and above it crashes. Any further enlightenment is much appreciated. Thanks. csgoh 16-7-04 |
|
|
|
|
|
#4 |
|
100 Club
Join Date: 2000-12
Posts: 126
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
That is the case. I can't remember how READ evaluated arguments back in r14 but if you check characters before READ'ing them, it should work in r14 as well.
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Input needed... | Brian Myers | Local Chapters - General | 2 | 2004-07-13 08:08 PM |
| Can I input a formula in AutoCAD??? | jhohman | AutoCAD General | 4 | 2004-07-08 12:56 AM |
| Input Points? | nathanw | MDT - General | 0 | 2004-07-07 04:12 PM |
| Revit does calculations on data input | Steve_Stafford | Revit Architecture - Tips & Tricks | 1 | 2004-04-09 12:29 AM |
| Soliciting Input for Revit 6 Tutorials | Penthesilea | Revit Architecture - General | 39 | 2003-07-26 12:01 AM |