Einstieg
Contents
[
Hide
]
System Anforderungen
Aspose.Diagram for Python via .NET is platform-independent API and can be used on any platform (Windows and Linux) where Python ist installiert.
Python-Version
- Python 3,6 oder höher
Installation
Windows:
You can easily use Aspose.Diagram for Python via .NET from pypi mit folgendem Befehl.
$ pip install aspose-diagram-python
Linux:
You can easily use Aspose.Diagram for Python via .NET from pypi mit folgendem Befehl.
$ pip install aspose-diagram-python
Creating the Hello World Application
- Erstellen Sie eine Datei mit dem NamenErstellen von NewVisioFile.py und verwenden Sie den folgenden Beispielcode:
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) |
- Speichern Sie nun den obigen Code in „CreatingNewVisioFile.py“ und führen Sie „python CreatingNewVisioFile.py“ @command prompt aus.