Questa breve guida descrive come aggiungere grafica SmartArt in PowerPoint usando Python. It covers IDE settings, a step‑by‑step list of instructions, and sample code for working with PowerPoint smart art using Python. You will get details on how to customize the output PPT/PPTX by setting the various parameters.
Steps for PowerPoint SmartArt graphics using Python
- Configure the environment to use Aspose.Slides for Python via .NET to add a SmartArt shape.
- Crea una presentazione vuota usando la classe Presentation
- Create a new basic process diagram using the add_smart_art() method and remove the default nodes using the remove_node() method.
- Add new nodes to the diagram to represent the steps of the process.
- Add another slide with an organizational chart and remove the existing default nodes.
- Add a root node and multiple child nodes to the diagram in various positions.
- Insert a third slide with a basic cycle diagram, remove its default nodes, and add the desired formatted nodes.
These steps explain how to create smart art for PowerPoint with Python. Import the desired modules from the library, add a SmartArt shape using the add_smart_art() method, remove the default nodes with the remove_node() method, and add new nodes with the add_node() method. Set the relevant properties for the added nodes, such as text_frame.testo, is_assistant, organization_chart_layout e font, secondo necessità.
Code to add a SmartArt diagram in PowerPoint using Python
This code demonstrates how to add and set the PowerPoint SmartArt design using Python. You can change an existing diagram to a different layout to avoid deleting and recreating the diagram. Use the inverted mode on the process diagram so that the steps are displayed in reverse.
Questo articolo mostra come lavorare con le grafiche SmartArt. To remove notes from PowerPoint, refer to the article Remove Notes from PowerPoint using Python.