# dxflib

**URL:** http://forum.qcad.org/c/dxflib/9.md

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

---

## [About the dxflib category](http://forum.qcad.org/t/about-the-dxflib-category/11)

<div class="topic-metadata">

**Author:** [@system](http://forum.qcad.org/u/system)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [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…

---

## [Fill a solid circle with QCAD dxflib \[Solved\]](http://forum.qcad.org/t/fill-a-solid-circle-with-qcad-dxflib-solved/7785)

<div class="topic-metadata">

**Author:** [@spiovesan](http://forum.qcad.org/u/spiovesan)\
**Replies:** 8\
**Last updated:** [January 16, 2023, 6:59pm UTC](http://forum.qcad.org/t/fill-a-solid-circle-with-qcad-dxflib-solved/7785 "2023-01-16T18:59:56Z")

</div>

I use QCAD C++ dxflib to create dxf files. I can create shapes as circles, but I cannot fill them with a solid hatch. I cannot figure it out from the examples. May you help me?

---

## [question about dxf write version](http://forum.qcad.org/t/question-about-dxf-write-version/7471)

<div class="topic-metadata">

**Author:** [@liudong](http://forum.qcad.org/u/liudong)\
**Replies:** 2\
**Last updated:** [July 13, 2022, 7:50am UTC](http://forum.qcad.org/t/question-about-dxf-write-version/7471 "2022-07-13T07:50:57Z")

</div>

Hi ,Andrew: As i hnow, the dxflib only export dxfile with version of AC1015 (for AutoCAD 2000) and AC1009, is any plan to upgrade dxflib to support verison AC1032 ?

---

## [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…

---

## [license fee for commercial use of dxflib](http://forum.qcad.org/t/license-fee-for-commercial-use-of-dxflib/7436)

<div class="topic-metadata">

**Author:** [@himgkim](http://forum.qcad.org/u/himgkim)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 12:19am UTC](http://forum.qcad.org/t/license-fee-for-commercial-use-of-dxflib/7436 "2022-06-22T00:19:40Z")

</div>

Hi, I want to use dxflib because I need a parser of the dxf file. Where can I find the license price list for commercial use of dxflib ? The website only has a price list for qcad. Thanks. mgkim

---

## [how do create a link with an external image](http://forum.qcad.org/t/how-do-create-a-link-with-an-external-image/438)

<div class="topic-metadata">

**Author:** [@AndyB78](http://forum.qcad.org/u/AndyB78)\
**Replies:** 2\
**Last updated:** [April 3, 2022, 1:21am UTC](http://forum.qcad.org/t/how-do-create-a-link-with-an-external-image/438 "2022-04-03T01:21:32Z")

</div>

I tried to use the method “writeImageDef” but when I opened the dxf file with autocad the following error appears: “Unknown object type IMAGEDEF ignored”. Which are the correct step to do add a background image in a dxf…

---

## [Zvětšení obdélníku](http://forum.qcad.org/t/zvetseni-obdelniku/6802)

<div class="topic-metadata">

**Author:** [@Otakar\_Jezek](http://forum.qcad.org/u/Otakar_Jezek)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 4:24pm UTC](http://forum.qcad.org/t/zvetseni-obdelniku/6802 "2021-09-07T16:24:26Z")

</div>

Nakreslil jsem obdélník, chci jej prodloužit pomocí myši. Jak se to dělá?

---

## [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…

---

## [\[solved\] Writing XDATA accepted by QCAD/CAM](http://forum.qcad.org/t/solved-writing-xdata-accepted-by-qcad-cam/6401)

<div class="topic-metadata">

**Author:** [@weze](http://forum.qcad.org/u/weze)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 10:51am UTC](http://forum.qcad.org/t/solved-writing-xdata-accepted-by-qcad-cam/6401 "2021-03-26T10:51:35Z")

</div>

I know that the current DXF-Lib version (3.17.0) doesn’t support writing XDATA (see Storing meta-data information in DXF files. - #2 by andrew). We are using the nesting functionality of QCAD/CAM and for some extent we h…

---

## [use dxflib to copy file and delete certain entities](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258)

<div class="topic-metadata">

**Author:** [@kenr](http://forum.qcad.org/u/kenr)\
**Replies:** 2\
**Last updated:** [December 11, 2019, 3:16pm UTC](http://forum.qcad.org/t/use-dxflib-to-copy-file-and-delete-certain-entities/4258 "2019-12-11T15:16:20Z")

</div>

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

---

## [Write dimension problem](http://forum.qcad.org/t/write-dimension-problem/3412)

<div class="topic-metadata">

**Author:** [@Banana](http://forum.qcad.org/u/Banana)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 3:40am UTC](http://forum.qcad.org/t/write-dimension-problem/3412 "2017-08-16T03:40:27Z")

</div>

Hi, I need to use dxflib to write a dimension into a dxf file. How can I get a aligned dimension in z direction like this ? It’s just add dimension to a 3D solid , and I don’t how to do it use the function writeDimAli…

---

## [dxflib commercial licence](http://forum.qcad.org/t/dxflib-commercial-licence/3361)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 4\
**Last updated:** [July 7, 2017, 1:44pm UTC](http://forum.qcad.org/t/dxflib-commercial-licence/3361 "2017-07-07T13:44:48Z")

</div>

Hi, What do I get with dxflib commercial license? (https://www.ribbonsoft.com/shop/product.php?id\_product=225) Is this library being updated regularly? Kind regards, Dejan

---

## [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…

---

## [DXF example files for testing](http://forum.qcad.org/t/dxf-example-files-for-testing/3127)

<div class="topic-metadata">

**Author:** [@TStehmann](http://forum.qcad.org/u/TStehmann)\
**Replies:** 0\
**Last updated:** [January 31, 2017, 9:28am UTC](http://forum.qcad.org/t/dxf-example-files-for-testing/3127 "2017-01-31T09:28:07Z")

</div>

Hi Many years ago I used dxflib for importing DXF files. Somebody gave me a test suite for testing the imports. This test suite contained DXF files with very simple models up to more complex models and was perfect for t…

---

## [problem with arc angles](http://forum.qcad.org/t/problem-with-arc-angles/2981)

<div class="topic-metadata">

**Author:** [@Patry0t](http://forum.qcad.org/u/Patry0t)\
**Replies:** 0\
**Last updated:** [November 27, 2016, 1:08pm UTC](http://forum.qcad.org/t/problem-with-arc-angles/2981 "2016-11-27T13:08:01Z")

</div>

Dear all! I’m using opencv to fit an ellipse on a given set of points. These points are (x,y) points of an arc. I calculate the start-angle and the end-angle and draw an ellipse on it from angle1 to angle2. It works fin…

---

## [\[solved\] Dashed and dotted lines on different layers](http://forum.qcad.org/t/solved-dashed-and-dotted-lines-on-different-layers/2974)

<div class="topic-metadata">

**Author:** [@Patry0t](http://forum.qcad.org/u/Patry0t)\
**Replies:** 13\
**Last updated:** [November 23, 2016, 3:37pm UTC](http://forum.qcad.org/t/solved-dashed-and-dotted-lines-on-different-layers/2974 "2016-11-23T15:37:25Z")

</div>

Hello everyone! I would like to ask, how can I draw a dashed (— — — —) and a dashdot (— - — - — - —) line with dxflib? Also I would like to draw them to different layers: continuous lines to layer ‘0’, dashed line to…

---

## [arc radius](http://forum.qcad.org/t/arc-radius/2690)

<div class="topic-metadata">

**Author:** [@vbmacit](http://forum.qcad.org/u/vbmacit)\
**Replies:** 0\
**Last updated:** [May 4, 2016, 5:01pm UTC](http://forum.qcad.org/t/arc-radius/2690 "2016-05-04T17:01:44Z")

</div>

hi, why sometimes acr radious comes from bigger than actaul value? I really dont understand that

---

## [DXF to PDF](http://forum.qcad.org/t/dxf-to-pdf/2545)

<div class="topic-metadata">

**Author:** [@slymn](http://forum.qcad.org/u/slymn)\
**Replies:** 3\
**Last updated:** [February 17, 2016, 7:49am UTC](http://forum.qcad.org/t/dxf-to-pdf/2545 "2016-02-17T07:49:55Z")

</div>

Hi all, I dont use QCAD, I am c++ programmer. I am developing a program. I need to convert DXFs to PDFs. For example I have 1000 piece of dxf files then I want to convert to PDF files. My program flow diagram → Only…

---

## [Writing images using dxflib](http://forum.qcad.org/t/writing-images-using-dxflib/2526)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 1\
**Last updated:** [February 16, 2016, 11:40am UTC](http://forum.qcad.org/t/writing-images-using-dxflib/2526 "2016-02-16T11:40:52Z")

</div>

How to write image (e.g. bmp) into dxf file using dxflib? Can someone provide me a minimal example? I don’t understand the interface: int writeImage(DL\_WriterA& dw, const DL\_ImageData& data, const DL\_Attributes& attri…

---

## [Custom dashed line type](http://forum.qcad.org/t/custom-dashed-line-type/2492)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 0\
**Last updated:** [January 26, 2016, 10:11am UTC](http://forum.qcad.org/t/custom-dashed-line-type/2492 "2016-01-26T10:11:37Z")

</div>

Hi all. How to make custom dashed line type using DL\_LinetypeData? How to use fields double patternLength, double\* pattern of DL\_LinetypeData? I need to generate line type similair to this one: . Thanks, Dejan

---

## [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…

---

## [Generating layouts](http://forum.qcad.org/t/generating-layouts/2418)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 0\
**Last updated:** [December 10, 2015, 2:20pm UTC](http://forum.qcad.org/t/generating-layouts/2418 "2015-12-10T14:20:37Z")

</div>

Hi all. I want to separate my entities into several layouts. How to specify in which layout does the entity belong? Is there a way to define layouts using dxflib as well? Thanks, Dejan

---

## [Printing issues](http://forum.qcad.org/t/printing-issues/2410)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 1\
**Last updated:** [December 7, 2015, 10:02am UTC](http://forum.qcad.org/t/printing-issues/2410 "2015-12-07T10:02:59Z")

</div>

Hi all. Is there some way to define document size for printing? I’ve had some issues with printing, the output was very small. I hope that I don’t have to scale all my entities. Best regards, Dejan

---

## [Understanding the MTextData](http://forum.qcad.org/t/understanding-the-mtextdata/2406)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 2\
**Last updated:** [December 7, 2015, 9:53am UTC](http://forum.qcad.org/t/understanding-the-mtextdata/2406 "2015-12-07T09:53:03Z")

</div>

Hi people. Can someone describe me how the DL\_MTextData actually works? DL\_MTextData(double ipx, double ipy, double ipz, double dirx, double diry, double dirz, double height, double width, int attachmentPoint, int d…

---

## [Control codes for MTextData font](http://forum.qcad.org/t/control-codes-for-mtextdata-font/2404)

<div class="topic-metadata">

**Author:** [@theZivkovic](http://forum.qcad.org/u/theZivkovic)\
**Replies:** 2\
**Last updated:** [December 3, 2015, 1:20pm UTC](http://forum.qcad.org/t/control-codes-for-mtextdata-font/2404 "2015-12-03T13:20:41Z")

</div>

How do I set the font to look like on the picture bellow? The previous declaration for that string in the code was: “\\Fromans|c0; FOOTING”. Thanks in advance.

---

## [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…

---

## [Reading Line color](http://forum.qcad.org/t/reading-line-color/2264)

<div class="topic-metadata">

**Author:** [@RobinCris](http://forum.qcad.org/u/RobinCris)\
**Replies:** 1\
**Last updated:** [August 31, 2015, 7:36am UTC](http://forum.qcad.org/t/reading-line-color/2264 "2015-08-31T07:36:06Z")

</div>

I am reading dxf file and I do only 2D drawings. I use polylines to draw a flat. On top of the polylines I draw lines (represent windows). Because I am missing dimension, I was looking for a way to represent the window…

---

## [reading dxf](http://forum.qcad.org/t/reading-dxf/2205)

<div class="topic-metadata">

**Author:** [@RobinCris](http://forum.qcad.org/u/RobinCris)\
**Replies:** 1\
**Last updated:** [August 18, 2015, 9:31am UTC](http://forum.qcad.org/t/reading-dxf/2205 "2015-08-18T09:31:31Z")

</div>

Hello. I am building a small automation to read dxf files. All the dxf files are made by me, so I decide their format. I can choose to use blocks instead of polylines for example) Every layer is a building floor. In…

---

## [Draw a BezierCurve in dxf](http://forum.qcad.org/t/draw-a-beziercurve-in-dxf/342)

<div class="topic-metadata">

**Author:** [@kayoot](http://forum.qcad.org/u/kayoot)\
**Replies:** 11\
**Last updated:** [August 18, 2015, 8:24am UTC](http://forum.qcad.org/t/draw-a-beziercurve-in-dxf/342 "2015-08-18T08:24:19Z")

</div>

Hello I’ve got a problem with export to dxf. I need to export bezier curve, i have coordinates of start point, end point ang control points. Unfortunately, on the dxf entiti section there is no it. Could anyone help me…

[Next page](http://forum.qcad.org/c/dxflib/9.md?page=1)
