Public Member Functions | |
def | __init__ |
def | __repr__ |
def | get_extrusion |
def | get_loc |
Public Attributes | |
color_index | |
data | |
extrusion | |
halignment | |
height | |
loc | |
oblique | |
rotation | |
space | |
type | |
valignment | |
value | |
width_factor |
Class for objects representing dxf Text.
Definition at line 478 of file dxfImportObjects.py.
def draftlibs::dxfImportObjects::Text::__init__ | ( | self, | ||
obj | ||||
) |
Expects an entity object of type text as input.
Definition at line 481 of file dxfImportObjects.py.
def draftlibs::dxfImportObjects::Text::__repr__ | ( | self | ) |
Definition at line 590 of file dxfImportObjects.py.
def draftlibs::dxfImportObjects::Text::get_extrusion | ( | self, | ||
data | ||||
) |
Find the axis of extrusion. Used to get the objects Object Coordinate System (ocs).
Definition at line 574 of file dxfImportObjects.py.
def draftlibs::dxfImportObjects::Text::get_loc | ( | self, | ||
data, | ||||
halign, | ||||
valign | ||||
) |
Gets adjusted location for text type objects. If group 72 and/or 73 values are nonzero then the first alignment point values are ignored and AutoCAD calculates new values based on the second alignment point and the length and height of the text string itself (after applying the text style). If the 72 and 73 values are zero or missing, then the second alignment point is meaningless. I don't know how to calc text size...
Definition at line 543 of file dxfImportObjects.py.
Definition at line 499 of file dxfImportObjects.py.
Definition at line 486 of file dxfImportObjects.py.
Definition at line 538 of file dxfImportObjects.py.
Definition at line 523 of file dxfImportObjects.py.
Definition at line 489 of file dxfImportObjects.py.
Definition at line 537 of file dxfImportObjects.py.
Definition at line 517 of file dxfImportObjects.py.
Definition at line 505 of file dxfImportObjects.py.
Definition at line 493 of file dxfImportObjects.py.
Definition at line 485 of file dxfImportObjects.py.
Definition at line 529 of file dxfImportObjects.py.
Definition at line 490 of file dxfImportObjects.py.
Definition at line 511 of file dxfImportObjects.py.