CadLib Introduction

CadLib is a .NET DXF 3D read/create/write/view library featuring (DXF is a file format for exchanging CAD files defined by AutoCad):
  • Reading ascii and binary DXF files (DXF versions 12, 13 and 14).
  • Creating and writing ascii and binary DXF files (DXF versions 12, 13 and 14) from code.
  • Viewing ascii and binary DXF files (3d wire frames drawn with GDI+).
  • Utility class for export to .bmp/.jpeg/.png/.tiff/.gif
  • Both 2D and 3D are supported
  • Export to PDF, PostScript, SVG.
  • Read compressed dxf files (zip, tar, bz2, gz).
See the CadLib.chm file for technical documentation.

E-mail: wout@woutware.com for support, questions and suggestions.

Website: www.woutware.com

License

A license is needed per developer that develops with the library. Use of the library in applications is royalty free. Packaging the library as part of another library is not royalty free.

CadLib binaries that are needed runtime

  • CadLib.dll (Cad library, Wout Ware)
  • CadLibLicense.dll (Cad library license)
  • FormsUtils.dll (Windows Forms utilities, Wout Ware (free))
  • ICSharpCode.SharpZipLib.dll (Zip library, open source)
  • Sharp3D.Math.dll (Sharp3D math library, open source)

Example executables

The zip file contains a few example programs. The sources for these programs can be found in the examples directory.
  • DxfViewExample.exe

    Usage: DxfViewExample

    This is a sample application for viewing dxf files.

  • DxfExport.exe

    Usage: DxfExport [png|tiff|jpeg|bmp|gif|pdf]

    This is a console application for exporting a dxf file to several image types/pdf.

  • DxfWriteTest.exe

    This is a console application that creates a few sample dxf files in both ascii as well as binary format. Look at the source code for details about what is written to these files.