Source code for abaqus.Annotation.Arrow

import typing

from abaqusConstants import *
from .Annotation import Annotation


[docs]class Arrow(Annotation): """The Arrow object stores the visual settings and location of an arrow annotation. The Arrow object is derived from the Annotation object. Notes ----- This object can be accessed by: .. code-block:: python import annotationToolset mdb.annotations[name] session.odbs[name].userData.annotations[name] session.viewports[name].annotationsToPlot[i] """ def __init__(self, name: str, startPoint: tuple[float] = (), endPoint: tuple[float] = (), startAnchor: typing.Union[SymbolicConstant, float] = BOTTOM_LEFT, endAnchor: typing.Union[SymbolicConstant, float] = BOTTOM_LEFT, startHeadStyle: SymbolicConstant = NONE, endHeadStyle: SymbolicConstant = FILLED_ARROW, startGap: float = 0, endGap: float = 0, color: str = '', lineStyle: SymbolicConstant = SOLID, lineThickness: SymbolicConstant = VERY_THIN): """This method creates an Arrow object. Notes ----- This function can be accessed by: .. code-block:: python mdb.Arrow session.odbs[*name*].userData.Arrow Parameters ---------- name A String specifying the annotation repository key. startPoint A pair of Floats specifying the start point *X*- and *Y*-offsets in millimeters from *startAnchor*. The default value is (0, 0). endPoint A pair of Floats specifying the end point *X*- and *Y*-offsets in millimeters from *endAnchor*. The default value is (0, 0). startAnchor A SymbolicConstant or a sequence of Floats specifying a point. A sequence of two Floats specifies the *X*- and *Y*-coordinates as percentages of the viewport width and height. A sequence of three Floats specifies the *X*-, *Y*-, and *Z*-coordinates of a point in the model coordinate system. A SymbolicConstant indicates a relative position. Possible values are: - BOTTOM_LEFT - BOTTOM_CENTER - BOTTOM_RIGHT - CENTER_LEFT - CENTER - CENTER_RIGHT - TOP_LEFT - TOP_CENTER - TOP_RIGHT The default value is BOTTOM_LEFT. endAnchor A SymbolicConstant or a sequence of Floats specifying a point. A sequence of two Floats specifies the *X*- and *Y*-coordinates as percentages of the viewport width and height. A Sequence of three Floats specifies the *X*-, *Y*-, and *Z*-coordinates of a point in the model coordinate system. A SymbolicConstant indicates a relative position. Possible values are: - BOTTOM_LEFT - BOTTOM_CENTER - BOTTOM_RIGHT - CENTER_LEFT - CENTER - CENTER_RIGHT - TOP_LEFT - TOP_CENTER - TOP_RIGHT The default value is BOTTOM_LEFT. startHeadStyle A SymbolicConstant specifying the style of the start head. Possible values are: - ARROW - FILLED_ARROW - HOLLOW_CIRCLE - FILLED_CIRCLE - HOLLOW_DIAMOND - FILLED_DIAMOND - HOLLOW_SQUARE - FILLED_SQUARE - NONE The default value is NONE. endHeadStyle A SymbolicConstant specifying the style of the end head. Possible values are: ARROW - FILLED_ARROW - HOLLOW_CIRCLE - FILLED_CIRCLE - HOLLOW_DIAMOND - FILLED_DIAMOND - HOLLOW_SQUARE - FILLED_SQUARE - NONE The default value is FILLED_ARROW. startGap A Float specifying the distance in millimeters between the arrow start point and the arrow start head. The default value is 0.0. endGap A Float specifying the distance in millimeters between the arrow end point and the arrow end head. The default value is 0.0. color A String specifying the color of the arrow. Possible string values are any valid color. The default value is "White". lineStyle A SymbolicConstant specifying the line style of the arrow. Possible values are SOLID, DASHED, DOTTED, and DOT_DASH. The default value is SOLID. lineThickness A SymbolicConstant specifying the line thickness of the arrow. Possible values are VERY_THIN, THIN, MEDIUM, and THICK. The default value is VERY_THIN. Returns ------- An Arrow object. """ super().__init__() pass
[docs] def translateStartPoint(self, x: float = None, y: float = None): """This method translates the start point of the Arrow object on the viewport plane. Parameters ---------- x A Float specifying the *X* translation amount in millimeters. y A Float specifying the*Y* translation amount in millimeters. """ pass
[docs] def translateEndPoint(self, x: float = None, y: float = None): """This method translates the end point of the Arrow object on the viewport plane. Parameters ---------- x A Float specifying the *X* translation amount in millimeters. y A Float specifying the*Y* translation amount in millimeters. """ pass
[docs] def setValues(self, startPoint: tuple[float] = (), endPoint: tuple[float] = (), startAnchor: typing.Union[SymbolicConstant, float] = BOTTOM_LEFT, endAnchor: typing.Union[SymbolicConstant, float] = BOTTOM_LEFT, startHeadStyle: SymbolicConstant = NONE, endHeadStyle: SymbolicConstant = FILLED_ARROW, startGap: float = 0, endGap: float = 0, color: str = '', lineStyle: SymbolicConstant = SOLID, lineThickness: SymbolicConstant = VERY_THIN): """This method modifies the Arrow object. Parameters ---------- startPoint A pair of Floats specifying the start point *X*- and *Y*-offsets in millimeters from *startAnchor*. The default value is (0, 0). endPoint A pair of Floats specifying the end point *X*- and *Y*-offsets in millimeters from *endAnchor*. The default value is (0, 0). startAnchor A SymbolicConstant or a sequence of Floats specifying a point. A sequence of two Floats specifies the *X*- and *Y*-coordinates as percentages of the viewport width and height. A sequence of three Floats specifies the *X*-, *Y*-, and *Z*-coordinates of a point in the model coordinate system. A SymbolicConstant indicates a relative position. Possible values are:BOTTOM_LEFTBOTTOM_CENTERBOTTOM_RIGHTCENTER_LEFTCENTERCENTER_RIGHTTOP_LEFTTOP_CENTERTOP_RIGHTThe default value is BOTTOM_LEFT. endAnchor A SymbolicConstant or a sequence of Floats specifying a point. A sequence of two Floats specifies the *X*- and *Y*-coordinates as percentages of the viewport width and height. A Sequence of three Floats specifies the *X*-, *Y*-, and *Z*-coordinates of a point in the model coordinate system. A SymbolicConstant indicates a relative position. Possible values are:BOTTOM_LEFTBOTTOM_CENTERBOTTOM_RIGHTCENTER_LEFTCENTERCENTER_RIGHTTOP_LEFTTOP_CENTERTOP_RIGHTThe default value is BOTTOM_LEFT. startHeadStyle A SymbolicConstant specifying the style of the start head. Possible values are:ARROWFILLED_ARROWHOLLOW_CIRCLEFILLED_CIRCLEHOLLOW_DIAMONDFILLED_DIAMONDHOLLOW_SQUAREFILLED_SQUARENONEThe default value is NONE. endHeadStyle A SymbolicConstant specifying the style of the end head. Possible values are:ARROWFILLED_ARROWHOLLOW_ CIRCLEFILLED_CIRCLEHOLLOW_DIAMONDFILLED_DIAMONDHOLLOW_SQUAREFILLED_SQUARENONEThe default value is FILLED_ARROW. startGap A Float specifying the distance in millimeters between the arrow start point and the arrow start head. The default value is 0.0. endGap A Float specifying the distance in millimeters between the arrow end point and the arrow end head. The default value is 0.0. color A String specifying the color of the arrow. Possible string values are any valid color. The default value is "White". lineStyle A SymbolicConstant specifying the line style of the arrow. Possible values are SOLID, DASHED, DOTTED, and DOT_DASH. The default value is SOLID. lineThickness A SymbolicConstant specifying the line thickness of the arrow. Possible values are VERY_THIN, THIN, MEDIUM, and THICK. The default value is VERY_THIN. """ pass