ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what is wrong with my code

4 REPLIES 4
Reply
Message 1 of 5
vramesh
784 Views, 4 Replies

what is wrong with my code

Hi,
am trying to close currently opened document using Object ARX wrappers class.
am getting following exception
-> System.Runtime.InteropServices.COMException (0x8021006F): Drawing is busy.

Here is my code.

mApp = (AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;
mApp.ActiveDocument.Close(true, mApp.ActiveDocument.Name);

Is any thing wrong with my code.

Regards,
Ramesh V
4 REPLIES 4
Message 2 of 5
tricos
in reply to: vramesh

i am having the same error. did you figure out how to get around the "drawing is busy" error or has anyone else in vb.net or c# and .net 2005????
Message 3 of 5
matus.brlit
in reply to: vramesh

I had to bump this long dead post, because I'm having the same problem and all I was able to find was same questions without answers

 

the only difference is, that I am using VB

 

(AutoCAD version Civil 2010)

Message 4 of 5
caddzone
in reply to: matus.brlit

Post in the .NET forum, and include your code because the

crystal ball was sent out to be polished.



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Message 5 of 5
matus.brlit
in reply to: matus.brlit

problem solved

 

the issue was, that my program was not running in session context, so the last drawing couldn't be closed

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost