Autodesk ObjectARX
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
what is wrong with my code
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
539 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.ApplicationServi ces.Application.AcadApplication;
mApp.ActiveDocument.Close(true, mApp.ActiveDocument.Name);
Is any thing wrong with my code.
Regards,
Ramesh V
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.ApplicationServi
mApp.ActiveDocument.Close(true, mApp.ActiveDocument.Name);
Is any thing wrong with my code.
Regards,
Ramesh V
Re: what is wrong with my code
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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????
Re: what is wrong with my code
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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)
Re: what is wrong with my code
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: what is wrong with my code
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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


