.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert Database to AxDbDocument

1 REPLY 1
Reply
Message 1 of 2
arcticad
329 Views, 1 Reply

Convert Database to AxDbDocument

'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))
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: arcticad

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)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost