Customization > Automation Interface > Functions > For Configuration Management Tool Integration > Diff function (automation interface)
  
Diff function (automation interface)
Syntax:
Diff("<folder>")
Where:
<folder> is a string that specifies the folder in which the associated MDF or PKF file resides.
This function acts on a Model (Project) or Package. It compares a Model or Package with its associated MDF (Model) file, or PKF (Package) file in the specified folder.
The Diff function is asynchronous and you must ensure that the folder passed to the Diff command is not deleted until the Differencer is closed.
Examples
In this example, Package1 is differenced against an exported file in the C:\Exported Packages folder.
Set objPackage = Dictionary.Item("Package", "Package1")
Call objPackage.Diff("C:\Exported Packages")