Iniziare
Contents
[
Hide
]
Requisiti di sistema
Aspose.Diagram for Python via .NET is platform-independent API and can be used on any platform (Windows and Linux) where Python è installato.
Python Versione
- Python 3.6 o superiore
Installazione
Windows:
You can easily use Aspose.Diagram for Python via .NET from pypi con il seguente comando.
$ pip install aspose-diagram-python
Linux:
You can easily use Aspose.Diagram for Python via .NET from pypi con il seguente comando.
$ pip install aspose-diagram-python
Creating the Hello World Application
- Crea un file denominatoCreazione di NewVisioFile.py e utilizzare il seguente codice di esempio:
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) |
- Ora salva il codice sopra in “CreatingNewVisioFile.py” ed esegui “python CreatingNewVisioFile.py” @command prompt.