Code: Select all
CADImage cadImage = CADImage.CreateImageByExtension(@"file path to file");
cadImage.LoadFromFile(@"file path to file");
CADEntityCollection entities = cadImage.Converter.Entities;
foreach (CADEntity entity in entities)
{
if (entity.EntType.ToString() == "Text")
{
// change current text value of entity to a new text value
}
}
//save to new temp .dwg file