Active Contributor
Posts: 26
Registered: ‎12-06-2006
Message 1 of 1 (57 Views)

MANIPULATE TEXT ON DRAWING -- Seeking easiest way possible

57 Views, 0 Replies
12-24-2006 07:50 AM
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

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.