Reg. Remove Entity From DXF Document

Sep 25, 2013 at 12:17 PM
Hi,

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 ?
Coordinator
Sep 25, 2013 at 5:24 PM
Yes, sure you can remove entities from a document. There are two methods for this task:
public bool RemoveEntity(EntityObject entity)
and
public void RemoveEntity(IEnumerable<EntityObject> entities)
Also, not only you can remove entities but table objects too; like layers, blocks, …

Daniel
Sep 26, 2013 at 5: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 ?
Coordinator
Sep 26, 2013 at 5:16 PM
Those two methods are part of the DxfDocument class that you can find in the DxfDocument.cs file under the netDxf folder.

Daniel