ObjectARX

ObjectARX

Reply
Active Contributor
vramesh
Posts: 38
Registered: ‎01-11-2005
Message 1 of 5 (578 Views)

what is wrong with my code

578 Views, 4 Replies
02-19-2005 06:40 AM
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
New Member
tricos
Posts: 1
Registered: ‎06-19-2006
Message 2 of 5 (578 Views)

Re: what is wrong with my code

06-19-2006 02:22 PM 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????
Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 3 of 5 (568 Views)

Re: what is wrong with my code

07-15-2010 05:49 AM 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)

Valued Mentor
caddzone
Posts: 305
Registered: ‎01-26-2005
Message 4 of 5 (555 Views)

Re: what is wrong with my code

07-16-2010 07:45 AM 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


Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 5 of 5 (508 Views)

Re: what is wrong with my code

07-25-2010 11:16 PM 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.