Slå samman Kombinera Diagram
Contents
[
Hide
]
Möjliga användningsscenarier
Aspose.Diagram för Python via Java låter dig kombinera två visio-filer till en. Aspose.Diagram för Python via Java API har klassen Diagram som representerar en Visio ritning. Använder metodenKombinera i Diagram klass för att kombinera diagram.
Exempelkod
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
import jpype | |
import asposediagram | |
jpype.startJVM() | |
from asposediagram.api import * | |
lic = License() | |
lic.setLicense("Aspose.Total.Product.Family.lic") | |
# Load a Visio diagram | |
diagram = Diagram("Drawing1.vsdx") | |
# Load another Visio diagram | |
diagram2 = Diagram("DrawingFlowChart.vsdx") | |
diagram2.combine(diagram) | |
# save in the VSDX format | |
diagram2.save("CombineDiagram_Out.vsdx", SaveFileFormat.VSDX) | |
jpype.shutdownJVM() |