Commencer
Contents
[
Hide
]
Configuration requise
Aspose.Diagram for Python via .NET is platform-independent API and can be used on any platform (Windows and Linux) where Python est installé.
Version Python
- Python 3.6 ou supérieur
Installation
Windows:
You can easily use Aspose.Diagram for Python via .NET from pypi avec la commande suivante.
$ pip install aspose-diagram-python
Linux :
You can easily use Aspose.Diagram for Python via .NET from pypi avec la commande suivante.
$ pip install aspose-diagram-python
Creating the Hello World Application
- Créer un fichier nomméCréationNouveauFichierVisio.py et utilisez l’exemple de code suivant :
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) |
- Enregistrez maintenant le code ci-dessus dans “CreatingNewVisioFile.py” et exécutez “python CreatingNewVisioFile.py” @invite de commande.