add_smart_art method

add_smart_art

Creates a SmartArt diagram and adds it to the end of the shape collection.

Returns

The newly created ISmartArt.

def add_smart_art(self, x, y, width, height, layout_type):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the diagram’s frame, in points.
yfloatThe y-coordinate of the diagram’s frame, in points.
widthfloatThe width of the diagram’s frame, in points.
heightfloatThe height of the diagram’s frame, in points.
layout_typeSmartArtLayoutTypeThe SmartArt layout type.

Examples

The following example shows how to add smart shape in PowerPoint Presentation.

See Also