Community
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
"migliosa" <I
href="mailto:sandro.migliorini@np.ge.com">sandro.migliorini@np.ge.com>
wrote in message
href="news:f119977.-1@WebX.maYIadrTaRb">news:f119977.-1@WebX.maYIadrTaRb...
have to unload an ARX app. before to close Autocad ( otherwise I receive a
fatal error).
No problem unloading when a drawing is open; the trouble is
when no documents are opened. In that case, using
Public WithEvents ACADApp As AcadApplication
ACADApp.UnloadArx
("xxxx.arx")
I receive the following error "Failed to get the Document object".
So far, during the BeginQuit event, I trap the error, create a new doc,
unload the ARX and close, but I was looking for a more clever solution.
Thanks
Sandro