Extracts TEXT of DXF information in selected CAD data. LTCustomizer21 for AutoCAD LT reference manual
ActiveX
Function get_select_text(name As Integer, ByRef x As Double, ByRef y As Double,
ByRef z As Double) As String
C/C++
int WINAPI LTC_get_select_text(int ename,double xyz[3],BSTR *string);
parameter
ename :index number read by select(). Specifies a value in range of 0 - return value of select() -1.
x,y,z(ActiveX)text coordinates.
xyz[3](C/C++):text coordinates. 1st index is X. 2nd index is Y. 3rd index is Z.
string(C/C++):text data
return value
ActiveX: text data
C/C++: 1:success 0:failure
This function succeeds if ename indicates text data. Though text data exists 2 kinds(TEXT,MTEXT), get_select_text() supports both data types.
Caution:
1. In case of point when you drew on User Coordinates System(UCS),the coordinates is on local coordinates system(UCS) you set. if you don't know coordinates of AutoCAD LT, recognize that World Coordinates System(WCS, first coordinates after AutoCAD LT run ) is basic coordinates system. In this case, the CAD data is added DXF group code 210,220,230(means normal vector which see from WCS). So you have to convert if you use the point as WCS. Also you consider origin coordinates of UCS you set. Origin coordinates of UCS can get by using read_DXF_table(). About detail of this thing, refer to UCS,OCS in AutoCAD or AutoCAD LT help.
2.If ename indicates TEXT entity and value of DXF group code 72,73 is not 0, get_select_text() reads value of DXF group code 11,21,31 as vertex coordinates of text data.(by default, LTCustomizer21 reads DXF group codes 10,20,30 as vertex coordinates of text data.) Refer to write_DXF_text() about DXF group codes 72,73.