CadLib screenshot


Required: Silverlight 5 Silverlight
Recommended: H3Viewer, an improved MS Help 3 Viewer by The Helpware Group

Latest news

May 2, 2013: Released version Added support for DWG/DXF 2013.

Sep 25, 2011: Released version Initial release..


CadLib comes with comprehensive help documentation that integrates with the Visual Studio help system. A stand-alone help 1 file (.chm) can be downloaded separately (on Windows XP the help file might need unlocking, see here). Both C# and VB sample solutions are provided. A basic viewer example is included so you can test view the DWG and DXF files you have created with the library. Also a DWG/DXF to image converter example is included and an example DWG/DXF writing program.

CadLib DWG DXF .NET Library for Silverlight 5

The CadLib Silverlight version is no longer available or being maintained. Please check out the regular .NET and .NET Core versions of CadLib.

Add CAD capabilities to your Silverlight 5 application with CadLib 4.0. CadLib makes it extremely easy to work with DWG and DXF files in C#, VB.NET or any other .NET language. This is achieved by providing you with complete type safety, comprehensive documentation and sample solutions. CadLib's rendering is high quality and easy to integrate in your own application. Display DWG and DXF files using WPF or writeable bitmap.

Example solutions written in C# show how to add more advanced features like zooming, panning and interactive creation of CAD drawings.

Below is a short list of CadLib's main features (see here for a complete list):

  • Import and export DWG files (versions 13, 14, 2000, 2004, 2007, 2010, 2013).
  • Import and export DXF files (versions 12, 13, 14, 2000, 2004, 2007, 2010, 2013).
  • Display DWG and DXF files using WPF (wireframe rendering).
  • Display DWG and DXF files using WriteableBitmap (wireframe rendering).
  • Display DWG and DXF files using XNA (supported on Windows only, hardware rendering support required).
  • Pick engine for mouse selection.
  • Export DWG and DXF files to PDF
  • Copy (clone) entities, even across DXF files
  • Both ascii and binary DXF supported
  • 100% .NET code (written in C#). All objects are exposed as .NET classes. Convenient enums are provided for all enumerations and flags.
CadLib Silverlight 3D viewer Display a DWG or DXF file in 3D wireframe using a WriteableBitmap. Supports zooming/panning/3D rotation.
CadLib Silverlight 2D viewer Display a DWG or DXF file in 2D wireframe using WPF or WriteableBitmap. Supports zooming/panning.
CadLib Silverlight door builder Interactive generation of a DWG or DXF file and display the drawing.