Gets table data in DXF file  LTCustomizer21 for AutoCAD LT reference manual

ActiveX
    Function get_table_data(table_name As String, ename As Long, dxfcode As Integer, [index As Long = 0]) As String
C/C++
    int WINAPI LTC_get_table_data(const wchar_t *table_name, int ename, short dxfcode, BSTR * result,int index=0);

parameter
table_name: table name
ename: index of array that read using read_DXF_table. Specifies a value in range of  0 - return value of  read_DXF_table()-1.
dxfcode:DXF group code
result(C/C++):value of table
index:index number that start from 0 in case of existing same groupe code .

return value
ActiveX: value of table
C/C++: 1:success. 0: failure

Before this function is called, initialize using read_DXF_table().
get_table_data gets value that correspond to each DXF group code in DXF table data. Refer to AutoCAD LT help to specify DXF group code.

Sample code
num = LTCustomize1.read_DXF_table("LAYER", True) 'Gets layer info.
MsgBox (num) ' Displays number of layer
For i = 0 To num-1
    str = LTCustomize1.get_table_data("LAYER", i, 2)
    color2 = LTCustomize1.get_table_data("LAYER", i, 62)
    ltype = LTCustomize1.get_table_data("LAYER", i, 6)
    str = "Layer name is " & str & Chr(13)
    str = str & "Color code is " & color2 & Chr(13)
    str = str & "Line style is " & ltype
    MsgBox (str)
Next i