Getting Started
Contents
[
Hide
]
System Requirements
Aspose.Diagram for Python via .NET is platform-independent API and can be used on any platform (Windows and Linux) where Python is installed.
Python Version
- Python 3.6 or higher
Installation
Windows:
You can easily use Aspose.Diagram for Python via .NET from pypi with the following command.
$ pip install aspose-diagram-python
Linux:
You can easily use Aspose.Diagram for Python via .NET from pypi with the following command.
$ pip install aspose-diagram-python
Creating the Hello World Application
- Create a file named CreatingNewVisioFile.py and use the following sample code:
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) |
- Now save the code above to “CreatingNewVisioFile.py” and run “python CreatingNewVisioFile.py” @command prompt.