# dxflib Troubleshooting and Problems

**URL:** http://forum.qcad.org/c/dxflib/dxflib-troubleshooting-and-problems/36.md

[Latest](http://forum.qcad.org/latest.md) · [Categories](http://forum.qcad.org/categories.md) · [Tags](http://forum.qcad.org/tags.md)

---

## [Seeking Assistance with dxflib Library Issues](http://forum.qcad.org/t/seeking-assistance-with-dxflib-library-issues/8928)

<div class="topic-metadata">

**Author:** [@yan](http://forum.qcad.org/u/yan)\
**Replies:** 12\
**Last updated:** [August 7, 2024, 8:30am UTC](http://forum.qcad.org/t/seeking-assistance-with-dxflib-library-issues/8928 "2024-08-07T08:30:13Z")

</div>

I’ve been experiencing issues with the export of filled patterns in DXF files using dxflib. The patterns are not displaying correctly in the recipient CAD software, and I am at a loss as to how to resolve this problem. I…

---

## [fail to open dxf by autocad2021](http://forum.qcad.org/t/fail-to-open-dxf-by-autocad2021/7473)

<div class="topic-metadata">

**Author:** [@liudong](http://forum.qcad.org/u/liudong)\
**Replies:** 0\
**Last updated:** [July 13, 2022, 7:14am UTC](http://forum.qcad.org/t/fail-to-open-dxf-by-autocad2021/7473 "2022-07-13T07:14:20Z")

</div>

I generated a dxf file writen by dxflib, then open it with AutoCDA 2021 but failed. the error report as bellow: Bad handle 26: already in use The following error was encountered while reading in LAYOUT starting at li…

---

## [fail to create vertical linear dimension](http://forum.qcad.org/t/fail-to-create-vertical-linear-dimension/6579)

<div class="topic-metadata">

**Author:** [@calvin](http://forum.qcad.org/u/calvin)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 6:00am UTC](http://forum.qcad.org/t/fail-to-create-vertical-linear-dimension/6579 "2021-06-07T06:00:48Z")

</div>

hi all, I am struggling to creat vertical dimension on my DXF, everytime dxflib create the horizontal type for me. Can any one give me an example of create vertical type dimesnion? thanks DL\_DimensionData, the par…

---

## [LWPOLYLINE not following spec strictly](http://forum.qcad.org/t/lwpolyline-not-following-spec-strictly/3326)

<div class="topic-metadata">

**Author:** [@dvlierop](http://forum.qcad.org/u/dvlierop)\
**Replies:** 2\
**Last updated:** [June 21, 2017, 8:14pm UTC](http://forum.qcad.org/t/lwpolyline-not-following-spec-strictly/3326 "2017-06-21T20:14:09Z")

</div>

FreeCAD exports a R11 file with a polyline, having (x, y, z) coordinates. When I convert this file to a R15 using QCAD, then I get a lwpolyline, having also (x, y, z) coordinates. However, the z coordinate is not defined…

---

## [Inconsistent line termination between Linux and DOS](http://forum.qcad.org/t/inconsistent-line-termination-between-linux-and-dos/2475)

<div class="topic-metadata">

**Author:** [@legodwin](http://forum.qcad.org/u/legodwin)\
**Replies:** 0\
**Last updated:** [January 12, 2016, 8:02pm UTC](http://forum.qcad.org/t/inconsistent-line-termination-between-linux-and-dos/2475 "2016-01-12T20:02:25Z")

</div>

I have a CAM program that refuses to read dxf files created by QCad on Linux. I was able to correct the issue by running “dos2unix --u2d” on the Linux-created file to change the line endings from to for DOS. Since DX…

---

## [dxflib testing](http://forum.qcad.org/t/dxflib-testing/2372)

<div class="topic-metadata">

**Author:** [@rol51dd](http://forum.qcad.org/u/rol51dd)\
**Replies:** 2\
**Last updated:** [November 16, 2015, 9:11pm UTC](http://forum.qcad.org/t/dxflib-testing/2372 "2015-11-16T21:11:27Z")

</div>

Hello, For testing dxflib I have download the actual dxflib-3.7.5-src paket. When ich use Qt Creator (3.0.1) for compiling (test.pro), then doesn’t exist in the paket the named entry “tableLineTypes” and “writeLintType…

---

## [Too many blocks displayed](http://forum.qcad.org/t/too-many-blocks-displayed/1809)

<div class="topic-metadata">

**Author:** [@rori](http://forum.qcad.org/u/rori)\
**Replies:** 4\
**Last updated:** [December 4, 2014, 3:46pm UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809 "2014-12-04T15:46:19Z")

</div>

Hi I have a problem with a block, which is shown in my software, although it clearly does not fit into the drawing. It is - correctly - not displayed in QCAD and other DXF reading programs. But in the Entities Section…

---

## [dxflib 3.3.4 bugs](http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407)

<div class="topic-metadata">

**Author:** [@joose](http://forum.qcad.org/u/joose)\
**Replies:** 1\
**Last updated:** [April 3, 2014, 8:22am UTC](http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407 "2014-04-03T08:22:23Z")

</div>

Hi This document dxflib334/test/myfile.dxf is invalid, the first error is that the line break is defined as “\\n” when it should be “\\r\\n”, using a hex editor to change the 0A 0D0A and got the attached myfile.dxf: https…

---

## [LWPOLYLINE elevation value not read](http://forum.qcad.org/t/lwpolyline-elevation-value-not-read/257)

<div class="topic-metadata">

**Author:** [@Aranda](http://forum.qcad.org/u/Aranda)\
**Replies:** 2\
**Last updated:** [April 24, 2013, 11:22am UTC](http://forum.qcad.org/t/lwpolyline-elevation-value-not-read/257 "2013-04-24T11:22:22Z")

</div>

Hi, I also submitted a bug for this but I thought I should post here so other uses may benefit. I was able to fix this bug by changing the DL\_Dxf::addPolyline() method. The DXF specification on LWPOLYLINE (http://www.au…

---

## [DxfImporter registration](http://forum.qcad.org/t/dxfimporter-registration/1017)

<div class="topic-metadata">

**Author:** [@antoniolc](http://forum.qcad.org/u/antoniolc)\
**Replies:** 1\
**Last updated:** [January 22, 2013, 7:03pm UTC](http://forum.qcad.org/t/dxfimporter-registration/1017 "2013-01-22T19:03:09Z")

</div>

Hello, I cannot import/export dxf files using QCad3 version, in open or save dialogs no formats appear. I noticed that line RDxfImporter.registerFileImporter() on DxfImporter.js was disabled, and on ImportExport.pro wa…

---

## [The Number of Layers is a matter of dispute](http://forum.qcad.org/t/the-number-of-layers-is-a-matter-of-dispute/957)

<div class="topic-metadata">

**Author:** [@Cambridge\_Ray](http://forum.qcad.org/u/Cambridge_Ray)\
**Replies:** 1\
**Last updated:** [October 29, 2012, 7:52pm UTC](http://forum.qcad.org/t/the-number-of-layers-is-a-matter-of-dispute/957 "2012-10-29T19:52:36Z")

</div>

Please notice the attached files. Different applications report different number of layers. In my experience, dxflib (and QCAD?) handle layers correctly, provided that they are named. TIA, -RFH Incorrect Number of La…

---

## [Does dxflib retrieve TEXT?](http://forum.qcad.org/t/does-dxflib-retrieve-text/927)

<div class="topic-metadata">

**Author:** [@Cambridge\_Ray](http://forum.qcad.org/u/Cambridge_Ray)\
**Replies:** 1\
**Last updated:** [October 3, 2012, 6:28pm UTC](http://forum.qcad.org/t/does-dxflib-retrieve-text/927 "2012-10-03T18:28:56Z")

</div>

dxflib Version 2.5.0 I have tried the test application that is included in the distribution with FIVE different DXF files. All of them contain one string (“Hello World!”). The 5 files have the following versions: Hell…

---

## [DXF written by dxflib 2.5.0.0-1 can't be read by TrueView](http://forum.qcad.org/t/dxf-written-by-dxflib-2-5-0-0-1-cant-be-read-by-trueview/688)

<div class="topic-metadata">

**Author:** [@kas969](http://forum.qcad.org/u/kas969)\
**Replies:** 0\
**Last updated:** [February 17, 2012, 10:42am UTC](http://forum.qcad.org/t/dxf-written-by-dxflib-2-5-0-0-1-cant-be-read-by-trueview/688 "2012-02-17T10:42:47Z")

</div>

Title says it. Although SolidWorks eDrawings 2012 can read DXF written by dxflib correctly, TrueView comes up with an error while reading TEXT: The following error was encountered while reading in TEXT starting at line…

---

## [Spline weights are not read from DXF file.](http://forum.qcad.org/t/spline-weights-are-not-read-from-dxf-file/583)

<div class="topic-metadata">

**Author:** [@beding](http://forum.qcad.org/u/beding)\
**Replies:** 1\
**Last updated:** [November 27, 2011, 10:04pm UTC](http://forum.qcad.org/t/spline-weights-are-not-read-from-dxf-file/583 "2011-11-27T22:04:28Z")

</div>

Why are they not read? Can you tell me ho to add code to read the weights? Regards, Bert

---

## [Does anyone have code to convert splines into lines/arcs ?](http://forum.qcad.org/t/does-anyone-have-code-to-convert-splines-into-lines-arcs/585)

<div class="topic-metadata">

**Author:** [@beding](http://forum.qcad.org/u/beding)\
**Replies:** 0\
**Last updated:** [November 9, 2011, 5:40pm UTC](http://forum.qcad.org/t/does-anyone-have-code-to-convert-splines-into-lines-arcs/585 "2011-11-09T17:40:44Z")

</div>

Does anyone have code to convert splines into lines/arcs ?

---

## [Ubuntu LTS 10.04 Compile Issue](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496)

<div class="topic-metadata">

**Author:** [@ozykiss](http://forum.qcad.org/u/ozykiss)\
**Replies:** 3\
**Last updated:** [August 18, 2011, 1:17am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496 "2011-08-18T01:17:56Z")

</div>

Using the build script I get this. Building libdxf.a failed The reason why I am compiling from source is : The elipse function does not produce proper code for use in Autocad or dxf to gcode and is just a mess. …

---

## [compiling problem x86\_64](http://forum.qcad.org/t/compiling-problem-x86-64/284)

<div class="topic-metadata">

**Author:** [@johannes911](http://forum.qcad.org/u/johannes911)\
**Replies:** 4\
**Last updated:** [April 18, 2011, 9:22pm UTC](http://forum.qcad.org/t/compiling-problem-x86-64/284 "2011-04-18T21:22:07Z")

</div>

Hello to all, I try to compile qcad but the first part stops with error: src/dl\_writer.h: In member function ‘void DL\_Writer::entityAttributes(const DL\_Attributes&) const’: src/dl\_writer.h:337: error: ‘strcasecmp’ was…

---

## [Splines, reading and converting to polylines ?](http://forum.qcad.org/t/splines-reading-and-converting-to-polylines/432)

<div class="topic-metadata">

**Author:** [@beding](http://forum.qcad.org/u/beding)\
**Replies:** 0\
**Last updated:** [November 14, 2010, 6:21pm UTC](http://forum.qcad.org/t/splines-reading-and-converting-to-polylines/432 "2010-11-14T18:21:56Z")

</div>

Does anybody have an algorithm to read splines and convert them to line pieces? Or better, convert them to ARC’s with linepieces?

---

## [DXFLIB Reads too many Items.](http://forum.qcad.org/t/dxflib-reads-too-many-items/431)

<div class="topic-metadata">

**Author:** [@beding](http://forum.qcad.org/u/beding)\
**Replies:** 2\
**Last updated:** [November 14, 2010, 6:17pm UTC](http://forum.qcad.org/t/dxflib-reads-too-many-items/431 "2010-11-14T18:17:40Z")

</div>

When I read some DXF files, e.g. created by ACAD, i seem much more objects than shown. I expect some objects are stored but no longer in use, how can i see that?

---

## [splines and fit points...](http://forum.qcad.org/t/splines-and-fit-points/378)

<div class="topic-metadata">

**Author:** [@PerfiduS](http://forum.qcad.org/u/PerfiduS)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 7:47am UTC](http://forum.qcad.org/t/splines-and-fit-points/378 "2010-04-30T07:47:52Z")

</div>

Hello, I’m trying the mighty dxflib in one of my project. I’ve a problem with Spline defined with Fit Points, and without Control Points.. the parser does not read the FitPoints. And then, if I read the Fit Points wha…

---

## [I got \*2 scale](http://forum.qcad.org/t/i-got-2-scale/321)

<div class="topic-metadata">

**Author:** [@levente](http://forum.qcad.org/u/levente)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 4:39pm UTC](http://forum.qcad.org/t/i-got-2-scale/321 "2009-09-20T16:39:47Z")

</div>

Hi, I am writing a dxf2pcb file converter, and with some files, I get twice as large output as my original DXF. Is there any hack inside that encodes a scale or something inside the DXF? If so, how can I read it back wi…

---

## [incorrect #define in DL\_CODES.h](http://forum.qcad.org/t/incorrect-define-in-dl-codes-h/308)

<div class="topic-metadata">

**Author:** [@bobmcgee](http://forum.qcad.org/u/bobmcgee)\
**Replies:** 0\
**Last updated:** [August 7, 2009, 6:36pm UTC](http://forum.qcad.org/t/incorrect-define-in-dl-codes-h/308 "2009-08-07T18:36:01Z")

</div>

\#define POLYLINE3D 0x80 should be 0x08

---

## [Can't reading POLYLINE correctly](http://forum.qcad.org/t/cant-reading-polyline-correctly/211)

<div class="topic-metadata">

**Author:** [@Rex](http://forum.qcad.org/u/Rex)\
**Replies:** 4\
**Last updated:** [July 16, 2009, 7:02pm UTC](http://forum.qcad.org/t/cant-reading-polyline-correctly/211 "2009-07-16T19:02:19Z")

</div>

Firstly, thank you for this wonderful DXF parsing library! I’m facing a problem when I read a POLYLINE entity. I have a file which contains a polygon mesh. It has four vertexes(1, 2, 3, 4) and three faces(face 1 contain…

---

## [Quick dxf format question](http://forum.qcad.org/t/quick-dxf-format-question/299)

<div class="topic-metadata">

**Author:** [@bobmcgee](http://forum.qcad.org/u/bobmcgee)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 2:40pm UTC](http://forum.qcad.org/t/quick-dxf-format-question/299 "2009-07-16T14:40:57Z")

</div>

What do these two lines mean: 71 Polygon mesh M vertex count (optional; default = 0) 72 Polygon mesh N vertex count (optional; default = 0) It is under the polyline entity definition at this site: http://www.auto…

---

## [compiling problem](http://forum.qcad.org/t/compiling-problem/206)

<div class="topic-metadata">

**Author:** [@monkey\_ph.d](http://forum.qcad.org/u/monkey_ph.d)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 12:29pm UTC](http://forum.qcad.org/t/compiling-problem/206 "2009-03-10T12:29:27Z")

</div>

hello, i can’t compile the libs on my 64bit Linux system. gcc 4.3.2 glibc 2.8.3 configure and make depend without a failure and then make fails with following: In file included from src/dl\_writer\_ascii.h:35, from sr…

---

## [lire un polyline](http://forum.qcad.org/t/lire-un-polyline/235)

<div class="topic-metadata">

**Author:** [@torreto](http://forum.qcad.org/u/torreto)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 10:14am UTC](http://forum.qcad.org/t/lire-un-polyline/235 "2009-01-26T10:14:24Z")

</div>

Bonjour, Ma société, NT2I, travaille actuellement avec votre librairie, et j’ai quelques problèmes avec la lecture de polylines. Lorsqu’il s’agit de polylines simple comme une succession de droites, je n’ai aucun probl…

---

## [Saving POLYLINE vertices](http://forum.qcad.org/t/saving-polyline-vertices/195)

<div class="topic-metadata">

**Author:** [@Aranda](http://forum.qcad.org/u/Aranda)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 9:02am UTC](http://forum.qcad.org/t/saving-polyline-vertices/195 "2008-09-17T09:02:56Z")

</div>

Hi, first up, thankyou for an excellent DXF parsing library. I am currently investigating it’s use to load and save DXF files with POLYLINE being the main entity I am concerned with. Most of the POLYLINE entities i’ve e…

---

## [About the dxflib Troubleshooting and Problems category](http://forum.qcad.org/t/about-the-dxflib-troubleshooting-and-problems-category/38)

<div class="topic-metadata">

**Author:** [@system](http://forum.qcad.org/u/system)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 7:31pm UTC](http://forum.qcad.org/t/about-the-dxflib-troubleshooting-and-problems-category/38 "2007-09-14T19:31:09Z")

</div>

If you are having problems with dxflib, post here. Please report bugs here.

---

## [Hatch Edge](http://forum.qcad.org/t/hatch-edge/95)

<div class="topic-metadata">

**Author:** [@pricecreations](http://forum.qcad.org/u/pricecreations)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 7:31pm UTC](http://forum.qcad.org/t/hatch-edge/95 "2007-09-14T19:31:09Z")

</div>

How does the hatch edge work? I notice that some of the code is commented out for the polyline hatch edge. When I uncomment it, it pulls in some data, but assignes the type to arc? I am very confused. can anyone help…
