• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    Active Contributor
    Posts: 38
    Registered: ‎01-11-2005

    what is wrong with my code

    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.ApplicationServices.Application.AcadApplication;
    mApp.ActiveDocument.Close(true, mApp.ActiveDocument.Name);

    Is any thing wrong with my code.

    Regards,
    Ramesh V
    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎06-19-2006

    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????
    Please use plain text.
    Mentor
    Posts: 219
    Registered: ‎03-11-2008

    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)

    Please use plain text.
    Valued Mentor
    Posts: 305
    Registered: ‎01-26-2005

    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


    Please use plain text.
    Mentor
    Posts: 219
    Registered: ‎03-11-2008

    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

    Please use plain text.