How to compare Autodesk Drawing eXchange Format Documents

Usually it is very difficult to determine changes that have been made in Autodesk DXF (Drawing eXchange Format) documents. In the same time it is highly popular issue, especially nowadays, when lots of companies have employee who works remotely. Fortunately, with GroupDocs.Comparison API you can easily compare two DXF documents as well as other supported file formats

Highlighting changes comparing Autodesk Drawing Format

The result of comparison can be saved as PDF file with highlighting changed, deleted or inserted elements. You can easily change highlighting colors so that changes will be marked differently. Default colors are:

  • Objects that were deleted – red
  • Objects that were inserted – blue
  • Objects that were changed – green

How to Compare Autodesk Drawing eXchange Format documents using GroupDocs.Comparison

To compare DXF (Autodesk Drawing eXchange Format) documents you should do next:

  1. Create new instance of Comparer class passing source document path or stream as an argument
  2. Call add method passing target document path or stream as an argument
  3. Call compare method to run the comparison process

The following Java code sample demonstrates an approach described above:

The same thing you can do in Kotlin:

Here are examples of source, target and result documents:

Source DXF (Autodesk Drawing eXchange Format) documentTarget DXF (Autodesk Drawing eXchange Format) document
Result PDF document

How to use additional comparison options

GroupDocs.Comparison library has lots of options that can be used to customize comparison process as well as the result file. Here are just a few options are shown. For more details look the documentation

Generating summary page

You can easily enable generating special page where will be shown summary information about changes in the document. Moreover, you can enable generating extended summary page to get much more detailed information.

Here is code example for Java:

The same you can do in Kotlin application:

Customizing change style

To use custom change style just configure comparer so that it will highlight changes the way you want.

Here is code example for Java:

In Kotlin it works the same way:

Get a Free API License

Most of the settings, for example generating summary page, sensitivity of comparison and so on are available only with license. You can get a free temporary license in order to use the API without evaluation limitations.

Conclusion

In this article is written about comparing DXF (Autodesk Drawing eXchange Format) documents using GroupDocs.Comparison library. The library can be easily embedded to any Java or Kotlin, desktop or web application on any platform. There are samples of using Comparison API inside web applications on GitHub page. They are free to be modified and used for comparing AutoCad drawings, photos, Excel, Word, code files, PowerPoint Presentations and other supported file formats.

For more details, options, and examples, you can go through the documentation and GitHub repository. Reach us on the forum for your queries.

Free Online App

Along with full-featured Java library we provide simple, but powerful free Apps. You are welcome to compare your DOC or DOCX, XLS or XLSX, PPT or PPTX, PDF, EML, EMLX, MSGand other documents with free to use online GroupDocs Comparison App.

See also