from .Annotation import Annotation
from ..Canvas.ViewportBase import ViewportBase


class AnnotationViewport(ViewportBase):
    """The following commands operate on Viewport objects. For more information about the
    Viewport object, see Viewport object.

    Notes
    -----
    This object can be accessed by:

    .. code-block:: python

        import annotationToolset
    """

    def plotAnnotation(self, annotation: Annotation, index: str = 0.0):
        """This method plots an Annotation object in aViewport.

        Parameters
        ----------
        annotation
            An :py:class:`~abaqus.Annotation.Annotation.Annotation` object to plot.
        index
            An Int specifying the index of the Annotation object in the sequence of annotations to
            plot. The default value is zero.
        """
        pass
