I am getting the following message when I run a lisp routine.
; error: misplaced dot on input
Could someone point me in the right direction?
Can upload code if need be.
|
I am getting the following message when I run a lisp routine.
; error: misplaced dot on input
Could someone point me in the right direction?
Can upload code if need be.
Hi,Originally Posted by bboss
The first thing I would check is that all of the real numbers have leading zeros. IE: 0.10, not .10
If that's not it, please post your code and we'll have a look at it.
HTH
Actually, I think my problem lies in the initialization process (i.e. when autocad opens). Something is wrong and messing all my other lisp programs. Is there a way I can check what is being loaded item by item (like in the old DOS days)?
Beth
Hi Beth,Originally Posted by bboss
Are there any error messages (load errors and such) during startup?
This is what I get:
Customization file loaded successfully. Customization Group: ACAD
Customization file loaded successfully. Customization Group: CUSTOM
Customization file loaded successfully. Customization Group: ACCOV
Customization file loaded successfully. Customization Group: AC_BONUS
Customization file loaded successfully. Customization Group: EXPRESS
Customization file loaded successfully. Customization Group: DBCONNECT
Substituting [simplex.shx] for [univ.shx].
Regenerating model.
AutoCAD Express Tools Copyright © 2002-2004 Autodesk, Inc.
AutoCAD bonus utilities loaded.
AutoCAD menu utilities loaded.
Type OPG For An Opening.layer
Current layer: "0"
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock
/stAte]: s
Enter layer name to make current or <select object>: 0 Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock
/stAte]:
Choose an insertion point for this block:
Command: COMMANDLINE
Invalid point.
Command:
; error: bad argument type: point: nil
; error: misplaced dot on input
AutoCAD Bonus Menu loaded.
The stuff after "AutoCAD menu utilities loaded." is not typical. After "Command: COMMANDLINE" it waits for input (again not right). After pressing enter, the error messages show up and then the rest is normal. I have another seat where everything works fine. Maybe I just need to go home and start again Monday.
Beth
It looks to me like one of your startup files is messed up. I would look for an acad.lsp and acaddoc.lsp and see if they look ok. It looks like the command right after the layer command to set the layer to 0, so that will be your reference point. Also, minor changes in commands can mess things up. In this case, the block that is being inserted may have a uniform scale property (or vice versa), which could throw the number of arguments required off.
I strongly recomend adding these two lines to the bottom of your acad.lsp file:
(princ "\n\"Acad.lsp\" loaded. ")
(princ)
and add
(princ "\n\"Acaddoc.lsp\" loaded.")
(princ)
to the bottom of acaddoc.lsp. As you can see from what you posted Autocad puts notification at the end of the files of theirs that load.
Odd? You load both AutoCAD Express Tools and AutoCAD bonus utilities, what version are you running and what bonus utilities do you still use?
Try to avoid command calls in your startup lisp, this will set 0 as the current layer cleanly: (setvar "clayer" "0")
Excellent advise. I did this a long time ago and it has save me a lot of debugging time when something goes amok...Originally Posted by Tom Beauford
R.K. McSwain | CAD Panacea |
Hi bboss,Originally Posted by bboss
Look like this code
Code:(setq xx .123) ; error: misplaced dot on input (setq x 0.123) ; 0.123
I think you have a (command insert . . .) in your start-up routine
"Choose an insertion point for this block":
that is expecting an input that malfunctions and instead get the next input that is COMMANDLINE
(and then next and next and next ) and the "game is over"
Try to find that command line, and run it manually to fix.
: ) Happy Computing !
kennet
Last edited by kennet.sjoberg; 2007-05-14 at 03:00 PM.