CadLib 6.0 (multi-platorm) is the multi-platform version of CadLib, a .NET library to read, write and display AutoCAD DWG and DXF files. Example projects include converters to PDF, SVG and bitmaps.
For the .NET version of CadLib for Windows only, please visit https://www.woutware.com/net/cad, and download the trial version, which contains Win Forms, WPF and Open GL viewer examples.
This repository contains basic read, write and export samples for the trial version of CadLib 6.0 (multi-platorm) library.
For these applications to work you will need a trial license. The MyAppKeyPair.snk linked in the projects are not present in the repository, you should generate your own strong name key and keep it private.
-
You can generate a strong name key with the following command in the Visual Studio command prompt:
sn -k MyKeyPair.snk
-
The next step is to extract the public key file from the strong name key (which is a key pair):
sn -p MyKeyPair.snk MyPublicKey.snk
-
Display the public key token for the public key:
sn -t MyPublicKey.snk
-
Go to the project properties Signing tab (or Build -> signing in VS2022), and check the "Sign the assembly" checkbox, and choose the strong name key you created.
-
Register and get your trial license from https://www.woutware.com/SoftwareLicenses. Enter your strong name key public key token that you got at step 3.