dxflib Programmer’s Guide

dxflib is a C++ library for reading and writing DXF files. When reading DXF files, dxflib parses the file and calls functions that you define in your own C++ class for adding entities, layers, ..Please note that dxflib does not store any entities or other information for you. It only passes the supported entities and other objects found in the DXF file to your C++ class.

Using dxflib to read DXF files doesn’t require any knowlege of the DXF format. However, it’s still an advantage to know the basics about entities, attributes, layers and blocks. To write DXF files with dxflib you definitely need an idea of how a DXF file is organized. dxflib does not depend on any exotic other libraries, just the standard C / C++ libraries

Unix / Linux
Under Unix and Linux Systems, compiling dxflib is a simple standard procedure:
./configure
make
This creates the file ‘./lib/dxflib.a’ . To compile a dynamic version of dxflib, run ‘make shared’ instead of ‘make’ . This will create the file ‘./lib/libdxf.so.2.0.x.x’ and the link ‘./lib/libdxf.so’ that points to ‘./lib/libdxf.so.2.0.x.x’ . Instead of running ‘make install’, you can also copy the header files into a header directory of your choice and copy the library files into a library directory of your choice.

Windows
There are many different ways to compile dxflib under Windows. You can use Microsoft’s Visual C++ compiler, Borland’s C++ command line tools, gcc and many other compilers.
For this manual, only the process of compiling dxflib using cygwin [CYGWIN] and the gcc compiler from the MinGW32 package is shown:
./configure
MinGW32-make

Get pdf dxflib Programmer’s Guide

Related Searches: , , , ,

Comments

Leave a Reply