create_text#
- ModelerEmit.create_text(text, x_origin=0, y_origin=0, text_size=12, text_angle=0, text_color=0, show_rect=False, x1=0, y1=0, x2=0, y2=0, rect_line_width=0, rect_border_color=0, rect_fill=0, rect_color=0)#
Draw Text.
- Parameters:
- text
str Text to display.
- x_origin
float,optional x origin coordinate of the text box. Default value is
0.- y_origin
float,optional y origin coordinate of the text box . Default value is
0.- text_size
int,optional Size of text. Default value is
12.- text_angle
float,optional Angle of text. Default value is
0.- text_color
int,optional The RGB value of the text color. Default value is
0.- show_rectbool,
optional Show rectangle. Default value is
False.- x1
float,optional The text rectangle left X value, in meters. Default value is
0.- y1
float,optional The text rectangle upper Y value, in meters. Default value is
0.- x2
float,optional The text rectangle right X value, in meters. Default value is
0.- y2
float,optional The text rectangle lower Y value, in meters. Default value is
0.- rect_line_width
float,optional The width of the rectangle border, in meters. Default value is
0.- rect_border_color
int,optional The RGB value of the rectangle border color. Default value is
0.- rect_fill
int,optional The rectangle fill pattern id. Available values are: 0 = hollow, 1 = solid, 2 = NEDiagonal, 3 = OrthoCross, 4 = DiagCross, 5 = NWDiagonal, 6 = Horizontal, 7 = Vertical. Default value is
0.- rect_color
int,optional The RGB value of the rectangle fill color. Default value is
0.
- text
- Returns:
strUnique id of the created object when successful,
Falsewhen failed.
References
>>> oEditor.CreateText