# use dxflib to copy file and delete certain entities

**URL:** <http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258>\
**Category:** dxflib 'How Do I' Questions\
**Created:** [December 16, 2018, 7:46pm UTC](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258 "2018-12-16T19:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenr](http://forum.qcad.org/letter_avatar_proxy/v4/letter/k/59ef9b/32.png) [@kenr](http://forum.qcad.org/u/kenr)\
**Post date:** [December 16, 2018, 7:46pm UTC](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258/1 "2018-12-16T19:46:54Z")

</div>

Is there a straight forward way to copy an input dxf file to an output file while editing just certain entities?

---

<div class="post-metadata">

**Author:** ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/15013_2.png) [@andrew](http://forum.qcad.org/u/andrew)\
**Post date:** [December 17, 2018, 10:13am UTC](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258/2 "2018-12-17T10:13:33Z")

</div>

dxflib only parses / writes DXF. It does not provide any means to transform, edit, delete entities, etc.

---

<div class="post-metadata">

**Author:** ![DougVW](http://forum.qcad.org/letter_avatar_proxy/v4/letter/d/ccd318/32.png) [@DougVW](http://forum.qcad.org/u/DougVW)\
**Post date:** [December 11, 2019, 3:16pm UTC](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258/3 "2019-12-11T15:16:20Z")

</div>

It could probably be done with ezdxf. [About - ezdxf](https://ezdxf.mozman.at/pages/about.html)
