dxflib parses DXF files and hands you the information in the file in a comfortable manner. For example, for every line entity in the DXF file, a function called 'addLine(...)' of your own C++ class is called with as parameter the start point and end point of the line.

Note that dxflib does not do any rendering or other interpretation of the data in the drawing. This might seem straightforward for lines but quickly gets very complicated for dimensions, hatches, blocks, texts, etc. If you need to visualize the drawing to the user, dxflib will only do a small part of the job: parsing the DXF file.

One possible solution for rendering is available with QCAD (C++ libraries or scripting). QCAD can render drawings for example into widgets, bitmaps, SVG, PDF or to a printer and also offers interaction with the drawing (zooming, editing, etc.).

Depending on your exact specifications, something based on QCAD might be a better solution for you. If you can share more details of your project, I'll be happy to give you more information on the possibilities with dxflib, the QCAD C++ Libraries or QCAD scripting.

thank you for your reply, I am doing an internship, I have to do an application that can import a DXF file, and draw on, for drawing, it consiste to put equipment, and connect them

it comes to import the plan of a building (generally a building, 2D), in the form of DXF file and view the building plan in my application, then the user can put the equipment in the building plan.

the possibility of making dxf as widgets, Bitmaps, SVG, an idea seems very adapted to my situation, because the most important for me is to show the map of building, and just the viewing, if you can help me in this direction, I will be grateful, I work with widows 7

sorry for my bad english, but i hope that you can understand my Objective, thank you