I am running Land Desktop 3. I ran into problems with my old desktop several months ago and just used my laptop. This last week I finally got around to replacing the memory in my desktop, reformatted the hard drive, installed XP that I had bought 5 years ago knowing this day was coming and reinstalled Land Desktop.
I had the hard disk partitioned and didn't lose any data except for bookmarks. In the process of cleaning everything up I found some lisp files that I have had for several years and decided to add a menu and include them in autocad. I can load them on my laptop but not the desktop. Both have the same version of Land Desktop 3/Autocad Map from the same install disk. I think it uses Autocad 2002. I'm actually doing this (playing with it) in Autocad Map to keep from messing up the menus in Land Desktop.
I have checked the path in autocad and in windows. I have moved the files to the autocad path. I keep getting an error "bad argument type: stringp nil".
I found some free download lisp files on the internet and downloaded one and it worked so my problem is something specific to these lisp files that are almost 20 years old. But why does it work on the laptop and not the desktop, both with XP, both with the same version of autocad.
I haven't updated XP on the desktop yet, still don't have it on the internet, virus software and internet are next.
Any ideas?
The lisp routines are not a necessity, but they would be handy to have.
Thanks, James
> I keep getting an error "bad argument type: stringp nil".
An AutoLISP function is expecting to receive a string argument, but it's getting a null argument instead, and that causes it to fail.
> But why does it work on the laptop and not the desktop
The laptop installation may be initializing the argument in question to a string value, while the desktop version isn't.
Without doing some serious debugging, it's hard to tell what's going on. One thing you might look at are the user string variables in both installations to see if they're different. At the command line, type USERS1 and hit return, to see if it's been set to a value on the laptop but not on the desktop. Repeat for USERS2, USERS3, USERS4 and USERS5.
> At the command line, type USERS1 and hit return, to see if it's been set to a value on the laptop but not on the desktop. Repeat for USERS2, USERS3, USERS4 and USERS5.
All of those are blank on both computers. It did however give me another idea. I can go to Tools>Inquiry>Set Variable, enter * and get a list of all variables on both computers and print them out to compare. First I will have to install the printer drivers on the desktop.
Thanks, James
The LiSP files must be loaded first.
This is usually done behind the scenes in the menu code so you might not realize it.
If the file is call LISPTEST.LSP
at your command line type:
(load c:lisptest.lsp)
now you should be able to type LISPTEST (or what ever the name is inside the code, it could be different)
I am loading them thru Tools>Load Application in the pull down menu. It's working on the laptop but on the desktop it says the file was "successfully loaded" but then when I type in the lisp routine in the command line, I get the error.
The laptop will run any of them without any problem from the command line or from the add-on menu I created.
James
> I am loading them thru Tools>Load Application in the pull down menu. It's working on the laptop but on the desktop it says the file was "successfully loaded" but then when I type in the lisp routine in the command line, I get the error.
If you post the AutoLISP file here, maybe something will jump out for us. (Locate the file, open it in a text editor, and copy/paste the contents into your post.)
There are some different versions of LISP that don't run on all CAD platforms, without additional support files. It could be an issue with that.
I don't have an answer for you, but I have a suggestion on how to get more help. Google your error statement, and you will find that it is rather common. It's causes, are many, and varied, but seem to revolve around some variable that is missing. To find out what the variable is you might follow the instructions in this
LISP Blog.
I bookmarked that article but it will have to wait until I have more time.
Thanks,
James
Autocad 2000 hardwarelock
Hi. I tried to instal a Autocad map 2000, but it dosen't want to see the hardwarelock. Can be the hardwarelock broken (damage)?
A friend gave it to me to help me to use a original soft in my first step in this my new carrier, and i am ashame that i haven't started yet.