Writes text data in DXF LTCustomizer21 for AutoCAD LT reference manual

ActiveX
Function write_DXF_text(text As String, x As Double, y As Double, z As Double, height As Double, angle As Double, [style As String = "STANDARD"], [location As Integer=0],[vertical_location As Integer=0]) As Boolean

C/C++
int WINAPI LTC_write_DXF_text(const wchar_t *text,const double xyz[3],const double &height,const double &angle=0.0,const wchar_t *style=L"STANDARD",int location=0,int vertical_location=0);

parameter
text:String
x,y,z or xyz[]:coordinate of string. (In case of C/C++, 1st index indicates X, 2nd indicates Y, 3rd indicates Z.)
height:height of string
angle:slope of string
style: style of string
location: kinds of horizontal direction location (group code 72)
0 : left
1: center of width
2 : right
3 : both ends(when vertical_location is 0)
4 : center of height(when vertical_location is 0)
5 : fit(when vertical_location is 0)
vertical_location: kinds of vertical direction location(group code 73)
0:base line 1: the bottom 2:center 3:the top

return value
ActiveX: True: success .False: failure
C/C++: 1: success .0: failure

This function outputs TEXT entity.(not Multi Text(MTEXT))
There are plural attributes in TEXT entity besides attributes this function can sets. To add attributes independently, set using write_DXFentities() after this function is called immediately. (, and other functions as well.) At least you need to understand structure of ENTITIES section in DXF file about addition of data type independently. Refer to AutoCAD help file about DXF file format

Example (after write_DXF_text() is called immediately )

write_DXFentities(71,4) '(reverse string toward up and down direction)