Questions tagged [dxflib]

dxflib is an open source C++ library mainly for parsing DXFTM files. QCAD, CAM Expert and vec2web all use dxflib to import DXF files. dxflib can also write DXF files, but you need to have good knowledge of the DXF format to produce valid output.

6 questions
2
votes
2 answers

Dxf : how to know which layers to show?

I have to parse dxf files to transform it to images in .net. I used DxfLib (https://github.com/mkernel/DXFLib). I have a probleme with layers : I have 3 layers and only one need to be shown (I uploaded my file in some dxf viewer and they only show…
ROCHEDY
  • 85
  • 11
1
vote
0 answers

How to parse DXF hatch by means of dxflib

I am using dxflib in order to parse DXF files. I have implemented the class DL_CreationAdapter class EntityHandler : public DL_CreationAdapter { public: /** Called for every hatch entity. */ void addHatch(const DL_HatchData& data); /**…
Nick
  • 10,309
  • 21
  • 97
  • 201
0
votes
0 answers

INSERT functionality in dxflib is not working

I am testing out dxflib and have run into a problem. In the BLOCKS section, I tried to create a BLOCK of entities, but this fails to load in AutoCAD. It loads fine in LibreCAD and decaffViewer. Anyone out there using dxflib who can lend an assist?…
Bill H
  • 26
  • 4
0
votes
0 answers

Fill a solid circle with QCAD dxflib

I use QCAD C++ dxflib to create dxf files. I can create circles, but I cannot fill them with a solid hatch. I cannot figure it out from the examples. Any idea?
Stefano Piovesan
  • 1,185
  • 3
  • 19
  • 37
0
votes
0 answers

Is there a way to manually calculate entity total length from a dxf file?

I need total length and width of whole sheet Like below Length - 602 width - 938 i checked with DXF file format reference document i didn't got any clue. can anyone knows about this calculation or code. 0 SECTION 2 HEADER 9 $ACADVER …
0
votes
2 answers

ezdxf how to extract the tags associated with text in the block layout

How to extract the tag associated with the text value from dxf block layout. Here is a screenshot: For example, TITLE is the header that comes as part of drawing format layout, DESC is the text tag associated with the TITLE Content "BASE". How can…
Usercad
  • 1
  • 2