Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
Using DiffTool to Compare Models
The DiffTool extension provides UI controls for comparing 2D and 3D models.
Examples
viewer.loadExtension('Autodesk.DiffTool')
Usage
Using the DiffTool, you can compare the differences between models in Viewer SDK. The DiffTool shows three kinds of changes to the primary model:
- Added: Shows objects that have been added to the primary model.
- Removed: Shows objects that have been removed from the primary model.
- Modified: Shows objects that have been changed in the primary model
There are three modification types:
- Geometry: The geometry data has been modified.
- Transformation: The geometry transformation has been modified.
- Attribute: One or more properties of the geometry has been modified.
Configuring DiffTool LMV extension
A list of all configuration options for the DiffTool LMV extension:
Using LMV initialization options
Examples
var config = {
availableDiffModes: ['overlay', 'sidebyside'],
diffModels: A,
primaryModels: B,
mimeType: 'application/vnd.autodesk.revit',
diffMode: 'overlay',
versionA: 'A',
versionB: 'B',
propertyFilter: { "Category1": [ "Property1", "Property2" ] }
};
viewer.loadExtension("Autodesk.DiffTool", config);
Show More