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

Different ways to get the same object?

0 REPLIES 0
Reply
Message 1 of 1
LanKhuong
201 Views, 0 Replies

Different ways to get the same object?

Hi all,

I'm start programing with ACAD.NET using VB2005. But the vast framework confuses me. Can somebody tell me the different between these statements:

Dim curdb As AutoCAD.DatabaseServices.Database = AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database

and

Dim curdb As AutoCAD.DatabaseServices.Database = AutoCAD.DatabaseServices.HostApplicationServices.WorkingDatabase

or

Dim tm As Autodesk.AutoCAD.DatabaseServices.TransactionManager = curdb.TransactionManager

and

Dim tm As Autodesk.AutoCAD.ApplicationServices.TransactionManager = curdb.TransactionManager

Are they the same object ?

Thanks,
Alan
0 REPLIES 0

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