Message 1 of 2
DocumentManager.CurrentDocument vs. DocumentManager.MdiActiveDocument
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In most of the sample code I've encountered using AutoCAD and Civil 3D the document is gotten using the MdiActiveDocument.
There is also a property for CurrentDocument that appears less often. I can't even find it used on Kean's blog, but it does show up in other's code here in the forum.
Does anyone know the difference?
It feels like when AutoCAD was SDI only the CurrentDocument was used and to support MDI the MdiActiveDocument was used to be able to interact between several documents. I've run into a bugs and Autodesk is using CurrentDocument in the Civil 3D API and I think they should be using MdiActiveDocument instead.
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni