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

MANIPULATE TEXT ON DRAWING -- Seeking easiest way possible

0 REPLIES 0
Reply
Message 1 of 1
lbayas
177 Views, 0 Replies

MANIPULATE TEXT ON DRAWING -- Seeking easiest way possible

Here is what I have so far with regards to manipulating the text fields in an autocad drawing. Is there an easy way to
(1) get all the text fields on a drawing and (2) manipulate them.

Below I have the code I have so far (C#). I am iterating through all the entities...however, I am not sure if the entities I am looking through have the text fields in AutoCAD drawings. Can someone make it clear if I can manipulate the values as illustrated below or is there another (an easier way) thanks.



AcadModelSpace mspace = gbl_app.ActiveDocument.ModelSpace;

foreach (AcadEntity entity in mspace)
{
if(entity.EntityName.ToString().CompareTo("AcDbBlockReference") == 0)
{

//Can I manipulate


}
}
0 REPLIES 0

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