Merge Combine Diagram
Contents
[
Hide
]
Possible Usage Scenarios
Aspose.Diagram allows you to combine two visio files to one. Aspose.Diagram for .NET API has the Diagram class that represents a Visio drawing. Using the method Combine in Diagram class to combine diagrams.
Sample Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_Shapes(); | |
// Load a Visio diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
// Load another Visio diagram | |
Diagram diagram2 = new Diagram(Drawing2.vsdx"); | |
diagram2.Combine(diagram); | |
// Save the new Visio | |
newDiagram.Save(dataDir + "out.vsdx", SaveFileFormat.VSDX); |