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: 

ADR12 API compare drawings

1 REPLY 1
Reply
Message 1 of 2
PiazzaD
406 Views, 1 Reply

ADR12 API compare drawings

Hello,

I'm trying to compare DWF files using the API. I found on the net this sample. This works in some cases, but I can't understand what "Model" means (kind of *magic* word?). Documentation says is section name (first and second). I've inspected the section but found just a Title property and the key into the Sections collectons. Neither of them works.

 

 ECompositeViewer.IAdMarkupEditor3 markupEditor = (ECompositeViewer.IAdMarkupEditor3)axCExpressViewerControl1.MarkupEditor;

ECompositeViewer.IAdComparator comparator = (ECompositeViewer.IAdComparator)markupEditor.Comparator;

 

comparator.Compare(drawing1, "Model", drawing2, "Model");

AdCommon.eCompareResultStatus status = (AdCommon.eCompareResultStatus)comparator.CompareResultStatus;

 

// Inspect sections

 

axCExpressViewerControl1.SourcePath = drawing1;

AdCommon.IAdCollection sections = (AdCommon.IAdCollection)CompositeViewer.Sections;

string sec1name = sections.get_ItemName(1);

ECompositeViewer.IAdSection sec1 = (ECompositeViewer.IAdSection)sections[1];

string sec1title = sec1.Title;

 

 

Where can I find exahustive documentation about this API?

1 REPLY 1
Message 2 of 2
herbert.he
in reply to: PiazzaD

Thank you for your question.

 

You can get ADR API reference from here.

 

Any further questions please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report