Hi all,
when I open a drawing with VB.NET the text objects result hidden and not selectable. There is my code
objADoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.GetAcadDocument()
objACad = objADoc.Application
objADoc = objACad.Documents.Open(strDWG)
How I can resolve it?
Regards
Matteo
This works for me.
Imports Autodesk.AutoCAD.ApplicationServices
.
.
.
Dim documentCollection As DocumentCollection = Application.DocumentManager DocumentCollectionExtension.Open(documentCollection, filePath, False)
Hi thanks for reply. I tried your code but the result not changed.
I attach 2 images. The first is how I see if load the dwg from Autocad. The second is how I see if load the dwg using .NET API.
Regards,
Matteo
Hi another info. If I use AutoCAD 2015 the code work fine
Any idea?
Regards
Matteo
I think your problem is the same as reported here and here.
Solutions are provided in this article from Kean Walmsley:
There are two simple approaches that can be used to avoid this problem using VS2013: