Gets "LINE" data from selected CAD data. LTCustomizer21 for AutoCAD LT reference manual

ActiveX
    Function get_select_line(ename As Integer, ByRef x1 As Double, ByRef y1 As Double, ByRef z1 As Double, ByRef x2 As Double, ByRef y2 As Double, ByRef z2 As Double) As Boolean

C/C++
    int WINAPI LTC_get_select_line(int ename,double start[3],double end[3]);

parameter
ename:index number read by select(). Specifies a value in range of 0 - return value of select() -1.
x1,y1,z1,x2,y2,z2(ActiveX): start point and end point.
start[3],end[3](C/C++): start point and end point. 1st index is X. 2nd index is Y. 3rd index iz Z.

return value
1:success. 0:failure.

This function gets "LINE" data, if data ename indicates is "LINE".
This function is equal to following code.

Dim x1,y1,z1,x2,y2,z2 As Double
If LTCustomize1.get_select_data(i,0)="LINE" Then 'If there is LINE data at "i" th of array.
    LTCustomize1.get_select_point(i,x1,y1,z1)
    LTCustomize1.get_select_point(i,x2,y2,z2,11)
EndIf

Caution
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, coordinates immediately 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.