I'm trying to create a script which will be run from the title block in a project. The script will open every other drawing in the project, process the drawings and close them. After all the other drawings have been processed & closed, the script will process the title block.
The problem is that after processing all the other drawings, the script won't run the final lines in the title block dwg which called the script. This isn't an error in the script because it runs perfectly in the title block if the script doesn't open any other dwgs first.
Any help with understanding why AutoCAD does this and a work around will be greatly appreciated.