@Anonymous wrote:
... an old routine, on this site's forum, called "Nudge" from many, many years ago, I tried it out but it doesn't work. ....
It doesn't work for me either, even back in Acad2004, and even when I changed the name as suggested by BeekeeCZ. Unfortunately, I suspect you are the victim of the change(s) in website hosting or handling or whatever the issues have been, since many years ago. There was a time when some things contained between pointy brackets in code would simply disappear from the code when posted. That included [but was not limited to] the typical-for-AutoCAD defaults offered in prompts, which is why a lot of us complained to the AutoDesk people a lot about it at the time, and eventually they straightened it out, but there was a lot of faulty code left hanging around, and they didn't have any way of going back and fixing it all. If in this case content didn't disappear at the time of posting, it seems to have in the translation to the new website, or from the old NTTP system to the website-based system, or something.
Notice where the prompt says:
(prompt
"\nUse the arrows on the number keypad, S for settings, to exit..."
)
but it probably originally had a default offering in pointy brackets, saying something like:
(prompt
"\nUse the arrows on the number keypad, S for settings, <Enter> to exit..."
)
[which is why there are two spaces there*], or perhaps <Esc> or something else instead. Whatever that was is a Darwinian victim -- it didn't survive the evolution of the Forums.
It didn't happen necessarily with every instance of pointy brackets -- see the "New nudge increment value" prompt -- but I was never able to discern what specific bracketed conditions caused dropouts and what did not. Sometimes people would use pointy brackets for some reason in comments, and it could lose much more than just a single default-offering word like that, even multiple whole lines of code, and that may be the case here, but it's impossible to say what may be missing, or where, without a thorough evaluation of the operation of the command [even then, it might be difficult, depending on how much is missing].
I'm assuming you found this code in the message itself, wherever it came from, and that you copied/pasted it into a file that you loaded. If it happens to be available as a file attachment rather than [or in addition to] being in the body of a message, that version should be complete, and may work.
[* Speaking of two spaces, the current website system has its own automatic operations that have the potential to cause problems. In your .lsp file, there are two spaces there where the default offering is missing, and I copied it out of there, but when I pasted it into this message, "the system" decided I didn't really mean to have two spaces, and it removed one of them, which I had to add back in.]
Kent Cooper, AIA