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

MANIPULATE TEXT ON DRAWING -- Seeking easiest way possible

58 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!