Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compare more than two DWF files via API?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
886 Views, 1 Reply

How to compare more than two DWF files via API?

What can be done manually via the Compare Sheets command in Design Review, I want to do programatically.  Is that possible?

 

I've seen the example using the IAdComparator and I can get two files to work, but we need more than that. I've also tried using the aggregate example in the DWFToolkit, but the file it generates won't open.

 

We're not really using the feature to compare, but to overlay, print, and discard.

 

Thanks.

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Ok, I've figured out a way of doing it.  Make a copy of the first file, compare it to the second, save the file, compare to the third, save, etc.  On each save, the copy keeps the comparison.

 

C#:

IAdMarkupEditor3 markupEditor = (IAdMarkupEditor3)axCExpressViewerControl1.MarkupEditor;
IAdComparator Comparator = (IAdComparator)markupEditor.Comparator;

File.Copy(list[0], @"C:\temp\temp.dwfx", true);

for (int i = 1; i < list.Length; ++i) {
	Comparator.Compare(@"C:\temp\temp.dwfx", "Model", list[i], "Model");
	markupEditor.Save();
}

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report