<< Click to Display Table of Contents >> Command Line Instructions |
|
You can call DWG Diff from a command line or script and pass in filenames for the A and B drawings as well as output filenames.
The following is the command line usage:
dwgdiff.exe a="<Your A DrawingFilePath>" b="<Your B DrawingFilePath>" m=[i]mmediate | m=[w]ait | m=[s]ilent
a="<Your A DrawingFilePath>" - this is required if you are passing in variables to the command line.
b="<Your B DrawingFilePath>" - this is required if you are passing in variables to the command line.
m=[i]mmediate | m=[w]ait | m=[s]ilent - required.
opA="<Diffed Output Filename and Path A not B>" - Optional Output File.
opB="<Diffed Output Filename and Path B not A>" - Optional Output File.
opC="<Diffed Output Filename and Path Common>" - Optional Output File.
a=, b=, op=A, opB=, opC= should be quoted strings if the file paths contain spaces. They should also contain fully qualified file names with extensions.
The variable order is not important.
MODES
m=s opens drawings calculates differences and outputs any of opA, opB, or opC if any; also runs silently without the user interface being shown.
m=i will immediately calculate differences.
m=w will wait for you to click Tools>Calculate Differences once DWG Diff is open.
both m=i or m=w show the user interface.
EXAMPLES
Open two drawings and calculate the differences:
dwgdiff.exe a="c:\my a drawing.dwg" b="c:\my b drawing.dwg" m=i
Open two drawings and show the user interface and wait for you to press Tools>Calculate Differences:
dwgdiff.exe a="c:\my a drawing.dwg" b="c:\my b drawing.dwg" m=w
Open two drawings, calc diffs and write out the AnotB differences. Does not show UI.
dwgdiff.exe a="c:\my a drawing.dwg" b="c:\my b drawing.dwg" m=s opA="c:\my Output A Drawing.dwg"
Open two drawings, calc diffs and write out the AnotB, BnotA and Common drawings. Does not show UI.
dwgdiff.exe a="c:\my a drawing.dwg" b="c:\my b drawing.dwg" m=s opA="c:\my Output A Drawing.dwg" opB="c:\my Output B Drawing.dwg" opC="c:\my Output Common Drawing.dwg"