TextElement class

class NemAll_Python_BasisElements.TextElement

Implementation of the Text element

GetDimensions(doc: DocumentAdapter) Vector2D

Get the text size

Returns:

Text size

Args:

doc:      Document

GetText() str

Get the text string

Returns:

Text string

GetTextPoints(doc: DocumentAdapter, refPnt: Point2D) Point2DList

Get the text points

Returns:

List with the text points
_______________
|3 6 2|
| |
|7 5|
| |
|0______4______1|

Args:

doc:      Document
refPnt:   Reference point of the text

GetTextProperties() TextProperties

Get the Text properties

Returns:

Text properties

SetText(text: str) None

Set the text string

Args:

text:  Text string

SetTextProperties(textProp: TextProperties) None

Set the Text properties

Args:

textProp:  Text properties

__init__(...)
__init__() None
__init__(commonProp: CommonProperties, textProp: TextProperties, text: str, geometryObject: object) None

Constructor

Args:

commonProp:      Common properties
textProp:        Text properties
text:            Text string
geometryObject:  Geometry element

__init__(element: TextElement) None

Copy constructor

Args:

element:  Element to copy

__repr__() str

Convert to string

property Text: std

Get the text string

Set the text string

property TextProperties: Allplan

Get the Text properties

Set the Text properties

__module__ = 'NemAll_Python_BasisElements'