Hi again, and Happy New Year!
I'm having issues with files autoloaded via
ACADDOC.LSP getting stuck in an "Initializing..." loop when run for the first time in a new drawing.
I've only tried it with two different .lsp files so far, and both behave slightly differently. Both have "OK" and "Cancel" buttons, and the code is the same for those functons, however...
The first one (my batch plotter I've had help with on here before) will show the "Initializing..." message until "OK" or "Cancel" is pressed, and then it will disappear.
The second (an automated insertion tool for drawing border blocks) will show the "Initializing..." even when "Cancel" is pressed, or when the function has completed. It only disappears once you hit "Esc" or perform another command.
The odd thing is tht this only occurs the first time either are run in a new drawing. Also the issue doesn't occur if the files are loaded using the "load" command in
ACADDOC.LSP rather than the "autoload" command.
I've seen a few posts elsewhere that the built-in "autoload" in the
acad20XXdoc.lsp has an inherent flaw that causes this, and that Lee Mac created a new autoload.lsp which overcame these issues. I've managed to get a copy of Lee's code and added it, however I'm still having the same problem of getting stuck in a "Initializing..." loop on first run.
The loop can be exited quite easily, or I can get around it by using the "load" command - but neither of these actaully fix the issue.
Any suggestions welcomed
Cheers,
John