You should be able to use the document manager for this:
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
Check out this post.
You should be able to use the document manager for this:
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
Check out this post.