How to spot the difference of two AutoCad drawings (DWG)
How to spot the difference of two AutoCad drawings (DWG)
Leave feedback
On this page
It is highly difficult to see the difference of two AutoCad drawings (DWG files). Simultaneously, more and more people are in need to do it, especially nowadays, when lots of employee works remotely. Luckily, with GroupDocs.Comparison library you can easily compare two AutoCad drawings (DWG files) as well lots of other supported file formats
How to Compare AutoCad drawings (DWG files)
Just follow next steps to compare two or more of them:
Create new instance of Comparer class with source file path or stream as an argument
Call add method adding target document path or stream to be compared with the source one
Call compare method to compare files and save the result document
Here is Java code that demonstrate steps described above:
The same thing you can do in Kotlin:
Here are examples of source, target and result documents:
Source AutoCad drawing (DWG files)
Target AutoCad drawing (DWG files)
Result PDF document
How to use additional comparison options
GroupDocs.Comparison API provides lots of additional options to be used to customize not only comparison process but also the result file. Below are described just a few of them. For more details go through the documentation
Using custom change style
You can easily customize changes styles by changing its colors or other parameters:
Here is code example for Java:
In Kotlin it works the same way:
Disabling highlighting some types of changes
There are special options to disable detecting some types of change, as an example, below is shown how to avoid showing inserted parts of drawing file
Here is code example for Java:
The same you can do in Kotlin application:
Get a Free API License
Lots 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 AutoCad drawings (DWG files) using GroupDocs.Comparison library. It is very easy to embed the library into 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.