[qet] [4369] dxftoqet

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4369
Author:   rdsivd
Date:     2016-03-03 23:28:28 +0100 (Thu, 03 Mar 2016)
Log Message:
-----------
dxftoqet
make struct array stable with #define constante

Modified Paths:
--------------
    branches/dxftoqet2/dxf_create_elmt.cpp
    branches/dxftoqet2/dxftoqet_mainwindow.cpp
    branches/dxftoqet2/src/csv_build_table.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_arc.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_attdef.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_attribute.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_circle.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_ellipse.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_entitie_insert.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_insert.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_lines.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_lwpolyline.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_polyline.cpp
    branches/dxftoqet2/src/dxf_block/dxf_block_text.cpp
    branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
    branches/dxftoqet2/src/dxf_data.h
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_arc.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attdef.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attrinute.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_circle.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_ellipse.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_insert.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_line.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_lwpolyline.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_point.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_polyline.cpp
    branches/dxftoqet2/src/dxf_entitie/dxf_entitie_text.cpp
    branches/dxftoqet2/src/dxf_load.cpp
    branches/dxftoqet2/src/dxf_split.cpp

Modified: branches/dxftoqet2/dxf_create_elmt.cpp
===================================================================
--- branches/dxftoqet2/dxf_create_elmt.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/dxf_create_elmt.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -5,38 +5,37 @@
 extern struct ENTITIE Max_entitie;
 
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_header DXF_input_header[500];
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
+extern struct DXF_header DXF_input_header[DXF_L_HEADER];
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
 
-extern struct DXF_entities_arc DXF_input_entities_arc[1000];
-extern struct DXF_entities_line DXF_input_entities_line[100000];
-extern struct DXF_entities_attdef DXF_input_entities_attdef[1000];
-extern struct DXF_entities_attrib DXF_input_entities_attrib[1000];
-extern struct DXF_entities_circle DXF_input_entities_circle[1000];
-extern struct DXF_entities_point DXF_input_entities_point[1000];
-extern struct DXF_entities_text DXF_input_entities_text[1000];
-extern struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
-extern struct DXF_entities_polyline DXF_input_entities_polyline[1000];
-extern struct DXF_entities_seqend DXF_input_entities_seqend[1000];
-extern struct DXF_entities_vertex DXF_input_entities_vertex[50000];
-extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
+extern struct DXF_entities_arc DXF_input_entities_arc[DXF_LE_ARC];
+extern struct DXF_entities_line DXF_input_entities_line[DXF_LE_LINE];
+extern struct DXF_entities_attdef DXF_input_entities_attdef[DXF_LE_ATTDEF];
+extern struct DXF_entities_attrib DXF_input_entities_attrib[DXF_LE_ATTRIB];
+extern struct DXF_entities_circle DXF_input_entities_circle[DXF_LE_CIRCLE];
+extern struct DXF_entities_point DXF_input_entities_point[DXF_LE_POINT];
+extern struct DXF_entities_text DXF_input_entities_text[DXF_LE_TEXT];
+extern struct DXF_entities_ellipse DXF_input_entities_ellipse[DXF_LE_ELLIPSE];
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
+extern struct DXF_entities_polyline DXF_input_entities_polyline[DXF_LE_POLYLINE];
+extern struct DXF_entities_seqend DXF_input_entities_seqend[DXF_LE_SEQEND];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
+extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[DXF_LE_LWPOLYLINE];
 
