.NET

.NET

Reply
Member
ai0419
Posts: 3
Registered: ‎03-21-2006
Message 1 of 3 (126 Views)

System.Runtime.InteropServices.COMException No database

126 Views, 2 Replies
03-21-2006 11:57 AM
I am trying to get some block info from an Autocad drawing using vb.net.
It was working fine with autocad 2005.When we upgraded to autocad 2006, it is crashing.
The first one is having problem is in the line
Dim CurrentSpace As String
CurrentSpace = AppObj.ActiveDocument.ActiveLayout.Block.Name '
This is returning >> "*Paper_Space"

For I = 0 To AppObj.ActiveDocument.Blocks.Count – 1 ‘ERROR IS HERE ’
Where AppObj is Autodesk.AutoCAD.Interop.AcadApplication
The error is
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in DrawingIndexer.exe

Additional information: No database

If I look in the quick watch window for AppObj.ActiveDocument.Blocks this is the error
Blocks < an="" exception="" of="" ="">
Type: Autodesk.AutoCAD.Interop.Common.AcadBlocks

Can anyone tell me how to fix this error?
Thanks
Member
ai0419
Posts: 3
Registered: ‎03-21-2006
Message 2 of 3 (126 Views)

Re: System.Runtime.InteropServices.COMException No database

03-22-2006 08:12 AM in reply to: ai0419
Under quick watch for AppObj.ActiveDocument.blocks
this is the error
AppObj.ActiveDocument
error: an exception of type: System.Runtime.InteropServices.COMException occurred Autodesk.AutoCAD.Interop.Common.AcadBlocks
But AppObj.ActiveDocument.activelayout is populating under quick watch.
Member
ai0419
Posts: 3
Registered: ‎03-21-2006
Message 3 of 3 (126 Views)

Re: System.Runtime.InteropServices.COMException No database

03-28-2006 06:44 AM in reply to: ai0419
Finally I fixed the problem.It was a bug in autocad.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.