Remove of an entity

How to remove of an entity

Issue: How to remove of an entity (CADNET-3).

Tips: To remove an entity, select the required entity and use the RemoveEntityAt method in the drawing.

Example:

for (int i = 0; i < cadImage.Entities.Length; i++)
{
CadBaseEntity baseEntity = cadImage.Entities[i];
if (baseEntity.GetType() == typeof(CadArc))
{
CadArc arc = (CadArc)baseEntity;
if (arc.CenterPoint.X > 1e10)
{
cadImage.RemoveEntityAt(i);
// OR cadImage.RemoveEntity(baseEntity);
i--;
}
}
}
cadImage.UpdateSize();