Convert Database to AxDbDocument

Convert Database to AxDbDocument

arcticad
Advisor Advisor
506 Views
1 Reply
Message 1 of 2

Convert Database to AxDbDocument

arcticad
Advisor
Advisor
'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)
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
507 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
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:[email protected]...
'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)
0 Likes