-extern struct DXF_block_line DXF_input_block_line[200][5000];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-extern struct DXF_block_point DXF_input_block_point[200][100];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_seqend DXF_input_block_seqend[200][100];
-extern struct DXF_block_text DXF_input_block_text[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
 
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
+
 DXF_create_elmt::DXF_create_elmt(QWidget *parent) : QWidget(parent)//:
 	//QMainWindow(parent)
 {

Modified: branches/dxftoqet2/dxftoqet_mainwindow.cpp
===================================================================
--- branches/dxftoqet2/dxftoqet_mainwindow.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/dxftoqet_mainwindow.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -8,112 +8,112 @@
 struct BLOCK Max_block;
 struct ENTITIE Max_entitie;
 
-struct DXF_header DXF_input_header[500];
-struct DXF_classes DXF_input_classes[1000];
-struct DXF_tables DXF_input_tables[20];
-struct DXF_table_appid DXF_input_table_appid[100];
-struct DXF_table_block_record DXF_input_table_block_record[500];
-struct DXF_table_dimstyle DXF_input_table_dimstyle[500];
-struct DXF_table_layer DXF_input_table_layer[100];
-struct DXF_table_ltype DXF_input_table_ltype[100];
-struct DXF_table_style DXF_input_table_style[100];
-struct DXF_table_ucs DXF_input_table_ucs[100];
-struct DXF_table_view DXF_input_table_view[100];
-struct DXF_table_vport DXF_input_table_vport[100];
-struct DXF_block DXF_input_block[200];
-struct DXF_end_block DXF_input_end_block[200];
+struct DXF_header DXF_input_header[DXF_L_HEADER];
+struct DXF_classes DXF_input_classes[DXF_L_CLASSES];
+struct DXF_tables DXF_input_tables[DXF_L_TABLES];
+struct DXF_table_appid DXF_input_table_appid[DXF_L_APPID];
+struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+struct DXF_table_dimstyle DXF_input_table_dimstyle[DXF_L_DIMSTYLE];
+struct DXF_table_layer DXF_input_table_layer[DXF_L_LAYER];
+struct DXF_table_ltype DXF_input_table_ltype[DXF_L_LTYPE];
+struct DXF_table_style DXF_input_table_style[DXF_L_STYLE];
+struct DXF_table_ucs DXF_input_table_ucs[DXF_L_UCS];
+struct DXF_table_view DXF_input_table_view[DXF_L_VIEW];
+struct DXF_table_vport DXF_input_table_vport[DXF_L_VPORT];
+struct DXF_block DXF_input_block[DXF_L_BLOCK];
+struct DXF_end_block DXF_input_end_block[DXF_L_BLOCK];
 
-struct DXF_block_3dface DXF_input_block_3dface[200][100];
-struct DXF_block_3dsolid DXF_input_block_3dsolid[200][100];
-struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[200][100];
-struct DXF_block_arc DXF_input_block_arc[200][100];
-struct DXF_block_attdef DXF_input_block_attdef[200][100];
-struct DXF_block_attrib DXF_input_block_attrib[200][100];
-struct DXF_block_body DXF_input_block_body[200][100];
-struct DXF_block_circle DXF_input_block_circle[200][100];
-struct DXF_block_dimension DXF_input_block_dimension[200][100];
-struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-struct DXF_block_hatch DXF_input_block_hatch[200][100];
-struct DXF_block_helix DXF_input_block_helix[200][100];
-struct DXF_block_image DXF_input_block_image[200][100];
-struct DXF_block_insert DXF_input_block_insert[200][100];
-struct DXF_block_leader DXF_input_block_leader[200][100];
-struct DXF_block_light DXF_input_block_light[200][100];
-struct DXF_block_line DXF_input_block_line[200][5000];
-struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-struct DXF_block_mesh DXF_input_block_mesh[200][100];
-struct DXF_block_mline DXF_input_block_mline[200][100];
-struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[200][100];
-struct DXF_block_mleader DXF_input_block_mleader[200][100];
-struct DXF_block_mtext DXF_input_block_mtext[200][100];
-struct DXF_block_oleframe DXF_input_DXF_block_oleframe[200][100];
-struct DXF_block_ole2frame DXF_input_block_ole2frame[200][100];
-struct DXF_block_point DXF_input_block_point[200][100];
-struct DXF_block_polyline DXF_input_block_polyline[200][100];
-struct DXF_block_ray DXF_input_block_ray[200][100];
-struct DXF_block_region DXF_input_block_region[200][100];
-struct DXF_block_section DXF_input_block_section[200][100];
-struct DXF_block_seqend DXF_input_block_seqend[200][100];
-struct DXF_block_shape DXF_input_block_shape[200][100];
-struct DXF_block_solid DXF_input_block_solid[200][100];
-struct DXF_block_spline DXF_input_block_spline[200][100];
-struct DXF_block_sun DXF_input_block_sun[200][100];
-struct DXF_block_surface DXF_input_block_surface[200][100];
-struct DXF_block_table DXF_input_block_table[200][100];
-struct DXF_block_text DXF_input_block_text[200][100];
-struct DXF_block_tolerance DXF_input_block_tolerance[200][100];
-struct DXF_block_trace DXF_input_block_trace[200][100];
-struct DXF_block_underlay DXF_input_block_underlay[200][100];
-struct DXF_block_vertex DXF_input_block_vertex[200][500];
-struct DXF_block_viewport DXF_input_block_viewport[200][100];
-struct DXF_block_wipeout DXF_input_block_wipeout[200][100];
-struct DXF_block_xline DXF_input_block_xline[200][100];
+struct DXF_block_3dface DXF_input_block_3dface[DXF_L_BLOCK][DXF_LB_3DFACE];
+struct DXF_block_3dsolid DXF_input_block_3dsolid[DXF_L_BLOCK][DXF_LB_3DSOLID];
+struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[DXF_L_BLOCK][DXF_LB_PROXY_ENTITY];
+struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+struct DXF_block_body DXF_input_block_body[DXF_L_BLOCK][DXF_LB_BODY];
+struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+struct DXF_block_dimension DXF_input_block_dimension[DXF_L_BLOCK][DXF_LB_DIMENSION];
+struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
+struct DXF_block_hatch DXF_input_block_hatch[DXF_L_BLOCK][DXF_LB_HATCH];
+struct DXF_block_helix DXF_input_block_helix[DXF_L_BLOCK][DXF_LB_HELIX];
+struct DXF_block_image DXF_input_block_image[DXF_L_BLOCK][DXF_LB_IMAGE];
+struct DXF_block_insert DXF_input_block_insert[DXF_L_BLOCK][DXF_LB_INSERT];
+struct DXF_block_leader DXF_input_block_leader[DXF_L_BLOCK][DXF_LB_LEADER];
+struct DXF_block_light DXF_input_block_light[DXF_L_BLOCK][DXF_LB_LIGHT];
+struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+struct DXF_block_mesh DXF_input_block_mesh[DXF_L_BLOCK][DXF_LB_MESH ];
+struct DXF_block_mline DXF_input_block_mline[DXF_L_BLOCK][DXF_LB_MLINE];
+struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[DXF_L_BLOCK][DXF_LB_MLEADERSTYLE];
+struct DXF_block_mleader DXF_input_block_mleader[DXF_L_BLOCK][DXF_LB_MLEADER];
+struct DXF_block_mtext DXF_input_block_mtext[DXF_L_BLOCK][DXF_LB_MTEXT];
+struct DXF_block_oleframe DXF_input_DXF_block_oleframe[DXF_L_BLOCK][DXF_LB_OLEFRAME];
+struct DXF_block_ole2frame DXF_input_block_ole2frame[DXF_L_BLOCK][DXF_LB_OLE2FRAME];
+struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+struct DXF_block_ray DXF_input_block_ray[DXF_L_BLOCK][DXF_LB_RAY];
+struct DXF_block_region DXF_input_block_region[DXF_L_BLOCK][DXF_LB_REGION];
+struct DXF_block_section DXF_input_block_section[DXF_L_BLOCK][DXF_LB_SECTION];
+struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+struct DXF_block_shape DXF_input_block_shape[DXF_L_BLOCK][DXF_LB_SHAPE];
+struct DXF_block_solid DXF_input_block_solid[DXF_L_BLOCK][DXF_LB_SOLID];
+struct DXF_block_spline DXF_input_block_spline[DXF_L_BLOCK][DXF_LB_SPLINE];
+struct DXF_block_sun DXF_input_block_sun[DXF_L_BLOCK][DXF_LB_SUN];
+struct DXF_block_surface DXF_input_block_surface[DXF_L_BLOCK][DXF_LB_SURFACE];
+struct DXF_block_table DXF_input_block_table[DXF_L_BLOCK][DXF_LB_TABLE];
+struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+struct DXF_block_tolerance DXF_input_block_tolerance[DXF_L_BLOCK][DXF_LB_TOLERANCE];
+struct DXF_block_trace DXF_input_block_trace[DXF_L_BLOCK][DXF_LB_TRACE];
+struct DXF_block_underlay DXF_input_block_underlay[DXF_L_BLOCK][DXF_LB_UNDERLAY];
+struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
+struct DXF_block_viewport DXF_input_block_viewport[DXF_L_BLOCK][DXF_LB_VIEWPORT];
+struct DXF_block_wipeout DXF_input_block_wipeout[DXF_L_BLOCK][DXF_LB_WIPEOUT];
+struct DXF_block_xline DXF_input_block_xline[DXF_L_BLOCK][DXF_LB_XLINE];
 
-struct DXF_entities_3dface DXF_input_entities_3dface[1000];
-struct DXF_entities_3dsolid DXF_input_entities_3dsolid[1000];
-struct DXF_entities_acad_proxy_entity DXF_input_entities_acad_proxy_entity[1000];
-struct DXF_entities_arc DXF_input_entities_arc[1000];
-struct DXF_entities_attdef DXF_input_entities_attdef[1000];
-struct DXF_entities_attrib DXF_input_entities_attrib[1000];
-struct DXF_entities_body DXF_input_entities_body[1000];
-struct DXF_entities_circle DXF_input_entities_circle[1000];
-struct DXF_entities_dimension DXF_input_entities_dimension[1000];
-struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
-struct DXF_entities_hatch DXF_input_entities_hatch[1000];
-struct DXF_entities_helix DXF_input_entities_helix[1000];
-struct DXF_entities_image DXF_input_entities_image[1000];
-struct DXF_entities_insert DXF_input_entities_insert[1000];
-struct DXF_entities_leader DXF_input_entities_leader[1000];
-struct DXF_entities_light DXF_input_entities_light[1000];
-struct DXF_entities_line DXF_input_entities_line[100000];
-struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
-struct DXF_entities_mesh DXF_input_entities_mesh[1000];
-struct DXF_entities_mline DXF_input_entities_mline[1000];
-struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[1000];
-struct DXF_entities_mleader DXF_input_entities_mleader[1000];
-struct DXF_entities_mtext DXF_input_entities_mtext[1000];
-struct DXF_entities_oleframe DXF_input_entities_oleframe[1000];
-struct DXF_entities_ole2frame DXF_input_entities_ole2frame[1000];
-struct DXF_entities_point DXF_input_entities_point[1000];
-struct DXF_entities_polyline DXF_input_entities_polyline[1000];
-struct DXF_entities_ray DXF_input_entities_ray[1000];
-struct DXF_entities_region DXF_input_entities_region[1000];
-struct DXF_entities_section DXF_input_entities_section[1000];
-struct DXF_entities_seqend DXF_input_entities_seqend[1000];
-struct DXF_entities_shape DXF_input_entities_shape[1000];
-struct DXF_entities_solid DXF_input_entities_solid[1000];
-struct DXF_entities_spline DXF_input_entities_spline[1000];
-struct DXF_entities_sun DXF_input_entities_sun[1000];
-struct DXF_entities_surface DXF_input_entities_surface[1000];
-struct DXF_entities_table DXF_input_entities_table[1000];
-struct DXF_entities_text DXF_input_entities_text[1000];
-struct DXF_entities_tolerance DXF_input_entities_tolerance[1000];
-struct DXF_entities_trace DXF_input_entities_trace[1000];
-struct DXF_entities_underlay DXF_input_entities_underlay[1000];
-struct DXF_entities_vertex DXF_input_entities_vertex[50000];
-struct DXF_entities_viewport DXF_input_entities_viewport[1000];
-struct DXF_entities_wipeout DXF_input_entities_wipeout[1000];
-struct DXF_entities_xline DXF_input_entities_xline[1000];
+struct DXF_entities_3dface DXF_input_entities_3dface[DXF_LE_3DFACE];
+struct DXF_entities_3dsolid DXF_input_entities_3dsolid[DXF_LE_3DSOLID];
+struct DXF_entities_acad_proxy_entity DXF_input_entities_acad_proxy_entity[DXF_LE_PROXY_ENTITY];
+struct DXF_entities_arc DXF_input_entities_arc[DXF_LE_ARC];
+struct DXF_entities_attdef DXF_input_entities_attdef[DXF_LE_ATTDEF];
+struct DXF_entities_attrib DXF_input_entities_attrib[DXF_LE_ATTRIB];
+struct DXF_entities_body DXF_input_entities_body[DXF_LE_BODY];
+struct DXF_entities_circle DXF_input_entities_circle[DXF_LE_CIRCLE];
+struct DXF_entities_dimension DXF_input_entities_dimension[DXF_LE_DIMENSION];
+struct DXF_entities_ellipse DXF_input_entities_ellipse[DXF_LE_ELLIPSE];
+struct DXF_entities_hatch DXF_input_entities_hatch[DXF_LE_HATCH];
+struct DXF_entities_helix DXF_input_entities_helix[DXF_LE_HELIX];
+struct DXF_entities_image DXF_input_entities_image[DXF_LE_IMAGE];
+struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
+struct DXF_entities_leader DXF_input_entities_leader[DXF_LE_LEADER];
+struct DXF_entities_light DXF_input_entities_light[DXF_LE_LIGHT];
+struct DXF_entities_line DXF_input_entities_line[DXF_LE_LINE];
+struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[DXF_LE_LWPOLYLINE];
+struct DXF_entities_mesh DXF_input_entities_mesh[DXF_LE_MESH];
+struct DXF_entities_mline DXF_input_entities_mline[DXF_LE_MLINE];
+struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[DXF_LE_MLEADERSTYLE];
+struct DXF_entities_mleader DXF_input_entities_mleader[DXF_LE_MLEADER];
+struct DXF_entities_mtext DXF_input_entities_mtext[DXF_LE_MTEXT];
+struct DXF_entities_oleframe DXF_input_entities_oleframe[DXF_LE_OLEFRAME];
+struct DXF_entities_ole2frame DXF_input_entities_ole2frame[DXF_LE_OLE2FRAME];
+struct DXF_entities_point DXF_input_entities_point[DXF_LE_POINT];
+struct DXF_entities_polyline DXF_input_entities_polyline[DXF_LE_POLYLINE];
+struct DXF_entities_ray DXF_input_entities_ray[DXF_LE_RAY];
+struct DXF_entities_region DXF_input_entities_region[DXF_LE_REGION];
+struct DXF_entities_section DXF_input_entities_section[DXF_LE_SECTION];
+struct DXF_entities_seqend DXF_input_entities_seqend[DXF_LE_SEQEND];
+struct DXF_entities_shape DXF_input_entities_shape[DXF_LE_SHAPE];
+struct DXF_entities_solid DXF_input_entities_solid[DXF_LE_SOLID];
+struct DXF_entities_spline DXF_input_entities_spline[DXF_LE_SPLINE];
+struct DXF_entities_sun DXF_input_entities_sun[DXF_LE_SUN];
+struct DXF_entities_surface DXF_input_entities_surface[DXF_LE_SURFACE];
+struct DXF_entities_table DXF_input_entities_table[DXF_LE_TABLE];
+struct DXF_entities_text DXF_input_entities_text[DXF_LE_TEXT];
+struct DXF_entities_tolerance DXF_input_entities_tolerance[DXF_LE_TOLERANCE];
+struct DXF_entities_trace DXF_input_entities_trace[DXF_LE_TRACE];
+struct DXF_entities_underlay DXF_input_entities_underlay[DXF_LE_UNDERLAY];
+struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
+struct DXF_entities_viewport DXF_input_entities_viewport[DXF_LE_VIEWPORT];
+struct DXF_entities_wipeout DXF_input_entities_wipeout[DXF_LE_WIPEOUT];
+struct DXF_entities_xline DXF_input_entities_xline[DXF_LE_XLINE];
 
 
 
@@ -300,7 +300,7 @@
 	Max_alg.DXF_table_vport=100;
 	Max_alg.DXF_input_block=200;
 	Max_alg.DXF_input_end_block=200;
-	Max_alg.DXF_entities=100000;
+	Max_alg.DXF_entities=DXF_L_ENTITIES;
 }
 
 DXFtoQET_MainWindow::~DXFtoQET_MainWindow()
@@ -572,7 +572,7 @@
 
 			ui->DXF_3DFACE->setText(QString::number(DXF_main_base[0].DXF_entities_3dface_count));
 
-			if (DXF_main_base[0].DXF_entities_3dface_count>(Max_entitie.DXF_entities_3dface-1))
+			if (DXF_main_base[0].DXF_entities_3dface_count>(DXF_LE_3DFACE-1))
 			{
 
 				ui->DXF_3DFACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -584,7 +584,7 @@
 
 			ui->DXF_3DSOLID->setText(QString::number(DXF_main_base[0].DXF_entities_3dsolid_count));
 
-			if (DXF_main_base[0].DXF_entities_3dsolid_count>(Max_entitie.DXF_entities_3dsolid-1))
+			if (DXF_main_base[0].DXF_entities_3dsolid_count>(DXF_LE_3DSOLID-1))
 			{
 
 				ui->DXF_3DSOLID->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -596,7 +596,7 @@
 
 			ui->DXF_ACAD_PROXY_ENTITY->setText(QString::number(DXF_main_base[0].DXF_entities_acad_proxy_entity_count));
 
-			if (DXF_main_base[0].DXF_entities_acad_proxy_entity_count>(Max_entitie.DXF_entities_acad_proxy_entity-1))
+			if (DXF_main_base[0].DXF_entities_acad_proxy_entity_count>(DXF_LE_PROXY_ENTITY-1))
 			{
 
 				ui->DXF_ACAD_PROXY_ENTITY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -608,7 +608,7 @@
 
 			ui->DXF_ARC->setText(QString::number(DXF_main_base[0].DXF_entities_arc_count));
 
-			if (DXF_main_base[0].DXF_entities_arc_count>(Max_entitie.DXF_entities_arc-1))
+			if (DXF_main_base[0].DXF_entities_arc_count>(DXF_LE_ARC-1))
 			{
 
 				ui->DXF_ARC->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -620,7 +620,7 @@
 
 			ui->DXF_ATTDEF->setText(QString::number(DXF_main_base[0].DXF_entities_attdef_count));
 
-			if (DXF_main_base[0].DXF_entities_attdef_count>(Max_entitie.DXF_entities_attdef-1))
+			if (DXF_main_base[0].DXF_entities_attdef_count>(DXF_LE_ATTDEF-1))
 			{
 
 				ui->DXF_ATTDEF->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -632,7 +632,7 @@
 
 			ui->DXF_ATTRIB->setText(QString::number(DXF_main_base[0].DXF_entities_attrib_count));
 
-			if (DXF_main_base[0].DXF_entities_attrib_count>(Max_entitie.DXF_entities_attrib-1))
+			if (DXF_main_base[0].DXF_entities_attrib_count>(DXF_LE_ATTRIB-1))
 			{
 
 				ui->DXF_ATTRIB->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -644,7 +644,7 @@
 
 			ui->DXF_BODY->setText(QString::number(DXF_main_base[0].DXF_entities_body_count));
 
-			if (DXF_main_base[0].DXF_entities_body_count>Max_entitie.DXF_entities_body-1)
+			if (DXF_main_base[0].DXF_entities_body_count>(DXF_LE_BODY-1))
 			{
 
 				ui->DXF_BODY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -657,7 +657,7 @@
 			ui->DXF_CIRCLE->setText(QString::number(DXF_main_base[0].DXF_entities_circle_count));
 
 
-			if (DXF_main_base[0].DXF_entities_circle_count>(Max_entitie.DXF_entities_circle-1))
+			if (DXF_main_base[0].DXF_entities_circle_count>(DXF_LE_CIRCLE-1))
 			{
 
 				ui->DXF_CIRCLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -670,7 +670,7 @@
 			ui->DXF_DIMENSIONS->setText(QString::number(DXF_main_base[0].DXF_entities_dimension_count));
 
 
-			if (DXF_main_base[0].DXF_entities_dimension_count>(Max_entitie.DXF_entities_dimension-1))
+			if (DXF_main_base[0].DXF_entities_dimension_count>(DXF_LE_DIMENSION-1))
 			{
 
 				ui->DXF_DIMENSIONS->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -683,7 +683,7 @@
 			ui->DXF_ELLIPSE->setText(QString::number(DXF_main_base[0].DXF_entities_ellipse_count));
 
 
-			if (DXF_main_base[0].DXF_entities_ellipse_count>(Max_entitie.DXF_entities_ellipse-1))
+			if (DXF_main_base[0].DXF_entities_ellipse_count>(DXF_LE_ELLIPSE-1))
 			{
 
 				ui->DXF_ELLIPSE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -696,7 +696,7 @@
 			ui->DXF_HATCH->setText(QString::number(DXF_main_base[0].DXF_entities_hatch_count));
 
 
-			if (DXF_main_base[0].DXF_entities_hatch_count>(Max_entitie.DXF_entities_hatch-1))
+			if (DXF_main_base[0].DXF_entities_hatch_count>(DXF_LE_HATCH-1))
 			{
 
 				ui->DXF_HATCH->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -709,7 +709,7 @@
 			ui->DXF_HELIX->setText(QString::number(DXF_main_base[0].DXF_entities_helix_count));
 
 
-			if (DXF_main_base[0].DXF_entities_helix_count>(Max_entitie.DXF_entities_helix-1))
+			if (DXF_main_base[0].DXF_entities_helix_count>(DXF_LE_HELIX-1))
 			{
 
 				ui->DXF_HELIX->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -722,7 +722,7 @@
 			ui->DXF_IMAGE->setText(QString::number(DXF_main_base[0].DXF_entities_image_count));
 
 
-			if (DXF_main_base[0].DXF_entities_image_count>(Max_entitie.DXF_entities_image-1))
+			if (DXF_main_base[0].DXF_entities_image_count>(DXF_LE_IMAGE-1))
 			{
 
 				ui->DXF_IMAGE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -735,7 +735,7 @@
 			ui->DXF_INSERT->setText(QString::number(DXF_main_base[0].DXF_entities_insert_count));
 
 
-			if (DXF_main_base[0].DXF_entities_insert_count>(Max_entitie.DXF_entities_insert-1))
+			if (DXF_main_base[0].DXF_entities_insert_count>(DXF_LE_INSERT-1))
 			{
 
 				ui->DXF_INSERT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -748,7 +748,7 @@
 			ui->DXF_LEADER->setText(QString::number(DXF_main_base[0].DXF_entities_leader_count));
 
 
-			if (DXF_main_base[0].DXF_entities_leader_count>(Max_entitie.DXF_entities_leader-1))
+			if (DXF_main_base[0].DXF_entities_leader_count>(DXF_LE_LEADER-1))
 			{
 
 				ui->DXF_LEADER->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -761,7 +761,7 @@
 			ui->DXF_LIGHT->setText(QString::number(DXF_main_base[0].DXF_entities_light_count));
 
 
-			if (DXF_main_base[0].DXF_entities_light_count>(Max_entitie.DXF_entities_light-1))
+			if (DXF_main_base[0].DXF_entities_light_count>(DXF_LE_LIGHT-1))
 			{
 
 				ui->DXF_LIGHT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -773,7 +773,7 @@
 
 			ui->DXF_LINE->setText(QString::number(DXF_main_base[0].DXF_entities_line_count));
 
-			if (DXF_main_base[0].DXF_entities_line_count>(Max_entitie.DXF_entities_line-1))
+			if (DXF_main_base[0].DXF_entities_line_count>(DXF_LE_LINE-1))
 			{
 
 				ui->DXF_LINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -785,7 +785,7 @@
 
 			ui->DXF_LWPOLYLINE->setText(QString::number(DXF_main_base[0].DXF_entities_lwpolyline_count));
 
-			if (DXF_main_base[0].DXF_entities_lwpolyline_count>(Max_entitie.DXF_entities_lwpolyline-1))
+			if (DXF_main_base[0].DXF_entities_lwpolyline_count>(DXF_LE_LWPOLYLINE-1))
 			{
 
 				ui->DXF_LWPOLYLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -797,7 +797,7 @@
 
 			ui->DXF_MESH->setText(QString::number(DXF_main_base[0].DXF_entities_mesh_count));
 
-			if (DXF_main_base[0].DXF_entities_mesh_count>(Max_entitie.DXF_entities_mesh-1))
+			if (DXF_main_base[0].DXF_entities_mesh_count>(DXF_LE_MESH-1))
 			{
 
 				ui->DXF_MESH->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -809,7 +809,7 @@
 
 			ui->DXF_MLINE->setText(QString::number(DXF_main_base[0].DXF_entities_mline_count));
 
-			if (DXF_main_base[0].DXF_entities_mline_count>(Max_entitie.DXF_entities_mline-1))
+			if (DXF_main_base[0].DXF_entities_mline_count>(DXF_LE_MLINE-1))
 			{
 
 				ui->DXF_MLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -821,7 +821,7 @@
 
 			ui->DXF_MLEADER->setText(QString::number(DXF_main_base[0].DXF_entities_mleader_count));
 
-			if (DXF_main_base[0].DXF_entities_mleader_count>(Max_entitie.DXF_entities_mleader-1))
+			if (DXF_main_base[0].DXF_entities_mleader_count>(DXF_LE_MLEADER-1))
 			{
 
 				ui->DXF_MLEADER->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -833,7 +833,7 @@
 
 			ui->DXF_MLEADERSTYLE->setText(QString::number(DXF_main_base[0].DXF_entities_mleaderstyle_count));
 
-			if (DXF_main_base[0].DXF_entities_mleaderstyle_count>(Max_entitie.DXF_entities_mleaderstyle-1))
+			if (DXF_main_base[0].DXF_entities_mleaderstyle_count>(DXF_LE_MLEADERSTYLE-1))
 			{
 
 				ui->DXF_MLEADERSTYLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -845,7 +845,7 @@
 
 			ui->DXF_MTEXT->setText(QString::number(DXF_main_base[0].DXF_entities_mtext_count));
 
-			if (DXF_main_base[0].DXF_entities_mtext_count>(Max_entitie.DXF_entities_mtext-1))
+			if (DXF_main_base[0].DXF_entities_mtext_count>(DXF_LE_MTEXT-1))
 			{
 
 				ui->DXF_MTEXT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -857,7 +857,7 @@
 
 			ui->DXF_OLEFRAME->setText(QString::number(DXF_main_base[0].DXF_entities_oleframe_count));
 
-			if (DXF_main_base[0].DXF_entities_oleframe_count>(Max_entitie.DXF_entities_oleframe-1))
+			if (DXF_main_base[0].DXF_entities_oleframe_count>(DXF_LE_OLEFRAME-1))
 			{
 
 				ui->DXF_OLEFRAME->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -869,7 +869,7 @@
 
 			ui->DXF_OLE2FRAME->setText(QString::number(DXF_main_base[0].DXF_entities_ole2frame_count));
 
-			if (DXF_main_base[0].DXF_entities_ole2frame_count>(Max_entitie.DXF_entities_ole2frame-1))
+			if (DXF_main_base[0].DXF_entities_ole2frame_count>(DXF_LE_OLE2FRAME-1))
 			{
 
 				ui->DXF_OLE2FRAME->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -881,7 +881,7 @@
 
 			ui->DXF_POINT->setText(QString::number(DXF_main_base[0].DXF_entities_point_count));
 
-			if (DXF_main_base[0].DXF_entities_point_count>(Max_entitie.DXF_entities_point-1))
+			if (DXF_main_base[0].DXF_entities_point_count>(DXF_LE_POINT-1))
 			{
 
 				ui->DXF_POINT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -893,7 +893,7 @@
 
 			ui->DXF_POLYLINE->setText(QString::number(DXF_main_base[0].DXF_entities_polyline_count));
 
-			if (DXF_main_base[0].DXF_entities_polyline_count>(Max_entitie.DXF_entities_polyline-1))
+			if (DXF_main_base[0].DXF_entities_polyline_count>(DXF_LE_POLYLINE-1))
 			{
 
 				ui->DXF_POLYLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -905,7 +905,7 @@
 
 			ui->DXF_RAY->setText(QString::number(DXF_main_base[0].DXF_entities_ray_count));
 
-			if (DXF_main_base[0].DXF_entities_ray_count>(Max_entitie.DXF_entities_ray-1))
+			if (DXF_main_base[0].DXF_entities_ray_count>(DXF_LE_RAY-1))
 			{
 
 				ui->DXF_RAY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -917,7 +917,7 @@
 
 			ui->DXF_REGION->setText(QString::number(DXF_main_base[0].DXF_entities_region_count));
 
-			if (DXF_main_base[0].DXF_entities_region_count>(Max_entitie.DXF_entities_region-1))
+			if (DXF_main_base[0].DXF_entities_region_count>(DXF_LE_REGION-1))
 			{
 
 				ui->DXF_REGION->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -929,7 +929,7 @@
 
 			ui->DXF_SECTION->setText(QString::number(DXF_main_base[0].DXF_entities_section_count));
 
-			if (DXF_main_base[0].DXF_entities_section_count>(Max_entitie.DXF_entities_section-1))
+			if (DXF_main_base[0].DXF_entities_section_count>(DXF_LE_SECTION-1))
 			{
 
 				ui->DXF_SECTION->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -941,7 +941,7 @@
 
 			ui->DXF_SEQEND->setText(QString::number(DXF_main_base[0].DXF_entities_seqend_count));
 
-			if (DXF_main_base[0].DXF_entities_seqend_count>(Max_entitie.DXF_entities_seqend-1))
+			if (DXF_main_base[0].DXF_entities_seqend_count>(DXF_LE_SEQEND-1))
 			{
 
 				ui->DXF_SEQEND->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -953,7 +953,7 @@
 
 			ui->DXF_SHAPE->setText(QString::number(DXF_main_base[0].DXF_entities_shape_count));
 
-			if (DXF_main_base[0].DXF_entities_shape_count>(Max_entitie.DXF_entities_shape-1))
+			if (DXF_main_base[0].DXF_entities_shape_count>(DXF_LE_SHAPE-1))
 			{
 
 				ui->DXF_SHAPE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -965,7 +965,7 @@
 
 			ui->DXF_SOLID->setText(QString::number(DXF_main_base[0].DXF_entities_solid_count));
 
-			if (DXF_main_base[0].DXF_entities_solid_count>(Max_entitie.DXF_entities_solid-1))
+			if (DXF_main_base[0].DXF_entities_solid_count>(DXF_LE_SOLID-1))
 			{
 
 				ui->DXF_SOLID->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -977,7 +977,7 @@
 
 			ui->DXF_SPLINE->setText(QString::number(DXF_main_base[0].DXF_entities_spline_count));
 
-			if (DXF_main_base[0].DXF_entities_spline_count>(Max_entitie.DXF_entities_spline-1))
+			if (DXF_main_base[0].DXF_entities_spline_count>(DXF_LE_SPLINE-1))
 			{
 
 				ui->DXF_SPLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -989,7 +989,7 @@
 
 			ui->DXF_SUN->setText(QString::number(DXF_main_base[0].DXF_entities_sun_count));
 
-			if (DXF_main_base[0].DXF_entities_sun_count>(Max_entitie.DXF_entities_sun-1))
+			if (DXF_main_base[0].DXF_entities_sun_count>(DXF_LE_SUN-1))
 			{
 
 				ui->DXF_SUN->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1001,7 +1001,7 @@
 
 			ui->DXF_SURFACE->setText(QString::number(DXF_main_base[0].DXF_entities_surface_count));
 
-			if (DXF_main_base[0].DXF_entities_surface_count>(Max_entitie.DXF_entities_surface-1))
+			if (DXF_main_base[0].DXF_entities_surface_count>(DXF_LE_SURFACE-1))
 			{
 
 				ui->DXF_SURFACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1013,7 +1013,7 @@
 
 			ui->DXF_TABLE->setText(QString::number(DXF_main_base[0].DXF_entities_table_count));
 
-			if (DXF_main_base[0].DXF_entities_table_count>(Max_entitie.DXF_entities_table-1))
+			if (DXF_main_base[0].DXF_entities_table_count>(DXF_LE_TABLE-1))
 			{
 
 				ui->DXF_TABLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1025,7 +1025,7 @@
 
 			ui->DXF_TEXT->setText(QString::number(DXF_main_base[0].DXF_entities_text_count));
 
-			if (DXF_main_base[0].DXF_entities_text_count>(Max_entitie.DXF_entities_leader-1))
+			if (DXF_main_base[0].DXF_entities_text_count>(DXF_LE_TEXT-1))
 			{
 
 				ui->DXF_TEXT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1037,7 +1037,7 @@
 
 			ui->DXF_TOLERANCE->setText(QString::number(DXF_main_base[0].DXF_entities_tolerance_count));
 
-			if (DXF_main_base[0].DXF_entities_tolerance_count>(Max_entitie.DXF_entities_tolerance-1))
+			if (DXF_main_base[0].DXF_entities_tolerance_count>(DXF_LE_TOLERANCE-1))
 			{
 
 				ui->DXF_TOLERANCE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1049,7 +1049,7 @@
 
 			ui->DXF_TRACE->setText(QString::number(DXF_main_base[0].DXF_entities_trace_count));
 
-			if (DXF_main_base[0].DXF_entities_trace_count>(Max_entitie.DXF_entities_trace-1))
+			if (DXF_main_base[0].DXF_entities_trace_count>(DXF_LE_TRACE-1))
 			{
 
 				ui->DXF_TRACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1061,7 +1061,7 @@
 
 			ui->DXF_UNDERLAY->setText(QString::number(DXF_main_base[0].DXF_entities_underlay_count));
 
-			if (DXF_main_base[0].DXF_entities_underlay_count>(Max_entitie.DXF_entities_underlay-1))
+			if (DXF_main_base[0].DXF_entities_underlay_count>(DXF_LE_UNDERLAY-1))
 			{
 
 				ui->DXF_UNDERLAY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1073,7 +1073,7 @@
 
 			ui->DXF_VERTEX->setText(QString::number(DXF_main_base[0].DXF_entities_vertex_count));
 
-			if (DXF_main_base[0].DXF_entities_vertex_count>(Max_entitie.DXF_entities_vertex-1))
+			if (DXF_main_base[0].DXF_entities_vertex_count>(DXF_LE_VERTEX-1))
 			{
 
 				ui->DXF_VERTEX->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1085,7 +1085,7 @@
 
 			ui->DXF_VIEWPORT->setText(QString::number(DXF_main_base[0].DXF_entities_viewport_count));
 
-			if (DXF_main_base[0].DXF_entities_viewport_count>(Max_entitie.DXF_entities_viewport-1))
+			if (DXF_main_base[0].DXF_entities_viewport_count>(DXF_LE_VIEWPORT-1))
 			{
 
 				ui->DXF_VIEWPORT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1097,7 +1097,7 @@
 
 			ui->DXF_WIPEOUT->setText(QString::number(DXF_main_base[0].DXF_entities_wipeout_count));
 
-			if (DXF_main_base[0].DXF_entities_wipeout_count>(Max_entitie.DXF_entities_wipeout-1))
+			if (DXF_main_base[0].DXF_entities_wipeout_count>(DXF_LE_WIPEOUT-1))
 			{
 
 				ui->DXF_WIPEOUT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
@@ -1109,7 +1109,7 @@
 
 			ui->DXF_XLINE->setText(QString::number(DXF_main_base[0].DXF_entities_xline_count));
 
-			if (DXF_main_base[0].DXF_entities_xline_count>(Max_entitie.DXF_entities_xline-1))
+			if (DXF_main_base[0].DXF_entities_xline_count>(DXF_LE_XLINE-1))
 			{
 
 				ui->DXF_XLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");

Modified: branches/dxftoqet2/src/csv_build_table.cpp
===================================================================
--- branches/dxftoqet2/src/csv_build_table.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/csv_build_table.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -5,115 +5,116 @@
 extern struct ALG Max_alg;
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
-extern struct DXF_header DXF_input_header[500];
-extern struct DXF_classes DXF_input_classes[1000];
-extern struct DXF_tables DXF_input_tables[20];
-extern struct DXF_table_appid DXF_input_table_appid[100];
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
-extern struct DXF_table_dimstyle DXF_input_table_dimstyle[500];
-extern struct DXF_table_layer DXF_input_table_layer[100];
-extern struct DXF_table_ltype DXF_input_table_ltype[100];
-extern struct DXF_table_style DXF_input_table_style[100];
-extern struct DXF_table_ucs DXF_input_table_ucs[100];
-extern struct DXF_table_view DXF_input_table_view[100];
-extern struct DXF_table_vport DXF_input_table_vport[100];
-extern struct DXF_block DXF_input_block[1000];
 
-extern struct DXF_block_3dface DXF_input_block_3dface[1000];
-extern struct DXF_block_3dsolid DXF_input_block_3dsolid[1000];
-extern struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[1000];
-extern struct DXF_block_arc DXF_input_block_arc[1000];
-extern struct DXF_block_attdef DXF_input_block_attdef[1000];
-extern struct DXF_block_attrib DXF_input_block_attrib[1000];
-extern struct DXF_block_body DXF_input_block_body[1000];
-extern struct DXF_block_circle DXF_input_block_circle[1000];
-extern struct DXF_block_dimension DXF_input_block_dimension[1000];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[1000];
-extern struct DXF_block_hatch DXF_input_block_hatch[1000];
-extern struct DXF_block_helix DXF_input_block_helix[1000];
-extern struct DXF_block_image DXF_input_block_image[1000];
-extern struct DXF_block_insert DXF_input_block_insert[1000];
-extern struct DXF_block_leader DXF_input_block_leader[1000];
-extern struct DXF_block_light DXF_input_block_light[1000];
-extern struct DXF_block_line DXF_input_block_line[1000];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[1000];
-extern struct DXF_block_mesh DXF_input_block_mesh[1000];
-extern struct DXF_block_mline DXF_input_block_mline[1000];
-extern struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[1000];
-extern struct DXF_block_mleader DXF_input_block_mleader[1000];
-extern struct DXF_block_mtext DXF_input_block_mtext[1000];
-extern struct DXF_block_oleframe DXF_input_DXF_block_oleframe[1000];
-extern struct DXF_block_ole2frame DXF_input_block_ole2frame[1000];
-extern struct DXF_block_point DXF_input_block_point[1000];
-extern struct DXF_block_polyline DXF_input_block_polyline[1000];
-extern struct DXF_block_ray DXF_input_block_ray[1000];
-extern struct DXF_block_region DXF_input_block_region[1000];
-extern struct DXF_block_section DXF_input_block_section[1000];
-extern struct DXF_block_seqend DXF_input_block_seqend[1000];
-extern struct DXF_block_shape DXF_input_block_shape[1000];
-extern struct DXF_block_solid DXF_input_block_solid[1000];
-extern struct DXF_block_spline DXF_input_block_spline[1000];
-extern struct DXF_block_sun DXF_input_block_sun[1000];
-extern struct DXF_block_surface DXF_input_block_surface[1000];
-extern struct DXF_block_table DXF_input_block_table[1000];
-extern struct DXF_block_text DXF_input_block_text[1000];
-extern struct DXF_block_tolerance DXF_input_block_tolerance[1000];
-extern struct DXF_block_trace DXF_input_block_trace[1000];
-extern struct DXF_block_underlay DXF_input_block_underlay[1000];
-extern struct DXF_block_vertex DXF_input_block_vertex[1000];
-extern struct DXF_block_viewport DXF_input_block_viewport[1000];
-extern struct DXF_block_wipeout DXF_input_block_wipeout[1000];
-extern struct DXF_block_xline DXF_input_block_xline[1000];
-extern struct DXF_entities_3dface DXF_input_entities_3dface[1000];
-extern struct DXF_entities_3dsolid DXF_input_entities_3dsolid[1000];
-extern struct DXF_entities_acad_proxy_entity DXF_input_entities_proxy_entity[1000];
-extern struct DXF_entities_arc DXF_input_entities_arc[1000];
-extern struct DXF_entities_attdef DXF_input_entities_attdef[1000];
-extern struct DXF_entities_attrib DXF_input_entities_attrib[1000];
-extern struct DXF_entities_body DXF_input_entities_body[1000];
-extern struct DXF_entities_circle DXF_input_entities_circle[100][100];
-extern struct DXF_entities_dimension DXF_input_entities_dimension[1000];
-extern struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
-extern struct DXF_entities_hatch DXF_input_entities_hatch[1000];
-extern struct DXF_entities_helix DXF_input_entities_helix[1000];
-extern struct DXF_entities_image DXF_input_entities_image[1000];
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
-extern struct DXF_entities_leader DXF_input_entities_leader[1000];
-extern struct DXF_entities_light DXF_input_entities_light[1000];
-extern struct DXF_entities_line DXF_input_entities_line[100][100];
-extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
-extern struct DXF_entities_mesh DXF_input_entities_mesh[1000];
-extern struct DXF_entities_mline DXF_input_entities_mline[1000];
-extern struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[1000];
-extern struct DXF_entities_mleader DXF_input_entities_mleader[1000];
-extern struct DXF_entities_mtext DXF_input_entities_mtext[1000];
-extern struct DXF_entities_oleframe DXF_input_DXF_entities_oleframe[1000];
-extern struct DXF_entities_ole2frame DXF_input_entities_ole2frame[1000];
-extern struct DXF_entities_point DXF_input_entities_point[1000];
-extern struct DXF_entities_polyline DXF_input_entities_polyline[1000];
-extern struct DXF_entities_ray DXF_input_entities_ray[1000];
-extern struct DXF_entities_region DXF_input_entities_region[1000];
-extern struct DXF_entities_section DXF_input_entities_section[1000];
-extern struct DXF_entities_seqend DXF_input_entities_seqend[1000];
-extern struct DXF_entities_shape DXF_input_entities_shape[1000];
-extern struct DXF_entities_solid DXF_input_entities_solid[1000];
-extern struct DXF_entities_spline DXF_input_entities_spline[1000];
-extern struct DXF_entities_sun DXF_input_entities_sun[1000];
-extern struct DXF_entities_surface DXF_input_entities_surface[1000];
-extern struct DXF_entities_table DXF_input_entities_table[1000];
-extern struct DXF_entities_text DXF_input_entities_text[1000];
-extern struct DXF_entities_tolerance DXF_input_entities_tolerance[1000];
-extern struct DXF_entities_trace DXF_input_entities_trace[1000];
-extern struct DXF_entities_underlay DXF_input_entities_underlay[1000];
-extern struct DXF_entities_vertex DXF_input_entities_vertex[1000];
-extern struct DXF_entities_viewport DXF_input_entities_viewport[1000];
-extern struct DXF_entities_wipeout DXF_input_entities_wipeout[1000];
-extern struct DXF_entities_xline DXF_input_entities_xline[1000];
+extern struct DXF_header DXF_input_header[DXF_L_HEADER];
+extern struct DXF_classes DXF_input_classes[DXF_L_CLASSES];
+extern struct DXF_tables DXF_input_tables[DXF_L_TABLES];
+extern struct DXF_table_appid DXF_input_table_appid[DXF_L_APPID];
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+extern struct DXF_table_dimstyle DXF_input_table_dimstyle[DXF_L_DIMSTYLE];
+extern struct DXF_table_layer DXF_input_table_layer[DXF_L_LAYER];
+extern struct DXF_table_ltype DXF_input_table_ltype[DXF_L_LTYPE];
+extern struct DXF_table_style DXF_input_table_style[DXF_L_STYLE];
+extern struct DXF_table_ucs DXF_input_table_ucs[DXF_L_UCS];
+extern struct DXF_table_view DXF_input_table_view[DXF_L_VIEW];
+extern struct DXF_table_vport DXF_input_table_vport[DXF_L_VPORT];
+extern struct DXF_block DXF_input_block[DXF_L_BLOCK];
+extern struct DXF_end_block DXF_input_end_block[DXF_L_BLOCK];
 
+extern struct DXF_block_3dface DXF_input_block_3dface[DXF_L_BLOCK][DXF_LB_3DFACE];
+extern struct DXF_block_3dsolid DXF_input_block_3dsolid[DXF_L_BLOCK][DXF_LB_3DSOLID];
+extern struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[DXF_L_BLOCK][DXF_LB_PROXY_ENTITY];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_body DXF_input_block_body[DXF_L_BLOCK][DXF_LB_BODY];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_dimension DXF_input_block_dimension[DXF_L_BLOCK][DXF_LB_DIMENSION];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
+extern struct DXF_block_hatch DXF_input_block_hatch[DXF_L_BLOCK][DXF_LB_HATCH];
+extern struct DXF_block_helix DXF_input_block_helix[DXF_L_BLOCK][DXF_LB_HELIX];
+extern struct DXF_block_image DXF_input_block_image[DXF_L_BLOCK][DXF_LB_IMAGE];
+extern struct DXF_block_insert DXF_input_block_insert[DXF_L_BLOCK][DXF_LB_INSERT];
+extern struct DXF_block_leader DXF_input_block_leader[DXF_L_BLOCK][DXF_LB_LEADER];
+extern struct DXF_block_light DXF_input_block_light[DXF_L_BLOCK][DXF_LB_LIGHT];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_mesh DXF_input_block_mesh[DXF_L_BLOCK][DXF_LB_MESH ];
+extern struct DXF_block_mline DXF_input_block_mline[DXF_L_BLOCK][DXF_LB_MLINE];
+extern struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[DXF_L_BLOCK][DXF_LB_MLEADERSTYLE];
+extern struct DXF_block_mleader DXF_input_block_mleader[DXF_L_BLOCK][DXF_LB_MLEADER];
+extern struct DXF_block_mtext DXF_input_block_mtext[DXF_L_BLOCK][DXF_LB_MTEXT];
+extern struct DXF_block_oleframe DXF_input_DXF_block_oleframe[DXF_L_BLOCK][DXF_LB_OLEFRAME];
+extern struct DXF_block_ole2frame DXF_input_block_ole2frame[DXF_L_BLOCK][DXF_LB_OLE2FRAME];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_ray DXF_input_block_ray[DXF_L_BLOCK][DXF_LB_RAY];
+extern struct DXF_block_region DXF_input_block_region[DXF_L_BLOCK][DXF_LB_REGION];
+extern struct DXF_block_section DXF_input_block_section[DXF_L_BLOCK][DXF_LB_SECTION];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_shape DXF_input_block_shape[DXF_L_BLOCK][DXF_LB_SHAPE];
+extern struct DXF_block_solid DXF_input_block_solid[DXF_L_BLOCK][DXF_LB_SOLID];
+extern struct DXF_block_spline DXF_input_block_spline[DXF_L_BLOCK][DXF_LB_SPLINE];
+extern struct DXF_block_sun DXF_input_block_sun[DXF_L_BLOCK][DXF_LB_SUN];
+extern struct DXF_block_surface DXF_input_block_surface[DXF_L_BLOCK][DXF_LB_SURFACE];
+extern struct DXF_block_table DXF_input_block_table[DXF_L_BLOCK][DXF_LB_TABLE];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_tolerance DXF_input_block_tolerance[DXF_L_BLOCK][DXF_LB_TOLERANCE];
+extern struct DXF_block_trace DXF_input_block_trace[DXF_L_BLOCK][DXF_LB_TRACE];
+extern struct DXF_block_underlay DXF_input_block_underlay[DXF_L_BLOCK][DXF_LB_UNDERLAY];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
+extern struct DXF_block_viewport DXF_input_block_viewport[DXF_L_BLOCK][DXF_LB_VIEWPORT];
+extern struct DXF_block_wipeout DXF_input_block_wipeout[DXF_L_BLOCK][DXF_LB_WIPEOUT];
+extern struct DXF_block_xline DXF_input_block_xline[DXF_L_BLOCK][DXF_LB_XLINE];
 
-extern struct DXF_end_block DXF_input_end_block[1000];
-extern struct DXF_file_input DXF_input_entities[100000];
-extern struct DXF_file_input DXF_input_thumbnailimage[10000];
+extern struct DXF_entities_3dface DXF_input_entities_3dface[DXF_LE_3DFACE];
+extern struct DXF_entities_3dsolid DXF_input_entities_3dsolid[DXF_LE_3DSOLID];
+extern struct DXF_entities_acad_proxy_entity DXF_input_entities_acad_proxy_entity[DXF_LE_PROXY_ENTITY];
+extern struct DXF_entities_arc DXF_input_entities_arc[DXF_LE_ARC];
+extern struct DXF_entities_attdef DXF_input_entities_attdef[DXF_LE_ATTDEF];
+extern struct DXF_entities_attrib DXF_input_entities_attrib[DXF_LE_ATTRIB];
+extern struct DXF_entities_body DXF_input_entities_body[DXF_LE_BODY];
+extern struct DXF_entities_circle DXF_input_entities_circle[DXF_LE_CIRCLE];
+extern struct DXF_entities_dimension DXF_input_entities_dimension[DXF_LE_DIMENSION];
+extern struct DXF_entities_ellipse DXF_input_entities_ellipse[DXF_LE_ELLIPSE];
+extern struct DXF_entities_hatch DXF_input_entities_hatch[DXF_LE_HATCH];
+extern struct DXF_entities_helix DXF_input_entities_helix[DXF_LE_HELIX];
+extern struct DXF_entities_image DXF_input_entities_image[DXF_LE_IMAGE];
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
+extern struct DXF_entities_leader DXF_input_entities_leader[DXF_LE_LEADER];
+extern struct DXF_entities_light DXF_input_entities_light[DXF_LE_LIGHT];
+extern struct DXF_entities_line DXF_input_entities_line[DXF_LE_LINE];
+extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[DXF_LE_LWPOLYLINE];
+extern struct DXF_entities_mesh DXF_input_entities_mesh[DXF_LE_MESH];
+extern struct DXF_entities_mline DXF_input_entities_mline[DXF_LE_MLINE];
+extern struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[DXF_LE_MLEADERSTYLE];
+extern struct DXF_entities_mleader DXF_input_entities_mleader[DXF_LE_MLEADER];
+extern struct DXF_entities_mtext DXF_input_entities_mtext[DXF_LE_MTEXT];
+extern struct DXF_entities_oleframe DXF_input_entities_oleframe[DXF_LE_OLEFRAME];
+extern struct DXF_entities_ole2frame DXF_input_entities_ole2frame[DXF_LE_OLE2FRAME];
+extern struct DXF_entities_point DXF_input_entities_point[DXF_LE_POINT];
+extern struct DXF_entities_polyline DXF_input_entities_polyline[DXF_LE_POLYLINE];
+extern struct DXF_entities_ray DXF_input_entities_ray[DXF_LE_RAY];
+extern struct DXF_entities_region DXF_input_entities_region[DXF_LE_REGION];
+extern struct DXF_entities_section DXF_input_entities_section[DXF_LE_SECTION];
+extern struct DXF_entities_seqend DXF_input_entities_seqend[DXF_LE_SEQEND];
+extern struct DXF_entities_shape DXF_input_entities_shape[DXF_LE_SHAPE];
+extern struct DXF_entities_solid DXF_input_entities_solid[DXF_LE_SOLID];
+extern struct DXF_entities_spline DXF_input_entities_spline[DXF_LE_SPLINE];
+extern struct DXF_entities_sun DXF_input_entities_sun[DXF_LE_SUN];
+extern struct DXF_entities_surface DXF_input_entities_surface[DXF_LE_SURFACE];
+extern struct DXF_entities_table DXF_input_entities_table[DXF_LE_TABLE];
+extern struct DXF_entities_text DXF_input_entities_text[DXF_LE_TEXT];
+extern struct DXF_entities_tolerance DXF_input_entities_tolerance[DXF_LE_TOLERANCE];
+extern struct DXF_entities_trace DXF_input_entities_trace[DXF_LE_TRACE];
+extern struct DXF_entities_underlay DXF_input_entities_underlay[DXF_LE_UNDERLAY];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
+extern struct DXF_entities_viewport DXF_input_entities_viewport[DXF_LE_VIEWPORT];
+extern struct DXF_entities_wipeout DXF_input_entities_wipeout[DXF_LE_WIPEOUT];
+extern struct DXF_entities_xline DXF_input_entities_xline[DXF_LE_XLINE];
+
+
+
 extern struct DXF_base DXF_main_base[1];
 
 

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_arc.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_arc.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_arc.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
 
 dxf_block_arc::dxf_block_arc(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_attdef.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_attdef.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_attdef.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
 
 dxf_block_attdef::dxf_block_attdef(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_attribute.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_attribute.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_attribute.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
 
 dxf_block_attribute::dxf_block_attribute(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_circle.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_circle.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_circle.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
 
 dxf_block_circle::dxf_block_circle(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_ellipse.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_ellipse.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_ellipse.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
 
 dxf_block_ellipse::dxf_block_ellipse(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_entitie_insert.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_entitie_insert.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_entitie_insert.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -5,25 +5,24 @@
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
 
-extern struct DXF_block_line DXF_input_block_line[200][100];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-extern struct DXF_block_point DXF_input_block_point[200][100];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_seqend DXF_input_block_seqend[200][100];
-extern struct DXF_block_text DXF_input_block_text[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
 
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
 
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
 
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+
 dxf_block_entitie_insert::dxf_block_entitie_insert(QWidget *parent) : QWidget(parent)
 {
 	dxf_insert_block_color="black";

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_insert.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_insert.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_insert.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -5,25 +5,26 @@
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
 
-extern struct DXF_block_line DXF_input_block_line[200][100];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-extern struct DXF_block_point DXF_input_block_point[200][100];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_seqend DXF_input_block_seqend[200][100];
-extern struct DXF_block_text DXF_input_block_text[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
 
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
 
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
 
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
+
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+
+
 dxf_block_insert::dxf_block_insert(QWidget *parent): QWidget(parent)
 {
 	x_insert2=0;

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_lines.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_lines.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_lines.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_line DXF_input_block_line[200][5000];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
 
 dxf_block_lines::dxf_block_lines(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_lwpolyline.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_lwpolyline.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_lwpolyline.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
 
 
 dxf_block_lwpolyline::dxf_block_lwpolyline(QWidget *parent) : QWidget(parent)

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_polyline.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_polyline.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_polyline.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,8 +4,8 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
 
 dxf_block_polyline::dxf_block_polyline(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_block/dxf_block_text.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_block/dxf_block_text.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_block/dxf_block_text.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_block_text DXF_input_block_text[200][100];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
 
 dxf_block_text::dxf_block_text(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_table_layer DXF_input_table_layer[100];
+extern struct DXF_table_layer DXF_input_table_layer[DXF_L_LAYER];
 
 DXF_layer_control::DXF_layer_control(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_data.h
===================================================================
--- branches/dxftoqet2/src/dxf_data.h	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_data.h	2016-03-03 22:28:28 UTC (rev 4369)
@@ -1,10 +1,123 @@
 #ifndef DXF_DATA_H
 #define DXF_DATA_H
 
-//#include <QObject>
 #include <QtCore>
 #include <QWidget>
 
+// Array lenght constants
+// this is the only place where the are defined
+// to use them in the program
+
+#define DXF_L_HEADER 500
+#define DXF_L_CLASSES 1000
+#define DXF_L_TABLES 20
+#define DXF_L_APPID 100
+#define DXF_L_BLOCK_RECORD 500
+#define DXF_L_DIMSTYLE 500
+#define DXF_L_LAYER 100
+#define DXF_L_LTYPE 100
+#define DXF_L_STYLE 100
+#define DXF_L_UCS 100
+#define DXF_L_VIEW 100
+#define DXF_L_VPORT 100
+#define DXF_L_BLOCK 200
+#define DXF_L_ENTITIES 100000
+
+
+#define DXF_LB_3DFACE 100
+#define DXF_LB_3DSOLID 100
+#define DXF_LB_PROXY_ENTITY 100
+#define DXF_LB_ARC 100
+#define DXF_LB_ATTDEF 100
+#define DXF_LB_ATTRIB 100
+#define DXF_LB_BODY 100
+#define DXF_LB_CIRCLE 100
+#define DXF_LB_DIMENSION 100
+#define DXF_LB_ELLIPSE 100
+#define DXF_LB_HATCH 100
+#define DXF_LB_HELIX 100
+#define DXF_LB_IMAGE 100
+#define DXF_LB_INSERT 100
+#define DXF_LB_LEADER 100
+#define DXF_LB_LIGHT 100
+#define DXF_LB_LINE 5000
+#define DXF_LB_LWPOLYLINE 100
+#define DXF_LB_MESH 100
+#define DXF_LB_MLINE 100
+#define DXF_LB_MLEADERSTYLE 100
+#define DXF_LB_MLEADER 100
+#define DXF_LB_MTEXT 100
+#define DXF_LB_OLEFRAME 100
+#define DXF_LB_OLE2FRAME 100
+#define DXF_LB_POINT 100
+#define DXF_LB_POLYLINE 100
+#define DXF_LB_RAY 100
+#define DXF_LB_REGION 100
+#define DXF_LB_SECTION 100
+#define DXF_LB_SEQEND 100
+#define DXF_LB_SHAPE 100
+#define DXF_LB_SOLID 100
+#define DXF_LB_SPLINE 100
+#define DXF_LB_SUN 100
+#define DXF_LB_SURFACE 100
+#define DXF_LB_TABLE 100
+#define DXF_LB_TEXT 100
+#define DXF_LB_TOLERANCE 100
+#define DXF_LB_TRACE 100
+#define DXF_LB_UNDERLAY 100
+#define DXF_LB_VERTEX 500
+#define DXF_LB_VIEWPORT 100
+#define DXF_LB_WIPEOUT 100
+#define DXF_LB_XLINE 100
+
+#define DXF_LE_3DFACE 1000
+#define DXF_LE_3DSOLID 1000
+#define DXF_LE_PROXY_ENTITY 1000
+#define DXF_LE_ARC 1000
+#define DXF_LE_ATTDEF 1000
+#define DXF_LE_ATTRIB 1000
+#define DXF_LE_BODY 1000
+#define DXF_LE_CIRCLE 1000
+#define DXF_LE_DIMENSION 1000
+#define DXF_LE_ELLIPSE 1000
+#define DXF_LE_HATCH 1000
+#define DXF_LE_HELIX 1000
+#define DXF_LE_IMAGE 1000
+#define DXF_LE_INSERT 1000
+#define DXF_LE_LEADER 1000
+#define DXF_LE_LIGHT 1000
+#define DXF_LE_LINE 100000
+#define DXF_LE_LWPOLYLINE 1000
+#define DXF_LE_MESH 1000
+#define DXF_LE_MLINE 1000
+#define DXF_LE_MLEADERSTYLE 1000
+#define DXF_LE_MLEADER 1000
+#define DXF_LE_MTEXT 1000
+#define DXF_LE_OLEFRAME 1000
+#define DXF_LE_OLE2FRAME 1000
+#define DXF_LE_POINT 1000
+#define DXF_LE_POLYLINE 1000
+#define DXF_LE_RAY 1000
+#define DXF_LE_REGION 1000
+#define DXF_LE_SECTION 1000
+#define DXF_LE_SEQEND 1000
+#define DXF_LE_SHAPE 1000
+#define DXF_LE_SOLID 1000
+#define DXF_LE_SPLINE 1000
+#define DXF_LE_SUN 1000
+#define DXF_LE_SURFACE 1000
+#define DXF_LE_TABLE 1000
+#define DXF_LE_TEXT 1000
+#define DXF_LE_TOLERANCE 1000
+#define DXF_LE_TRACE 1000
+#define DXF_LE_UNDERLAY 1000
+#define DXF_LE_VERTEX 50000
+#define DXF_LE_VIEWPORT 1000
+#define DXF_LE_WIPEOUT 1000
+#define DXF_LE_XLINE 1000
+
+
+
 //#include <QtWidgets>
 
 

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_arc.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_arc.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_arc.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_arc DXF_input_entities_arc[1000];
+extern struct DXF_entities_arc DXF_input_entities_arc[DXF_LE_ARC];
 
 dxf_entitie_arc::dxf_entitie_arc(QWidget *parent): QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attdef.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attdef.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attdef.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_attdef DXF_input_entities_attdef[1000];
+extern struct DXF_entities_attdef DXF_input_entities_attdef[DXF_LE_ATTDEF];
 
 dxf_entitie_attdef::dxf_entitie_attdef(QWidget *parent) : QWidget(parent)//: QMainWindow(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attrinute.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attrinute.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_attrinute.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_attrib DXF_input_entities_attrib[1000];
+extern struct DXF_entities_attrib DXF_input_entities_attrib[DXF_LE_ATTRIB];
 
 dxf_entitie_attrinute::dxf_entitie_attrinute(QWidget *parent) : QWidget(parent)//: QMainWindow(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_circle.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_circle.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_circle.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_circle DXF_input_entities_circle[1000];
+extern struct DXF_entities_circle DXF_input_entities_circle[DXF_LE_CIRCLE];
 
 dxf_entitie_circle::dxf_entitie_circle(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_ellipse.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_ellipse.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_ellipse.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
+extern struct DXF_entities_ellipse DXF_input_entities_ellipse[DXF_LE_ELLIPSE];
 
 dxf_entitie_ellipse::dxf_entitie_ellipse(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_insert.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_insert.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_insert.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -5,26 +5,27 @@
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
 
-extern struct DXF_block_line DXF_input_block_line[200][100];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-extern struct DXF_block_point DXF_input_block_point[200][100];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_seqend DXF_input_block_seqend[200][100];
-extern struct DXF_block_text DXF_input_block_text[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
 
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
 
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
 
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
 
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+
+
+
 dxf_entitie_insert::dxf_entitie_insert(QWidget *parent) : QWidget(parent)
 {
 

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_line.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_line.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_line.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_line DXF_input_entities_line[100000];
+extern struct DXF_entities_line DXF_input_entities_line[DXF_LE_LINE];
 
 dxf_entitie_line::dxf_entitie_line(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_lwpolyline.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_lwpolyline.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_lwpolyline.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,8 +4,8 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
-extern struct DXF_entities_vertex DXF_input_entities_vertex[50000];
+extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[DXF_LE_LWPOLYLINE];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
 
 dxf_entitie_lwpolyline::dxf_entitie_lwpolyline(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_point.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_point.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_point.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_point DXF_input_entities_point[1000];
+extern struct DXF_entities_point DXF_input_entities_point[DXF_LE_POINT];
 
 dxf_entitie_point::dxf_entitie_point(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_polyline.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_polyline.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_polyline.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,8 +4,8 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_polyline DXF_input_entities_polyline[1000];
-extern struct DXF_entities_vertex DXF_input_entities_vertex[50000];
+extern struct DXF_entities_polyline DXF_input_entities_polyline[DXF_LE_POLYLINE];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
 
 dxf_entitie_polyline::dxf_entitie_polyline(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_entitie/dxf_entitie_text.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_entitie/dxf_entitie_text.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_entitie/dxf_entitie_text.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -4,7 +4,7 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 extern struct DXF_base DXF_main_base[1];
-extern struct DXF_entities_text DXF_input_entities_text[1000];
+extern struct DXF_entities_text DXF_input_entities_text[DXF_LE_TEXT];
 
 dxf_entitie_text::dxf_entitie_text(QWidget *parent) : QWidget(parent)
 {

Modified: branches/dxftoqet2/src/dxf_load.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_load.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_load.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -8,24 +8,24 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 
-extern struct DXF_header DXF_input_header[500];
-extern struct DXF_classes DXF_input_classes[1000];
-extern struct DXF_tables DXF_input_tables[20];
-extern struct DXF_table_appid DXF_input_table_appid[100];
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
-extern struct DXF_table_dimstyle DXF_input_table_dimstyle[500];
-extern struct DXF_table_layer DXF_input_table_layer[100];
-extern struct DXF_table_ltype DXF_input_table_ltype[100];
-extern struct DXF_table_style DXF_input_table_style[100];
-extern struct DXF_table_ucs DXF_input_table_ucs[100];
-extern struct DXF_table_view DXF_input_table_view[100];
-extern struct DXF_table_vport DXF_input_table_vport[100];
-extern struct DXF_block DXF_input_block[200];
-extern struct DXF_end_block DXF_input_end_block[200];
+extern struct DXF_header DXF_input_header[DXF_L_HEADER];
+extern struct DXF_classes DXF_input_classes[DXF_L_CLASSES];
+extern struct DXF_tables DXF_input_tables[DXF_L_TABLES];
+extern struct DXF_table_appid DXF_input_table_appid[DXF_L_APPID];
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+extern struct DXF_table_dimstyle DXF_input_table_dimstyle[DXF_L_DIMSTYLE];
+extern struct DXF_table_layer DXF_input_table_layer[DXF_L_LAYER];
+extern struct DXF_table_ltype DXF_input_table_ltype[DXF_L_LTYPE];
+extern struct DXF_table_style DXF_input_table_style[DXF_L_STYLE];
+extern struct DXF_table_ucs DXF_input_table_ucs[DXF_L_UCS];
+extern struct DXF_table_view DXF_input_table_view[DXF_L_VIEW];
+extern struct DXF_table_vport DXF_input_table_vport[DXF_L_VPORT];
+extern struct DXF_block DXF_input_block[DXF_L_BLOCK];
+extern struct DXF_end_block DXF_input_end_block[DXF_L_BLOCK];
 
-//extern struct DXF_file_input DXF_input_entities[100000];
-//extern struct DXF_file_input DXF_input_thumbnailimage[10000];
 
+
+
 extern struct DXF_base DXF_main_base[1];
 
 

Modified: branches/dxftoqet2/src/dxf_split.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_split.cpp	2016-03-02 22:40:35 UTC (rev 4368)
+++ branches/dxftoqet2/src/dxf_split.cpp	2016-03-03 22:28:28 UTC (rev 4369)
@@ -7,116 +7,115 @@
 extern struct BLOCK Max_block;
 extern struct ENTITIE Max_entitie;
 
-extern struct DXF_header DXF_input_header[500];
-extern struct DXF_classes DXF_input_classes[1000];
-extern struct DXF_tables DXF_input_tables[20];
-extern struct DXF_table_appid DXF_input_table_appid[100];
-extern struct DXF_table_block_record DXF_input_table_block_record[500];
-extern struct DXF_table_dimstyle DXF_input_table_dimstyle[500];
-extern struct DXF_table_layer DXF_input_table_layer[100];
-extern struct DXF_table_ltype DXF_input_table_ltype[100];
-extern struct DXF_table_style DXF_input_table_style[100];
-extern struct DXF_table_ucs DXF_input_table_ucs[100];
-extern struct DXF_table_view DXF_input_table_view[100];
-extern struct DXF_table_vport DXF_input_table_vport[100];
-extern struct DXF_block DXF_input_block[200];
+extern struct DXF_header DXF_input_header[DXF_L_HEADER];
+extern struct DXF_classes DXF_input_classes[DXF_L_CLASSES];
+extern struct DXF_tables DXF_input_tables[DXF_L_TABLES];
+extern struct DXF_table_appid DXF_input_table_appid[DXF_L_APPID];
+extern struct DXF_table_block_record DXF_input_table_block_record[DXF_L_BLOCK_RECORD];
+extern struct DXF_table_dimstyle DXF_input_table_dimstyle[DXF_L_DIMSTYLE];
+extern struct DXF_table_layer DXF_input_table_layer[DXF_L_LAYER];
+extern struct DXF_table_ltype DXF_input_table_ltype[DXF_L_LTYPE];
+extern struct DXF_table_style DXF_input_table_style[DXF_L_STYLE];
+extern struct DXF_table_ucs DXF_input_table_ucs[DXF_L_UCS];
+extern struct DXF_table_view DXF_input_table_view[DXF_L_VIEW];
+extern struct DXF_table_vport DXF_input_table_vport[DXF_L_VPORT];
+extern struct DXF_block DXF_input_block[DXF_L_BLOCK];
+extern struct DXF_end_block DXF_input_end_block[DXF_L_BLOCK];
 
-extern struct DXF_block_3dface DXF_input_block_3dface[200][100];
-extern struct DXF_block_3dsolid DXF_input_block_3dsolid[200][100];
-extern struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[200][100];
-extern struct DXF_block_arc DXF_input_block_arc[200][100];
-extern struct DXF_block_attdef DXF_input_block_attdef[200][100];
-extern struct DXF_block_attrib DXF_input_block_attrib[200][100];
-extern struct DXF_block_body DXF_input_block_body[200][100];
-extern struct DXF_block_circle DXF_input_block_circle[200][100];
-extern struct DXF_block_dimension DXF_input_block_dimension[200][100];
-extern struct DXF_block_ellipse DXF_input_block_ellipse[200][100];
-extern struct DXF_block_hatch DXF_input_block_hatch[200][100];
-extern struct DXF_block_helix DXF_input_block_helix[200][100];
-extern struct DXF_block_image DXF_input_block_image[200][100];
-extern struct DXF_block_insert DXF_input_block_insert[200][100];
-extern struct DXF_block_leader DXF_input_block_leader[200][100];
-extern struct DXF_block_light DXF_input_block_light[200][100];
-extern struct DXF_block_line DXF_input_block_line[200][5000];
-extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[200][100];
-extern struct DXF_block_mesh DXF_input_block_mesh[200][100];
-extern struct DXF_block_mline DXF_input_block_mline[200][100];
-extern struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[200][100];
-extern struct DXF_block_mleader DXF_input_block_mleader[200][100];
-extern struct DXF_block_mtext DXF_input_block_mtext[200][100];
-extern struct DXF_block_oleframe DXF_input_DXF_block_oleframe[200][100];
-extern struct DXF_block_ole2frame DXF_input_block_ole2frame[200][100];
-extern struct DXF_block_point DXF_input_block_point[200][100];
-extern struct DXF_block_polyline DXF_input_block_polyline[200][100];
-extern struct DXF_block_ray DXF_input_block_ray[200][100];
-extern struct DXF_block_region DXF_input_block_region[200][100];
-extern struct DXF_block_section DXF_input_block_section[200][100];
-extern struct DXF_block_seqend DXF_input_block_seqend[200][100];
-extern struct DXF_block_shape DXF_input_block_shape[200][100];
-extern struct DXF_block_solid DXF_input_block_solid[200][100];
-extern struct DXF_block_spline DXF_input_block_spline[200][100];
-extern struct DXF_block_sun DXF_input_block_sun[200][100];
-extern struct DXF_block_surface DXF_input_block_surface[200][100];
-extern struct DXF_block_table DXF_input_block_table[200][100];
-extern struct DXF_block_text DXF_input_block_text[200][100];
-extern struct DXF_block_tolerance DXF_input_block_tolerance[200][100];
-extern struct DXF_block_trace DXF_input_block_trace[200][100];
-extern struct DXF_block_underlay DXF_input_block_underlay[200][100];
-extern struct DXF_block_vertex DXF_input_block_vertex[200][500];
-extern struct DXF_block_viewport DXF_input_block_viewport[200][100];
-extern struct DXF_block_wipeout DXF_input_block_wipeout[200][100];
-extern struct DXF_block_xline DXF_input_block_xline[200][100];
+extern struct DXF_block_3dface DXF_input_block_3dface[DXF_L_BLOCK][DXF_LB_3DFACE];
+extern struct DXF_block_3dsolid DXF_input_block_3dsolid[DXF_L_BLOCK][DXF_LB_3DSOLID];
+extern struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[DXF_L_BLOCK][DXF_LB_PROXY_ENTITY];
+extern struct DXF_block_arc DXF_input_block_arc[DXF_L_BLOCK][DXF_LB_ARC];
+extern struct DXF_block_attdef DXF_input_block_attdef[DXF_L_BLOCK][DXF_LB_ATTDEF];
+extern struct DXF_block_attrib DXF_input_block_attrib[DXF_L_BLOCK][DXF_LB_ATTRIB];
+extern struct DXF_block_body DXF_input_block_body[DXF_L_BLOCK][DXF_LB_BODY];
+extern struct DXF_block_circle DXF_input_block_circle[DXF_L_BLOCK][DXF_LB_CIRCLE];
+extern struct DXF_block_dimension DXF_input_block_dimension[DXF_L_BLOCK][DXF_LB_DIMENSION];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[DXF_L_BLOCK][DXF_LB_ELLIPSE];
+extern struct DXF_block_hatch DXF_input_block_hatch[DXF_L_BLOCK][DXF_LB_HATCH];
+extern struct DXF_block_helix DXF_input_block_helix[DXF_L_BLOCK][DXF_LB_HELIX];
+extern struct DXF_block_image DXF_input_block_image[DXF_L_BLOCK][DXF_LB_IMAGE];
+extern struct DXF_block_insert DXF_input_block_insert[DXF_L_BLOCK][DXF_LB_INSERT];
+extern struct DXF_block_leader DXF_input_block_leader[DXF_L_BLOCK][DXF_LB_LEADER];
+extern struct DXF_block_light DXF_input_block_light[DXF_L_BLOCK][DXF_LB_LIGHT];
+extern struct DXF_block_line DXF_input_block_line[DXF_L_BLOCK][DXF_LB_LINE];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[DXF_L_BLOCK][DXF_LB_LWPOLYLINE];
+extern struct DXF_block_mesh DXF_input_block_mesh[DXF_L_BLOCK][DXF_LB_MESH ];
+extern struct DXF_block_mline DXF_input_block_mline[DXF_L_BLOCK][DXF_LB_MLINE];
+extern struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[DXF_L_BLOCK][DXF_LB_MLEADERSTYLE];
+extern struct DXF_block_mleader DXF_input_block_mleader[DXF_L_BLOCK][DXF_LB_MLEADER];
+extern struct DXF_block_mtext DXF_input_block_mtext[DXF_L_BLOCK][DXF_LB_MTEXT];
+extern struct DXF_block_oleframe DXF_input_DXF_block_oleframe[DXF_L_BLOCK][DXF_LB_OLEFRAME];
+extern struct DXF_block_ole2frame DXF_input_block_ole2frame[DXF_L_BLOCK][DXF_LB_OLE2FRAME];
+extern struct DXF_block_point DXF_input_block_point[DXF_L_BLOCK][DXF_LB_POINT];
+extern struct DXF_block_polyline DXF_input_block_polyline[DXF_L_BLOCK][DXF_LB_POLYLINE];
+extern struct DXF_block_ray DXF_input_block_ray[DXF_L_BLOCK][DXF_LB_RAY];
+extern struct DXF_block_region DXF_input_block_region[DXF_L_BLOCK][DXF_LB_REGION];
+extern struct DXF_block_section DXF_input_block_section[DXF_L_BLOCK][DXF_LB_SECTION];
+extern struct DXF_block_seqend DXF_input_block_seqend[DXF_L_BLOCK][DXF_LB_SEQEND];
+extern struct DXF_block_shape DXF_input_block_shape[DXF_L_BLOCK][DXF_LB_SHAPE];
+extern struct DXF_block_solid DXF_input_block_solid[DXF_L_BLOCK][DXF_LB_SOLID];
+extern struct DXF_block_spline DXF_input_block_spline[DXF_L_BLOCK][DXF_LB_SPLINE];
+extern struct DXF_block_sun DXF_input_block_sun[DXF_L_BLOCK][DXF_LB_SUN];
+extern struct DXF_block_surface DXF_input_block_surface[DXF_L_BLOCK][DXF_LB_SURFACE];
+extern struct DXF_block_table DXF_input_block_table[DXF_L_BLOCK][DXF_LB_TABLE];
+extern struct DXF_block_text DXF_input_block_text[DXF_L_BLOCK][DXF_LB_TEXT];
+extern struct DXF_block_tolerance DXF_input_block_tolerance[DXF_L_BLOCK][DXF_LB_TOLERANCE];
+extern struct DXF_block_trace DXF_input_block_trace[DXF_L_BLOCK][DXF_LB_TRACE];
+extern struct DXF_block_underlay DXF_input_block_underlay[DXF_L_BLOCK][DXF_LB_UNDERLAY];
+extern struct DXF_block_vertex DXF_input_block_vertex[DXF_L_BLOCK][DXF_LB_VERTEX];
+extern struct DXF_block_viewport DXF_input_block_viewport[DXF_L_BLOCK][DXF_LB_VIEWPORT];
+extern struct DXF_block_wipeout DXF_input_block_wipeout[DXF_L_BLOCK][DXF_LB_WIPEOUT];
+extern struct DXF_block_xline DXF_input_block_xline[DXF_L_BLOCK][DXF_LB_XLINE];
 
-extern struct DXF_entities_3dface DXF_input_entities_3dface[1000];
-extern struct DXF_entities_3dsolid DXF_input_entities_3dsolid[1000];
-extern struct DXF_entities_acad_proxy_entity DXF_input_entities_acad_proxy_entity[1000];
-extern struct DXF_entities_arc DXF_input_entities_arc[1000];
-extern struct DXF_entities_attdef DXF_input_entities_attdef[1000];
-extern struct DXF_entities_attrib DXF_input_entities_attrib[1000];
-extern struct DXF_entities_body DXF_input_entities_body[1000];
-extern struct DXF_entities_circle DXF_input_entities_circle[1000];
-extern struct DXF_entities_dimension DXF_input_entities_dimension[1000];
-extern struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
-extern struct DXF_entities_hatch DXF_input_entities_hatch[1000];
-extern struct DXF_entities_helix DXF_input_entities_helix[1000];
-extern struct DXF_entities_image DXF_input_entities_image[1000];
-extern struct DXF_entities_insert DXF_input_entities_insert[1000];
-extern struct DXF_entities_leader DXF_input_entities_leader[1000];
-extern struct DXF_entities_light DXF_input_entities_light[1000];
-extern struct DXF_entities_line DXF_input_entities_line[100000];
-extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
-extern struct DXF_entities_mesh DXF_input_entities_mesh[1000];
-extern struct DXF_entities_mline DXF_input_entities_mline[1000];
-extern struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[1000];
-extern struct DXF_entities_mleader DXF_input_entities_mleader[1000];
-extern struct DXF_entities_mtext DXF_input_entities_mtext[1000];
-extern struct DXF_entities_oleframe DXF_input_entities_oleframe[1000];
-extern struct DXF_entities_ole2frame DXF_input_entities_ole2frame[1000];
-extern struct DXF_entities_point DXF_input_entities_point[1000];
-extern struct DXF_entities_polyline DXF_input_entities_polyline[1000];
-extern struct DXF_entities_ray DXF_input_entities_ray[1000];
-extern struct DXF_entities_region DXF_input_entities_region[1000];
-extern struct DXF_entities_section DXF_input_entities_section[1000];
-extern struct DXF_entities_seqend DXF_input_entities_seqend[1000];
-extern struct DXF_entities_shape DXF_input_entities_shape[1000];
-extern struct DXF_entities_solid DXF_input_entities_solid[1000];
-extern struct DXF_entities_spline DXF_input_entities_spline[1000];
-extern struct DXF_entities_sun DXF_input_entities_sun[1000];
-extern struct DXF_entities_surface DXF_input_entities_surface[1000];
-extern struct DXF_entities_table DXF_input_entities_table[1000];
-extern struct DXF_entities_text DXF_input_entities_text[1000];
-extern struct DXF_entities_tolerance DXF_input_entities_tolerance[1000];
-extern struct DXF_entities_trace DXF_input_entities_trace[1000];
-extern struct DXF_entities_underlay DXF_input_entities_underlay[1000];
-extern struct DXF_entities_vertex DXF_input_entities_vertex[50000];
-extern struct DXF_entities_viewport DXF_input_entities_viewport[1000];
-extern struct DXF_entities_wipeout DXF_input_entities_wipeout[1000];
-extern struct DXF_entities_xline DXF_input_entities_xline[1000];
+extern struct DXF_entities_3dface DXF_input_entities_3dface[DXF_LE_3DFACE];
+extern struct DXF_entities_3dsolid DXF_input_entities_3dsolid[DXF_LE_3DSOLID];
+extern struct DXF_entities_acad_proxy_entity DXF_input_entities_acad_proxy_entity[DXF_LE_PROXY_ENTITY];
+extern struct DXF_entities_arc DXF_input_entities_arc[DXF_LE_ARC];
+extern struct DXF_entities_attdef DXF_input_entities_attdef[DXF_LE_ATTDEF];
+extern struct DXF_entities_attrib DXF_input_entities_attrib[DXF_LE_ATTRIB];
+extern struct DXF_entities_body DXF_input_entities_body[DXF_LE_BODY];
+extern struct DXF_entities_circle DXF_input_entities_circle[DXF_LE_CIRCLE];
+extern struct DXF_entities_dimension DXF_input_entities_dimension[DXF_LE_DIMENSION];
+extern struct DXF_entities_ellipse DXF_input_entities_ellipse[DXF_LE_ELLIPSE];
+extern struct DXF_entities_hatch DXF_input_entities_hatch[DXF_LE_HATCH];
+extern struct DXF_entities_helix DXF_input_entities_helix[DXF_LE_HELIX];
+extern struct DXF_entities_image DXF_input_entities_image[DXF_LE_IMAGE];
+extern struct DXF_entities_insert DXF_input_entities_insert[DXF_LE_INSERT];
+extern struct DXF_entities_leader DXF_input_entities_leader[DXF_LE_LEADER];
+extern struct DXF_entities_light DXF_input_entities_light[DXF_LE_LIGHT];
+extern struct DXF_entities_line DXF_input_entities_line[DXF_LE_LINE];
+extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[DXF_LE_LWPOLYLINE];
+extern struct DXF_entities_mesh DXF_input_entities_mesh[DXF_LE_MESH];
+extern struct DXF_entities_mline DXF_input_entities_mline[DXF_LE_MLINE];
+extern struct DXF_entities_mleaderstyle DXF_input_entities_mleaderstyle[DXF_LE_MLEADERSTYLE];
+extern struct DXF_entities_mleader DXF_input_entities_mleader[DXF_LE_MLEADER];
+extern struct DXF_entities_mtext DXF_input_entities_mtext[DXF_LE_MTEXT];
+extern struct DXF_entities_oleframe DXF_input_entities_oleframe[DXF_LE_OLEFRAME];
+extern struct DXF_entities_ole2frame DXF_input_entities_ole2frame[DXF_LE_OLE2FRAME];
+extern struct DXF_entities_point DXF_input_entities_point[DXF_LE_POINT];
+extern struct DXF_entities_polyline DXF_input_entities_polyline[DXF_LE_POLYLINE];
+extern struct DXF_entities_ray DXF_input_entities_ray[DXF_LE_RAY];
+extern struct DXF_entities_region DXF_input_entities_region[DXF_LE_REGION];
+extern struct DXF_entities_section DXF_input_entities_section[DXF_LE_SECTION];
+extern struct DXF_entities_seqend DXF_input_entities_seqend[DXF_LE_SEQEND];
+extern struct DXF_entities_shape DXF_input_entities_shape[DXF_LE_SHAPE];
+extern struct DXF_entities_solid DXF_input_entities_solid[DXF_LE_SOLID];
+extern struct DXF_entities_spline DXF_input_entities_spline[DXF_LE_SPLINE];
+extern struct DXF_entities_sun DXF_input_entities_sun[DXF_LE_SUN];
+extern struct DXF_entities_surface DXF_input_entities_surface[DXF_LE_SURFACE];
+extern struct DXF_entities_table DXF_input_entities_table[DXF_LE_TABLE];
+extern struct DXF_entities_text DXF_input_entities_text[DXF_LE_TEXT];
+extern struct DXF_entities_tolerance DXF_input_entities_tolerance[DXF_LE_TOLERANCE];
+extern struct DXF_entities_trace DXF_input_entities_trace[DXF_LE_TRACE];
+extern struct DXF_entities_underlay DXF_input_entities_underlay[DXF_LE_UNDERLAY];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[DXF_LE_VERTEX];
+extern struct DXF_entities_viewport DXF_input_entities_viewport[DXF_LE_VIEWPORT];
+extern struct DXF_entities_wipeout DXF_input_entities_wipeout[DXF_LE_WIPEOUT];
+extern struct DXF_entities_xline DXF_input_entities_xline[DXF_LE_XLINE];
 
 
-extern struct DXF_end_block DXF_input_end_block[200];
-//extern struct DXF_file_input DXF_input_entities[100000];
-//extern struct DXF_file_input DXF_input_thumbnailimage[10000];
+
 extern struct DXF_base DXF_main_base[1];
 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/