.NET

Reply
Member
LanKhuong
Posts: 3
Registered: ‎01-20-2007
Message 1 of 1 (39 Views)

Different ways to get the same object?

39 Views, 0 Replies
06-03-2007 09:12 AM
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.