Skip some entities on export

How to skip some entities on export

Issue: How to skip some entities on export.

Tips: TTo do this, you can select only the entities you need by adding them to a new list and then assigning them to the drawing.

Example:

using CadImage cadImage = (CadImage)Image.Load(fileName);
CadBaseEntity[] entities = cadImage.Entities;
List<CadBaseEntity> filteredEntities = new List<CadBaseEntity>();
foreach (CadBaseEntity baseEntity in entities)
{
if (baseEntity.TypeName == CadEntityTypeName.TEXT)
{
filteredEntities.Add(baseEntity);
}
}
cadImage.Entities = filteredEntities.ToArray();