Empezando
Contents
[
Hide
]
Requisitos del sistema
Aspose.Diagram for Python via .NET is platform-independent API and can be used on any platform (Windows and Linux) where Python esta instalado.
Python Versión
- Python 3.6 o superior
Instalación
Windows:
You can easily use Aspose.Diagram for Python via .NET from pypi con el siguiente comando.
$ pip install aspose-diagram-python
Linux:
You can easily use Aspose.Diagram for Python via .NET from pypi con el siguiente comando.
$ pip install aspose-diagram-python
Creating the Hello World Application
- Crear un archivo llamadoCreandoNuevoVisioFile.py y use el siguiente 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 aspose.diagram | |
from aspose.diagram import * | |
#// Initialize a Diagram class | |
diagram = Diagram() | |
#// Save diagram in the VSDX format | |
diagram.save("CreateNewVisio_out.vsdx", SaveFileFormat.VSDX) |
- Ahora guarde el código anterior en “CreatingNewVisioFile.py” y ejecute “python CreatingNewVisioFile.py” en el símbolo del sistema.