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

MANIPULATE TEXT ON DRAWING -- Seeking easiest way possible

60 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.