Another SCRIPT befuddlement question

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been writing and using Autocad scripts with no problems for years, I can usually figure out how to get it to do what I want but this time I am stumped. This is what the script in question does.
1. opens a drawing.
2. loads & runs a lisp routine.
3. opens next drawing in script and so on.
After it runs and closes the last drawing it returns to the drawing I launched the script from but then STOPS, it will not do any command after it returns to the original drawing, it makes no sense. At first I thought the original drawing was not active but after the script runs I can type right in the command line of the starting drawing with no mouse clicking, so it is active without a doubt.
Here's the script file:
open C:\drawings\drawing1.dwg
(load "stuff.lsp") (stuff) close
open C:\drawings\drawing2.dwg
(load "stuff.lsp") (stuff) close
open C:\drawings\drawing3.dwg
(load "stuff.lsp") (stuff) close
(princ "this will not print in the drawing that launched the script which is active")
I really like to know how technically its possible for the script routine ran from 1 drawing to open and do stuff dozens of other drawings and then upon returning the drawing that launched the script, its like NOPE, not going to continue.
Thanks for looking, any help would be appreciated.