There's no way to get an AxDbDocument for an existing Database.
You can only create new AxDbDocuments.
What need do you have for an AxDbDocument, as opposed to just using the
managed Database object, or the AcadDatabase COM wrapper?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6245432@discussion.autodesk.com...
'is it possible to convert a database to an AxDbDocument?
'the Exact opposite of the code below
Imports Autodesk.AutoCAD.Interop.Common
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime
Dim DBX As New AxDbDocument
Dim db As Database = Database.FromAcadDatabase(DBX.Database)