Discussed in #489
Originally posted by gswifort March 13, 2026
I run the DOIT command and after opening the specified document, I close the application. This leaves a dead process.
from pyrx import command, Db, Ap # noqa
DWG_PATH = ... # !!!
@command
def doit():
Ap.Application().registerOnIdleWinMsg(main)
def main():
Ap.Application().removeOnIdleWinMsg(main)
_open_doc_app_ctx(DWG_PATH)
def _open_doc_app_ctx(path) -> Ap.Document:
doc_man = Ap.DocManager()
doc_man.appContextOpenDocument(path)
return doc_man.curDocument()
```</div>
Discussed in #489
Originally posted by gswifort March 13, 2026
I run the
DOITcommand and after opening the specified document, I close the application. This leaves a dead process.