Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-07-15, 03:32 PM   #1
csgohjmj
Member
 
Join Date: 2003-12
Posts: 47
csgohjmj is starting their journey
Question Error:EOF after quote on input

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
Attached Files
File Type: txt test1.txt (1.5 KB, 8 views)
csgohjmj is offline   Reply With Quote
Old 2004-07-15, 04:55 PM   #2
stig.madsen
100 Club
 
Join Date: 2000-12
Posts: 126
stig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightly
Default

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.
stig.madsen is offline   Reply With Quote
Old 2004-07-16, 02:02 PM   #3
csgohjmj
Member
 
Join Date: 2003-12
Posts: 47
csgohjmj is starting their journey
Default RE: Error:EOF after quote on input

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
csgohjmj is offline   Reply With Quote
Old 2004-07-16, 05:50 PM   #4
stig.madsen
100 Club
 
Join Date: 2000-12
Posts: 126
stig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightly
Default

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.
stig.madsen is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 03:02 PM.