The Arrow object stores the visual settings and location of an arrow annotation.
The Arrow object is derived from the Annotation object.
import annotationToolset mdb.annotations[name] session.odbs[name].userData.annotations[name] session.viewports[name].annotationsToPlot[i]
This method creates an Arrow object.
mdb.Arrow
session.odbs[name].userData.Arrow
Required argument
A String specifying the annotation repository key.
Optional arguments
A pair of Floats specifying the start point X- and Y-offsets in millimeters from startAnchor. The default value is (0, 0).
A pair of Floats specifying the end point X- and Y-offsets in millimeters from endAnchor. The default value is (0, 0).
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:
The default value is BOTTOM_LEFT.
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
CENTER_LEFT
CENTER
CENTER_RIGHT
TOP_LEFT
TOP_CENTER
TOP_RIGHT
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:
The default value is BOTTOM_LEFT.
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
CENTER_LEFT
CENTER
CENTER_RIGHT
TOP_LEFT
TOP_CENTER
TOP_RIGHT
A SymbolicConstant specifying the style of the start head. Possible values are:
The default value is NONE.
ARROW
FILLED_ARROW
HOLLOW_CIRCLE
FILLED_CIRCLE
HOLLOW_DIAMOND
FILLED_DIAMOND
HOLLOW_SQUARE
FILLED_SQUARE
NONE
A SymbolicConstant specifying the style of the end head. Possible values are:
The default value is FILLED_ARROW.
ARROW
FILLED_ARROW
HOLLOW_ CIRCLE
FILLED_CIRCLE
HOLLOW_DIAMOND
FILLED_DIAMOND
HOLLOW_SQUARE
FILLED_SQUARE
NONE
A Float specifying the distance in millimeters between the arrow start point and the arrow start head. The default value is 0.0.
A Float specifying the distance in millimeters between the arrow end point and the arrow end head. The default value is 0.0.
A String specifying the color of the arrow. Possible string values are any valid color. The default value is "White".
A SymbolicConstant specifying the line style of the arrow. Possible values are SOLID, DASHED, DOTTED, and DOT_DASH. The default value is SOLID.
A SymbolicConstant specifying the line thickness of the arrow. Possible values are VERY_THIN, THIN, MEDIUM, and THICK. The default value is VERY_THIN.
Return value
An Arrow object.
Exceptions
InvalidNameError.
This method translates the start point of the Arrow object on the viewport plane.
Required arguments
Optional arguments
A Float specifying the X translation amount in millimeters.
A Float specifying theY translation amount in millimeters.
Return value
Exceptions
This method translates the end point of the Arrow object on the viewport plane.
Required arguments
Optional arguments
A Float specifying the X translation amount in millimeters.
A Float specifying theY translation amount in millimeters.
Return value
Exceptions
This method modifies the Arrow object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the Arrow method, except for the name argument.
Return value
Exceptions
The Arrow object has members with the same names and descriptions as the arguments to the Arrow method.