# Some basic questions about DXF files

**URL:** <http://forum.qcad.org/t/some-basic-questions-about-dxf-files/975>\
**Category:** dxflib 'How Do I' Questions\
**Created:** [November 17, 2012, 7:08pm UTC](http://forum.qcad.org/t/some-basic-questions-about-dxf-files/975 "2012-11-17T19:08:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cambridge\_Ray](http://forum.qcad.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@Cambridge\_Ray](http://forum.qcad.org/u/Cambridge_Ray)\
**Post date:** [November 17, 2012, 7:08pm UTC](http://forum.qcad.org/t/some-basic-questions-about-dxf-files/975/1 "2012-11-17T19:08:22Z")

</div>

I am attempting to develop a “dxf2pdf” application (I guess I don’t have to tell you what it does 🙂 It is being written under Linux, but will eventually be ported to Windows.

Note on my background: Luckily, back in school I took a Master’s level CS course, called “Computer Graphics” (which I **finally** get to put to good use!). The term project was an application that shifted, scaled, rotated and displayed a simple house, hopefully in real time. Due to the limited CPU power those days, it was mainly wireframe: since the hidden segment removal was too onerous, I ended up turning it off for a good show.

In short: I am familiar with the part about the 3 geometric transforms.

Having said that, we never covered things like “edges” or “extents”. I am not fully clear on the concept of “polyline”, as used in the DXF standard. In the textbook (authored by The Father of Computer Graphics himself), there was only one kind of entity: the line segment.

(To be continued)

-Ramon

---

<div class="post-metadata">

**Author:** ![Cambridge\_Ray](http://forum.qcad.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@Cambridge\_Ray](http://forum.qcad.org/u/Cambridge_Ray)\
**Post date:** [November 17, 2012, 7:27pm UTC](http://forum.qcad.org/t/some-basic-questions-about-dxf-files/975/2 "2012-11-17T19:27:36Z")

</div>

I modified the provided “ **test** ” application so it shows more details. I would like to better understand things like:

- Polyline parameters: flags, m, n, number
- Vertex bulge

But, alas, despite having a sizable collection of DXF files. All of them have zero values in those fields (except for “flags”). Apparently those fields are not very popular, or perhaps I need a wider variety of DXF sample files.

Additionally:

- The relationship between polylines and vertices.
- Points

-RFH

---

<div class="post-metadata">

**Author:** ![Cambridge\_Ray](http://forum.qcad.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@Cambridge\_Ray](http://forum.qcad.org/u/Cambridge_Ray)\
**Post date:** [November 17, 2012, 8:02pm UTC](http://forum.qcad.org/t/some-basic-questions-about-dxf-files/975/3 "2012-11-17T20:02:11Z")

</div>

Luckily, my universe of DXF files contain limited features and hence the application will only have to deal with the most common entities:

- Lines
- Text
- Polylines
- Vertices
- 3-D Faces

Furthermore, I ignore the Z dimension and am not doing any rotation.

Please notice the results that I have so far, in the attachment.

TIA,

-RFH  
[Preliminary Results from dxf2pdf.zip](http://forum.qcad.org/uploads/short-url/n7ZyR8McO9O5HoEWeyzAL1mfzJ2.zip) (654 KB)
