VB.NET Equivalent of VBA object ThisDrawing missing FullName
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
in AutoCAD VBA the object ThisDrawing had a property FullName which gives the full pathname to the current active drawing, this is missing at VB.NET.
I have found some code for AutoCAD2013 which is:
Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim db As Database = doc.Database
Return db.Filename
My ThisDrawing code is
Dim m_AcadDoc As Autodesk.AutoCAD.ApplicationServices.Document m_AcadDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
Return CType(Autodesk.AutoCAD.ApplicationServices.DocumentExtension.GetAcadDocument(m_AcadDoc), Autodesk.AutoCAD.Interop.AcadDocument)
Why is FullName missing from the .Net object, is there anyother way to modify the ThisDrawing object to give the property?
Regards
Howard