first time poster here.
I'm building a standalone application in C# where I can drop a set of .dwg's and select which .lsp files I want to run on that set. I can figure out how to open a dwg, load a .lsp file, save the dwg and close it.
What I can't figure out is how do I WAIT for said .lsp file to finish before moving on to the next .dwg.