
## Shape.has_smart_art property

Returns ``True`` if this [Shape](../) has a SmartArt object.



```python
@property
def has_smart_art(self) -> bool:
    ...

```

### Examples

Shows how to count the number of shapes in a document with SmartArt objects.

```python
doc = aw.Document(file_name=MY_DIR + 'SmartArt.docx')
number_of_smart_art_shapes = len(list(filter(lambda shape: shape.has_smart_art, list(map(lambda x: x.as_shape(), list(doc.get_child_nodes(aw.NodeType.SHAPE, True)))))))
self.assertEqual(2, number_of_smart_art_shapes)
```

### See Also

* module [aspose.words.drawing](../../)
* class [Shape](../)

