create#

classmethod Text.create(layout, layer, center_x, center_y, text)#

Create a text object.

Parameters:
layoutLayout

Layout to create the text object in.

layerstr or Layer

Layer to place the text object on.

center_xValue

X value of the center point.

center_yValue

Y value of the center point.

text: str

Text string.

Returns:
Text

Text object created.