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

how can i get the text information on the drawing

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
348 Views, 2 Replies

how can i get the text information on the drawing

i want  to get all text font , text height and text widths on the drawing

 

Dim ListFont As New List(Of String)

For Each TextStyle As AcadTextStyle In ThisDrawing.TextStyles
ListFont.Add(TextStyle.fontFile)
Next

 

i used those code can get all text font on the drawing...but i only want to get text font which were used.

 

and i dont know how to get the text height and widths on the drawing.

2 REPLIES 2
Message 2 of 3
hgasty1001
in reply to: Anonymous

Hi,

 

As the width and height can be overriden from the style, you need to open for read each text (DbText) to get its properties.

 

Gaston Nunez

 

 

Message 3 of 3
Anonymous
in reply to: hgasty1001

sorry..i have used autocad.net for 2 weeks

 

i dont know what should i do after

 

dim actext as dbtext 

 

i found it in the autocad.net develop guide 

it only has a example how to create a new textstyle

 

would u mind explain more to me thx

 

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