External applications can't use the Managed
API at all, so either he builds his app as a
NETLOADable DLL, or uses ActiveX entirely.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
wrote in message news:5118331@discussion.autodesk.com...
Perhaps try:
Dim WDB As Database = Database.FromAcadDatabase(acadDB)
It appears that you are mixing in COM with the Managed API. This is fine, except that you are connecting to AutoCAD through COM and then trying to use the Managed API. I haven't tried that myself, so I can't say some parts would not work, but generally if you are going to use COM in an external application, I'd use that model completely thoughout your project. Mixing COM interop with Managed API makes more sense when your application is hosted by AutoCAD (loaded as a DLL with "netload"), and then use COM interop if needed for something that isn't exposed to the Managed API yet.
Make sense? Hope this helps.