.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD 2014 VB.NET open drawing text issue

4 REPLIES 4
Reply
Message 1 of 5
ced_abitat
749 Views, 4 Replies

AutoCAD 2014 VB.NET open drawing text issue

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

 

4 REPLIES 4
Message 2 of 5
Keith.Brown
in reply to: ced_abitat

This works for me.

 

Imports Autodesk.AutoCAD.ApplicationServices

.
.
.

Dim documentCollection As DocumentCollection = Application.DocumentManager DocumentCollectionExtension.Open(documentCollection, filePath, False)
Message 3 of 5
ced_abitat
in reply to: Keith.Brown

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

Message 4 of 5
ced_abitat
in reply to: ced_abitat

Hi another info. If I use AutoCAD 2015 the code work fine

Any idea?

Regards

Matteo

Message 5 of 5
Anonymous
in reply to: ced_abitat

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:

  1. Turn on “Use Managed Compatibility Mode” via Tools –> Options –> Debugging.
  2. Turn on “Enable native code debugging” from Project –> Properties –> Debug.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost