This project has moved. For the latest updates, please go here.

Reg. Remove Entity From DXF Document

Sep 25, 2013 at 1:17 PM

Can anyone please tell me how to remove the Entities from the DXF Document

Example : Suppose I have added the Line so I have its object so its object will be useful to remove that entity from the Document...

And if removing entities is not possible then is there any workaround to do this task ?
Sep 25, 2013 at 6:24 PM
Yes, sure you can remove entities from a document. There are two methods for this task:
public bool RemoveEntity(EntityObject entity)
public void RemoveEntity(IEnumerable<EntityObject> entities)
Also, not only you can remove entities but table objects too; like layers, blocks, …

Sep 26, 2013 at 6:08 AM
Thanks for the reply....
  • Can you tell me that the function which you have mentioned, where this function is in the SOURCE CODE category ?
Sep 26, 2013 at 6:16 PM
Those two methods are part of the DxfDocument class that you can find in the DxfDocument.cs file under the netDxf folder.