Combinar combinar Diagram
Contents
[
Hide
]
Posibles escenarios de uso
Aspose.Diagram for Python via Java allows you to combine two visio files to one. Aspose.Diagram for Python via Java API has the Diagram class that represents a Visio drawing. Usando el métodoCombinar en la clase Diagram para combinar diagramas.
Código de muestra
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() |