[qet] [4120] Add new files

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


Revision: 4120
Author:   scorpio810
Date:     2015-08-15 14:37:46 +0200 (Sat, 15 Aug 2015)
Log Message:
-----------
Add new files

Added Paths:
-----------
    branches/dxftoqet2/DXFtoQET.pro
    branches/dxftoqet2/csv_create_elmt.cpp
    branches/dxftoqet2/csv_create_elmt.h
    branches/dxftoqet2/dxf_create_elmt.cpp
    branches/dxftoqet2/dxf_create_elmt.h
    branches/dxftoqet2/dxftoqet_mainwindow.cpp
    branches/dxftoqet2/dxftoqet_mainwindow.h
    branches/dxftoqet2/dxftoqet_mainwindow.ui
    branches/dxftoqet2/icon/
    branches/dxftoqet2/icon/document-open dxf-csv.png
    branches/dxftoqet2/icon/document-open dxf-csv.xcf
    branches/dxftoqet2/icon/document-open.png
    branches/dxftoqet2/icon/document-save-as elmt.png
    branches/dxftoqet2/icon/document-save-as elmt.xcf
    branches/dxftoqet2/icon/document-save-as qet.png
    branches/dxftoqet2/icon/document-save-as qet.xcf
    branches/dxftoqet2/icon/document-save-as.png
    branches/dxftoqet2/main.cpp
    branches/dxftoqet2/src/
    branches/dxftoqet2/src/csv_build_table.cpp
    branches/dxftoqet2/src/csv_build_table.h
    branches/dxftoqet2/src/dxf/
    branches/dxftoqet2/src/dxf/dxf_arc.cpp
    branches/dxftoqet2/src/dxf/dxf_arc.h
    branches/dxftoqet2/src/dxf/dxf_attdef.cpp
    branches/dxftoqet2/src/dxf/dxf_attdef.h
    branches/dxftoqet2/src/dxf/dxf_circle.cpp
    branches/dxftoqet2/src/dxf/dxf_circle.h
    branches/dxftoqet2/src/dxf/dxf_line.cpp
    branches/dxftoqet2/src/dxf/dxf_line.h
    branches/dxftoqet2/src/dxf/dxf_point.cpp
    branches/dxftoqet2/src/dxf/dxf_point.h
    branches/dxftoqet2/src/dxf/dxf_rect.cpp
    branches/dxftoqet2/src/dxf/dxf_rect.h
    branches/dxftoqet2/src/dxf/dxf_text.cpp
    branches/dxftoqet2/src/dxf/dxf_text.h
    branches/dxftoqet2/src/dxf_base_types/
    branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_input.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_line.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h
    branches/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp
    branches/dxftoqet2/src/dxf_base_types/dxf_base_text.h
    branches/dxftoqet2/src/dxf_control/
    branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
    branches/dxftoqet2/src/dxf_control/dxf_layer_control.h
    branches/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp
    branches/dxftoqet2/src/dxf_control/dxf_ltype_control.h
    branches/dxftoqet2/src/dxf_control/dxf_text_control.cpp
    branches/dxftoqet2/src/dxf_control/dxf_text_control.h
    branches/dxftoqet2/src/dxf_data.cpp
    branches/dxftoqet2/src/dxf_data.h
    branches/dxftoqet2/src/dxf_load.cpp
    branches/dxftoqet2/src/dxf_load.h
    branches/dxftoqet2/src/dxf_ltype_control.h
    branches/dxftoqet2/src/dxf_split.cpp
    branches/dxftoqet2/src/dxf_split.h
    branches/dxftoqet2/src/qet_base_types/
    branches/dxftoqet2/src/qet_base_types/baseelmt.cpp
    branches/dxftoqet2/src/qet_base_types/baseelmt.h
    branches/dxftoqet2/src/split_csv.cpp
    branches/dxftoqet2/src/split_csv.h

Added: branches/dxftoqet2/DXFtoQET.pro
===================================================================
--- branches/dxftoqet2/DXFtoQET.pro	                        (rev 0)
+++ branches/dxftoqet2/DXFtoQET.pro	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,80 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2015-05-18T20:05:44
+#
+#-------------------------------------------------
+
+QT       += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = DXFtoQET
+TEMPLATE = app
+
+INCLUDEPATH += src \
+            src/ui
+
+SOURCES += main.cpp\
+        dxftoqet_mainwindow.cpp \
+    src/dxf_data.cpp \
+    src/dxf_load.cpp \
+    src/dxf_split.cpp \
+    src/split_csv.cpp \
+    src/dxf_base_types/dxf_base_line.cpp \
+    src/qet_base_types/baseelmt.cpp \
+    dxf_create_elmt.cpp \
+    src/csv_build_table.cpp \
+    src/dxf_base_types/dxf_base_terminal.cpp \
+    src/dxf_base_types/dxf_base_input.cpp \
+    src/dxf/dxf_line.cpp \
+    src/dxf/dxf_point.cpp \
+    src/dxf/dxf_arc.cpp \
+    src/dxf/dxf_circle.cpp \
+    src/dxf/dxf_attdef.cpp \
+    src/dxf_base_types/dxf_base_arc.cpp \
+    src/dxf_control/dxf_ltype_control.cpp \
+    src/dxf_control/dxf_text_control.cpp \
+    src/dxf_control/dxf_layer_control.cpp \
+    src/dxf_base_types/dxf_base_circle.cpp \
+    csv_create_elmt.cpp \
+    src/dxf_base_types/dxf_base_rectangel.cpp \
+    src/dxf_base_types/dxf_base_text.cpp \
+    src/dxf/dxf_text.cpp \
+    src/dxf/dxf_rect.cpp
+
+HEADERS  += dxftoqet_mainwindow.h \
+    src/dxf_data.h \
+    src/dxf_load.h \
+    src/dxf_split.h \
+    src/split_csv.h \
+    src/dxf_base_types/dxf_base_line.h \
+    src/qet_base_types/baseelmt.h \
+    dxf_create_elmt.h \
+    src/csv_build_table.h \
+    src/dxf_base_types/dxf_base_terminal.h \
+    src/dxf_base_types/dxf_base_input.h \
+    src/dxf/dxf_line.h \
+    src/dxf/dxf_point.h \
+    src/dxf/dxf_arc.h \
+    src/dxf/dxf_circle.h \
+    src/dxf/dxf_attdef.h \
+    src/dxf_base_types/dxf_base_arc.h \
+    src/dxf_ltype_control.h \
+    src/dxf_control/dxf_ltype_control.h \
+    src/dxf_control/dxf_text_control.h \
+    src/dxf_control/dxf_layer_control.h \
+    src/dxf_base_types/dxf_base_circle.h \
+    csv_create_elmt.h \
+    src/dxf_base_types/dxf_base_rectangel.h \
+    src/dxf_base_types/dxf_base_text.h \
+    src/dxf/dxf_text.h \
+    src/dxf/dxf_rect.h
+
+FORMS    += dxftoqet_mainwindow.ui
+
+RESOURCES +=
+
+OTHER_FILES += \
+    icon/document-open dxf-csv.png \
+    icon/document-save-as elmt.png \
+    icon/document-save-as qet.png

Added: branches/dxftoqet2/csv_create_elmt.cpp
===================================================================
--- branches/dxftoqet2/csv_create_elmt.cpp	                        (rev 0)
+++ branches/dxftoqet2/csv_create_elmt.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,410 @@
+#include "csv_create_elmt.h"
+
+extern struct DXF_base DXF_main_base[1];
+
+csv_create_elmt::csv_create_elmt(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString csv_create_elmt::Make_ELMT()
+
+{
+
+	Result_csv="";
+	sw1=0;
+	sw2=0;
+
+
+
+	BaseELMT Create_ELMT;
+
+	Count_lines=0;
+	Elmt_Count_csv=0;
+	Split_Count_csv=0;
+
+
+	Start_Line=DXF_main_base[0].csv_start-1;
+	Header_Line=DXF_main_base[0].csv_header-1;
+	Split_Line=DXF_main_base[0].csv_split;
+	Input_Lines=DXF_main_base[0].dxf_csv_line_count;
+
+	Count_lines=Start_Line;
+
+	Row_pos=0;
+
+	while (sw1==0)
+	{
+
+		Create_ELMT.ELMT_definition_height="100";
+		Create_ELMT.ELMT_definition_width="500";
+		Create_ELMT.ELMT_definition_version="0.5";
+		Create_ELMT.ELMT_definition_hotspot_x="0";
+		Create_ELMT.ELMT_definition_hotspot_y="0";
+		Create_ELMT.ELMT_definition_link_type="master";
+		Create_ELMT.ELMT_definition_type="element";
+		Create_ELMT.ELMT_definition_orientation="dyyy";
+
+		Result_csv.append(Create_ELMT.DefinitionStart());
+
+		Result_csv.append(Create_ELMT.Uuid());
+
+		Create_ELMT.ELMT_Name_text_ar=DXF_main_base[0].DXF_ELMT_Name_text_ar ;
+		Create_ELMT.ELMT_Name_text_ar.append("-");
+		Create_ELMT.ELMT_Name_text_ar.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_ar != "")
+		{
+			Create_ELMT.ELMT_Name_ar="ar";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_ar="-";
+		}
+
+
+		Create_ELMT.ELMT_Name_text_de=DXF_main_base[0].DXF_ELMT_Name_text_de;
+		Create_ELMT.ELMT_Name_text_de.append("-");
+		Create_ELMT.ELMT_Name_text_de.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_de != "")
+		{
+			Create_ELMT.ELMT_Name_de="de";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_de="-";
+		}
+
+
+		Create_ELMT.ELMT_Name_text_en=DXF_main_base[0].DXF_ELMT_Name_text_en;
+		Create_ELMT.ELMT_Name_text_en.append("-");
+		Create_ELMT.ELMT_Name_text_en.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_en != "")
+		{
+			Create_ELMT.ELMT_Name_en="en";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_en="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_it=DXF_main_base[0].DXF_ELMT_Name_text_it;
+		Create_ELMT.ELMT_Name_text_it.append("-");
+		Create_ELMT.ELMT_Name_text_it.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_it != "")
+		{
+			Create_ELMT.ELMT_Name_it="it";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_it="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_fr=DXF_main_base[0].DXF_ELMT_Name_text_fr;
+		Create_ELMT.ELMT_Name_text_fr.append("-");
+		Create_ELMT.ELMT_Name_text_fr.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_fr != "")
+		{
+			Create_ELMT.ELMT_Name_fr="fr";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_fr="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_pl=DXF_main_base[0].DXF_ELMT_Name_text_pl;
+		Create_ELMT.ELMT_Name_text_pl.append("-");
+		Create_ELMT.ELMT_Name_text_pl.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_pl != "")
+		{
+			Create_ELMT.ELMT_Name_pl="pl";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_pl="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_es=DXF_main_base[0].DXF_ELMT_Name_text_es;
+		Create_ELMT.ELMT_Name_text_es.append("-");
+		Create_ELMT.ELMT_Name_text_es.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_es != "")
+		{
+			Create_ELMT.ELMT_Name_es="es";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_es="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_nl=DXF_main_base[0].DXF_ELMT_Name_text_nl;
+		Create_ELMT.ELMT_Name_text_nl.append("-");
+		Create_ELMT.ELMT_Name_text_nl.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_nl != "")
+		{
+			Create_ELMT.ELMT_Name_nl="nl";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_nl="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_cs=DXF_main_base[0].DXF_ELMT_Name_text_cs;
+		Create_ELMT.ELMT_Name_text_cs.append("-");
+		Create_ELMT.ELMT_Name_text_cs.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_cs != "")
+		{
+			Create_ELMT.ELMT_Name_cs="cs";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_cs="-";
+		}
+
+		Create_ELMT.ELMT_Name_text_be_nl=DXF_main_base[0].DXF_ELMT_Name_text_be_nl;
+		Create_ELMT.ELMT_Name_text_be_nl.append("-");
+		Create_ELMT.ELMT_Name_text_be_nl.append(QString::number(Elmt_Count_csv,'f',0));
+
+		if (Create_ELMT.ELMT_Name_text_be_nl != "")
+		{
+			Create_ELMT.ELMT_Name_be_nl="be-nl";
+		}
+		else
+		{
+			Create_ELMT.ELMT_Name_be_nl="-";
+		}
+
+		Result_csv.append(Create_ELMT.Names());
+		//Result.append(Create_ELMT.KindInformation());
+		Result_csv.append(Create_ELMT.Informations());
+		Result_csv.append(Create_ELMT.DescriptionStart());
+
+		Result_csv.append(Make_input());		// basic item needed by elmt editor
+		Result_csv.append(Make_terminal());		// basic item needed by elmt editor
+
+		// Header
+
+		Col_pos=0;
+
+		for (Col_count=0;Col_count<20;Col_count++)
+		{
+
+			Col_width=DXF_main_base[0].csv_table_settings[0][Col_count].toDouble();
+			Row_height=DXF_main_base[0].csv_table_settings[1][Col_count].toDouble();
+			TXT_height=DXF_main_base[0].csv_table_settings[2][Col_count].toInt();
+			Col_use=DXF_main_base[0].csv_table_settings[3][Col_count].toInt();
+			TXT_rotate=DXF_main_base[0].csv_table_settings[4][Col_count].toInt();
+
+
+			if (Col_use==1)
+			{
+
+
+
+				Result_csv.append(Make_rectang());
+				Result_csv.append(Make_text_header());
+
+				Col_pos=Col_pos+Col_width;
+
+			}
+
+		}
+
+		Row_pos=Row_pos+DXF_main_base[0].csv_table_settings[1][1].toInt();
+
+		// table fill
+
+		while(sw2==0)
+		{
+
+			Col_pos=0;
+
+			for (Col_count=0;Col_count<20;Col_count++)
+			{
+
+				Col_width=DXF_main_base[0].csv_table_settings[0][Col_count].toDouble();
+				Row_height=DXF_main_base[0].csv_table_settings[1][Col_count].toDouble();
+				TXT_height=DXF_main_base[0].csv_table_settings[2][Col_count].toInt();
+				Col_use=DXF_main_base[0].csv_table_settings[3][Col_count].toInt();
+				TXT_rotate=DXF_main_base[0].csv_table_settings[4][Col_count].toInt();
+
+				if (Col_use==1)
+				{
+
+
+					Result_csv.append(Make_rectang());
+					Result_csv.append(Make_text());
+
+					Col_pos=Col_pos+Col_width;
+
+				}
+
+			}
+
+
+			Split_Count_csv=Split_Count_csv+1;
+
+			Count_lines=Count_lines+1;
+
+
+			if (Split_Count_csv==Split_Line)
+			{
+				sw2=1;
+			}
+
+			Row_pos=Row_pos+DXF_main_base[0].csv_table_settings[1][1].toInt();
+
+		}
+
+		Result_csv.append(Create_ELMT.DescriptionEnd());
+		Result_csv.append(Create_ELMT.DefinitionEnd());
+
+		DXF_main_base[0].Elmt_list[Elmt_Count_csv]=Result_csv;
+
+
+		Elmt_Count_csv=Elmt_Count_csv+1;
+		sw2=0;
+		Split_Count_csv=0;
+		Count_lines=Count_lines+1;
+
+		if (Count_lines>Input_Lines)
+		{
+			sw1=1;
+
+		}
+
+		if (Elmt_Count_csv>499)
+		{
+			sw1=1;
+			//Split_Count_csv=Split_Line+1;
+		}
+
+		Result_csv="";
+		Row_pos=0;
+
+		// Row_pos=Row_pos+DXF_main_base[0].csv_table_settings[1][1].toInt();
+
+
+
+	}
+
+	DXF_main_base[0].csv_count_elmt=Elmt_Count_csv;
+
+
+
+	return DXF_main_base[0].Elmt_list[0];
+
+}
+
+
+QString csv_create_elmt::Make_input()
+{
+
+	dxf_attdef db_input;
+
+	Result_input="";
+
+	db_input.x=0;
+	db_input.y=-10;
+	db_input.size=9;
+	db_input.rotate="true";
+	db_input.text="_";
+	db_input.tag="label";
+
+	Result_input.append(db_input.Create_ATTDEF());
+
+	return Result_input;
+
+}
+
+
+QString csv_create_elmt::Make_terminal()
+{
+
+	dxf_point db_terminal;
+
+	Result_terminal="";
+
+	db_terminal.x1=0;
+	db_terminal.y1=-15;
+	db_terminal.orientation="n";
+
+	Result_terminal.append(db_terminal.Create_POINT());
+
+
+	return Result_terminal;
+
+}
+
+QString csv_create_elmt::Make_rectang()
+{
+
+	dxf_rect db_rect;
+
+	Result_rect2="";
+
+
+	db_rect.dxf_rect_height=Row_height;
+	db_rect.dxf_rect_width=Col_width;
+	db_rect.dxf_rect_x=Col_pos;
+	db_rect.dxf_rect_y=Row_pos;
+
+	Result_rect2=db_rect.Create_RECTANG();
+
+	return Result_rect2;
+
+}
+
+QString csv_create_elmt::Make_text()
+{
+
+	dxf_text db_text2;
+	DXF_Text_control db_txt_check;
+
+	Result_txt2="";
+
+	db_text2.QET_x=Col_pos+5;
+	db_text2.QET_y=Row_pos+(Row_height/4*3);
+	db_text2.QET_size=TXT_height;
+	db_text2.QET_rotation=TXT_rotate;
+
+
+
+	db_txt_check.TextToCheck=DXF_main_base[0].dxf_csv_split[Count_lines][Col_count-1];
+
+	db_text2.QET_text=db_txt_check.Text_control();
+
+	Result_txt2=db_text2.Create_Text();
+
+	return Result_txt2;
+}
+
+QString csv_create_elmt::Make_text_header()
+{
+
+	dxf_text db_text1;
+	DXF_Text_control db_txt_check2;
+
+	Result_txt1="";
+
+	db_text1.QET_x=Col_pos+5;
+	db_text1.QET_y=Row_pos+(Row_height/4*3);
+	db_text1.QET_size=TXT_height;
+	db_text1.QET_rotation=TXT_rotate;
+
+
+	db_txt_check2.TextToCheck=DXF_main_base[0].dxf_csv_split[Header_Line][Col_count-1];
+	db_text1.QET_text=db_txt_check2.Text_control();
+
+	Result_txt1=db_text1.Create_Text();
+
+	return Result_txt1;
+
+}

Added: branches/dxftoqet2/csv_create_elmt.h
===================================================================
--- branches/dxftoqet2/csv_create_elmt.h	                        (rev 0)
+++ branches/dxftoqet2/csv_create_elmt.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,91 @@
+#ifndef CSV_CREATE_ELMT_H
+#define CSV_CREATE_ELMT_H
+
+#include <QMainWindow>
+#include "dxf_data.h"
+#include "qet_base_types/baseelmt.h"
+#include "dxf_control/dxf_text_control.h"
+
+#include "dxf/dxf_point.h"
+#include "dxf/dxf_attdef.h"
+#include "dxf/dxf_rect.h"
+#include "dxf/dxf_text.h"
+
+
+class csv_create_elmt : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit csv_create_elmt(QWidget *parent = 0);
+
+	QString Result_csv;
+	QString Result_rect2;
+	QString Result_txt1;
+	QString Result_txt2;
+
+	//QString Elmt_list[200];
+
+	int sw1;
+	int sw2;
+
+	int Count_lines;
+	int Elmt_Count_csv;
+	int Split_Count_csv;
+
+	int Header_Line;
+	int Start_Line;
+	int Split_Line;
+	int Input_Lines;
+
+	int Col_count;
+
+	double Col_pos;
+	double Row_pos;
+
+	double Col_width;
+	double Row_height;
+	int Col_use;
+	int TXT_height;
+	int TXT_rotate;
+
+
+	int x_pos;
+	int y_pos;
+
+	QString Result_input;
+	QString Result_terminal;
+
+	// rectangle
+
+	double QET_rect_x; //10
+	double QET_rect_y; //20
+	double QET_rect_width;
+	double QET_rect_height;
+	double QET_rect_start;
+	double QET_rect_angle;
+
+	QString QET_rect_antialias;
+	QString QET_rect_style;
+	QString QET_rect_line_style;
+	QString QET_rect_line_weight;
+	QString QET_rect_filling;
+	QString QET_rect_color;
+
+
+
+	QString Make_ELMT();
+	QString Make_input();
+	QString Make_terminal();
+	QString Make_rectang();
+	QString Make_text();
+
+	QString Make_text_header();
+
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // CSV_CREATE_ELMT_H

Added: branches/dxftoqet2/dxf_create_elmt.cpp
===================================================================
--- branches/dxftoqet2/dxf_create_elmt.cpp	                        (rev 0)
+++ branches/dxftoqet2/dxf_create_elmt.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,329 @@
+#include "dxf_create_elmt.h"
+
+extern struct DXF_base DXF_main_base[1];
+extern struct DXF_header DXF_input_header[500];
+
+extern struct DXF_entities_arc DXF_input_entities_arc[1000];
+extern struct DXF_entities_line DXF_input_entities_line[100000];
+
+DXF_create_elmt::DXF_create_elmt(QWidget *parent) :
+	QMainWindow(parent)
+{
+
+}
+
+ QString DXF_create_elmt::Make_ELMT()
+{
+	Result="";
+
+	BaseELMT Create_ELMT;
+
+	Count_lines=0;
+	Count_header=DXF_main_base[0].dxf_header_item_count-1;
+	DXF_LIMMAX=0;
+	DXF_LIMMIN=0;
+	DXF_LIMMAX_x=0;
+	DXF_LIMMAX_y=0;
+	DXF_LIMMIN_x=0;
+	DXF_LIMMIN_y=0;
+
+	while (Count_lines<Count_header)
+	{
+
+		if (DXF_input_header[Count_lines].dxf_setvar_naam=="$LIMMAX")
+		{
+			DXF_LIMMAX_x = DXF_input_header[Count_lines].dxf_setvar_code_10;
+			DXF_LIMMAX_y = DXF_input_header[Count_lines].dxf_setvar_code_20;
+			DXF_LIMMAX=1;
+		}
+
+		if (DXF_input_header[Count_lines].dxf_setvar_naam=="$LIMMIN")
+		{
+			DXF_LIMMIN_x = DXF_input_header[Count_lines].dxf_setvar_code_10;
+			DXF_LIMMIN_y = DXF_input_header[Count_lines].dxf_setvar_code_20;
+			DXF_LIMMIN=1;
+		}
+
+		if (DXF_LIMMAX==1 and DXF_LIMMIN==1)
+		{
+			Count_lines=Count_header+1;
+
+		}
+		else
+		{
+			Count_lines=Count_lines+1;
+		}
+
+	}
+
+	if (DXF_LIMMAX==1 and DXF_LIMMIN==1)
+	{
+		if (DXF_LIMMAX_x<0)
+		{
+			DXF_LIMMAX_x= -DXF_LIMMAX_x;
+		}
+		if (DXF_LIMMAX_y<0)
+		{
+			DXF_LIMMAX_y= -DXF_LIMMAX_y;
+		}
+		if (DXF_LIMMIN_x<0)
+		{
+			DXF_LIMMIN_x= -DXF_LIMMIN_x;
+		}
+		if (DXF_LIMMIN_y<0)
+		{
+			DXF_LIMMIN_y= -DXF_LIMMIN_y;
+		}
+
+		Create_ELMT.ELMT_definition_height=QString::number(DXF_LIMMAX_x+DXF_LIMMIN_x,'f',2);
+		Create_ELMT.ELMT_definition_width=QString::number(DXF_LIMMAX_y+DXF_LIMMIN_y,'f',2);
+
+	}
+	else
+	{
+		Create_ELMT.ELMT_definition_height="50";
+		Create_ELMT.ELMT_definition_width="40";
+	}
+
+	Create_ELMT.ELMT_definition_version="0.5";
+	Create_ELMT.ELMT_definition_hotspot_x="0";
+	Create_ELMT.ELMT_definition_hotspot_y="0";
+	Create_ELMT.ELMT_definition_link_type="master";
+	Create_ELMT.ELMT_definition_type="element";
+	Create_ELMT.ELMT_definition_orientation="dyyy";
+
+	Result.append(Create_ELMT.DefinitionStart());
+
+	Result.append(Create_ELMT.Uuid());
+
+	Create_ELMT.ELMT_Name_text_ar=DXF_main_base[0].DXF_ELMT_Name_text_ar;
+	if (Create_ELMT.ELMT_Name_text_ar != "")
+	{
+		Create_ELMT.ELMT_Name_ar="ar";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_ar="-";
+	}
+
+
+	Create_ELMT.ELMT_Name_text_de=DXF_main_base[0].DXF_ELMT_Name_text_de;
+	if (Create_ELMT.ELMT_Name_text_de != "")
+	{
+		Create_ELMT.ELMT_Name_de="de";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_de="-";
+	}
+
+
+	Create_ELMT.ELMT_Name_text_en=DXF_main_base[0].DXF_ELMT_Name_text_en;
+	if (Create_ELMT.ELMT_Name_text_en != "")
+	{
+		Create_ELMT.ELMT_Name_en="en";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_en="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_it=DXF_main_base[0].DXF_ELMT_Name_text_it;
+	if (Create_ELMT.ELMT_Name_text_it != "")
+	{
+		Create_ELMT.ELMT_Name_it="it";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_it="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_fr=DXF_main_base[0].DXF_ELMT_Name_text_fr;
+	if (Create_ELMT.ELMT_Name_text_fr != "")
+	{
+		Create_ELMT.ELMT_Name_fr="fr";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_fr="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_pl=DXF_main_base[0].DXF_ELMT_Name_text_pl;
+	if (Create_ELMT.ELMT_Name_text_pl != "")
+	{
+		Create_ELMT.ELMT_Name_pl="pl";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_pl="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_es=DXF_main_base[0].DXF_ELMT_Name_text_es;
+	if (Create_ELMT.ELMT_Name_text_es != "")
+	{
+		Create_ELMT.ELMT_Name_es="es";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_es="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_nl=DXF_main_base[0].DXF_ELMT_Name_text_nl;
+	if (Create_ELMT.ELMT_Name_text_nl != "")
+	{
+		Create_ELMT.ELMT_Name_nl="nl";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_nl="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_cs=DXF_main_base[0].DXF_ELMT_Name_text_cs;
+	if (Create_ELMT.ELMT_Name_text_cs != "")
+	{
+		Create_ELMT.ELMT_Name_cs="cs";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_cs="-";
+	}
+
+	Create_ELMT.ELMT_Name_text_be_nl=DXF_main_base[0].DXF_ELMT_Name_text_be_nl;
+	if (Create_ELMT.ELMT_Name_text_be_nl != "")
+	{
+		Create_ELMT.ELMT_Name_be_nl="be-nl";
+	}
+	else
+	{
+		Create_ELMT.ELMT_Name_be_nl="-";
+	}
+
+	Result.append(Create_ELMT.Names());
+	//Result.append(Create_ELMT.KindInformation());
+	Result.append(Create_ELMT.Informations());
+	Result.append(Create_ELMT.DescriptionStart());
+
+	Result.append(Make_input());		// basic item needed by elmt editor
+	Result.append(Make_terminal());		// basic item needed by elmt editor
+
+	/* LINE */
+
+	Count_entitie_line=DXF_main_base[0].DXF_entities_line_count;
+
+	Result.append(Make_LINE());
+
+	/* ARC */
+
+	Count_entitie_arc=DXF_main_base[0].DXF_entities_arc_count;
+
+	Result.append(Make_ARC());
+
+
+	Result.append(Create_ELMT.DescriptionEnd());
+	Result.append(Create_ELMT.DefinitionEnd());
+
+	return Result;
+}
+
+
+ QString DXF_create_elmt::Make_LINE()
+ {
+
+	 DXF_LINE dxb_line;
+
+	 Result_line ="";
+
+	 Count_lines=0;
+
+	 while (Count_lines<Count_entitie_line)
+	 {
+
+		dxb_line.x1=DXF_input_entities_line[Count_lines].DXF_entities_line_code_10;
+		dxb_line.x2=DXF_input_entities_line[Count_lines].DXF_entities_line_code_11;
+		dxb_line.y1=DXF_input_entities_line[Count_lines].DXF_entities_line_code_20;
+		dxb_line.y2=DXF_input_entities_line[Count_lines].DXF_entities_line_code_21;
+		dxb_line.ltype=DXF_input_entities_line[Count_lines].DXF_entities_line_code_6;
+		dxb_line.layer=DXF_input_entities_line[Count_lines].DXF_entities_line_code_8;
+
+
+		Result_line.append(dxb_line.Create_LINE());
+
+		Count_lines=Count_lines+1;
+
+
+	 }
+
+	 return Result_line;
+ }
+
+ QString DXF_create_elmt::Make_input()
+ {
+
+	 dxf_attdef db_input;
+
+	 Result_input="";
+
+	 db_input.x=0;
+	 db_input.y=10;
+	 db_input.size=9;
+	 db_input.rotate="true";
+	 db_input.text="_";
+	 db_input.tag="label";
+
+	 Result_input.append(db_input.Create_ATTDEF());
+
+	 return Result_input;
+
+ }
+
+
+ QString DXF_create_elmt::Make_terminal()
+ {
+
+	 dxf_point db_terminal;
+
+	 Result_terminal="";
+
+	 db_terminal.x1=0;
+	 db_terminal.y1=0;
+	 db_terminal.orientation="n";
+
+	 Result_terminal.append(db_terminal.Create_POINT());
+
+
+	 return Result_terminal;
+
+ }
+
+ QString DXF_create_elmt::Make_ARC()
+ {
+	 dxf_arc db_arc;
+
+	 Result_arc="";
+
+	 Count_lines=0;
+
+	 while (Count_lines<Count_entitie_arc)
+	 {
+
+		db_arc.center_x=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_10;
+		db_arc.center_y=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_20;
+		db_arc.radius=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_40;
+		db_arc.start_angle=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_50;
+		db_arc.end_angle=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_51;
+
+		db_arc.layer=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_8;
+		db_arc.ltype=DXF_input_entities_arc[Count_lines].DXF_entities_arc_code_6;
+		db_arc.color_dxf=-1;
+
+		Result_arc.append(db_arc.Create_ARC());
+
+		Count_lines=Count_lines+1;
+
+
+	 }
+
+
+	 return Result_arc;
+
+ }

Added: branches/dxftoqet2/dxf_create_elmt.h
===================================================================
--- branches/dxftoqet2/dxf_create_elmt.h	                        (rev 0)
+++ branches/dxftoqet2/dxf_create_elmt.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,56 @@
+#ifndef DXF_CREATE_ELMT_H
+#define DXF_CREATE_ELMT_H
+
+#include <QMainWindow>
+#include "dxf_data.h"
+#include "qet_base_types/baseelmt.h"
+#include "dxftoqet_mainwindow.h"
+#include "ui_dxftoqet_mainwindow.h"
+
+#include "dxf/dxf_line.h"
+#include "dxf/dxf_point.h"
+#include "dxf/dxf_attdef.h"
+#include "dxf/dxf_arc.h"
+
+class DXF_create_elmt : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_create_elmt(QWidget *parent = 0);
+
+	QString Make_ELMT();
+	QString Make_LINE();
+	QString Make_ARC();
+	QString Make_input();
+	QString Make_terminal();
+
+	QString Result;
+	QString Result_line;
+	QString Result_arc;
+	QString Result_input;
+	QString Result_terminal;
+
+
+	double DXF_LIMMAX_x;
+	double DXF_LIMMAX_y;
+	double DXF_LIMMIN_x;
+	double DXF_LIMMIN_y;
+
+	bool DXF_LIMMAX;
+	bool DXF_LIMMIN;
+
+	int Count_header;
+
+	int Count_entitie_line;
+	int Count_entitie_arc;
+
+	int Count_lines;
+	int Count_for;
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_CREATE_ELMT_H

Added: branches/dxftoqet2/dxftoqet_mainwindow.cpp
===================================================================
--- branches/dxftoqet2/dxftoqet_mainwindow.cpp	                        (rev 0)
+++ branches/dxftoqet2/dxftoqet_mainwindow.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,1182 @@
+#include "dxftoqet_mainwindow.h"
+#include "ui_dxftoqet_mainwindow.h"
+
+#include "QTextStream"
+#include <QFileDialog>
+#include <QMessageBox>
+#include <QtWidgets>
+
+/* init extern variable */
+
+
+
+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[100];
+
+struct DXF_block_3dface DXF_input_block_3dface[100][50];
+struct DXF_block_3dsolid DXF_input_block_3dsolid[100][50];
+struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[100][50];
+struct DXF_block_arc DXF_input_block_arc[100][50];
+struct DXF_block_attdef DXF_input_block_attdef[100][50];
+struct DXF_block_attrib DXF_input_block_attrib[100][50];
+struct DXF_block_body DXF_input_block_body[100][50];
+struct DXF_block_circle DXF_input_block_circle[100][50];
+struct DXF_block_dimension DXF_input_block_dimension[100][50];
+struct DXF_block_ellipse DXF_input_block_ellipse[100][50];
+struct DXF_block_hatch DXF_input_block_hatch[100][50];
+struct DXF_block_helix DXF_input_block_helix[100][50];
+struct DXF_block_image DXF_input_block_image[100][50];
+struct DXF_block_insert DXF_input_block_insert[100][50];
+struct DXF_block_leader DXF_input_block_leader[100][50];
+struct DXF_block_light DXF_input_block_light[100][50];
+struct DXF_block_line DXF_input_block_line[100][50];
+struct DXF_block_lwpolyline DXF_input_block_lwpolyline[100][50];
+struct DXF_block_mesh DXF_input_block_mesh[100][50];
+struct DXF_block_mline DXF_input_block_mline[100][50];
+struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[100][50];
+struct DXF_block_mleader DXF_input_block_mleader[100][50];
+struct DXF_block_mtext DXF_input_block_mtext[100][50];
+struct DXF_block_oleframe DXF_input_DXF_block_oleframe[100][50];
+struct DXF_block_ole2frame DXF_input_block_ole2frame[100][50];
+struct DXF_block_point DXF_input_block_point[100][50];
+struct DXF_block_polyline DXF_input_block_polyline[100][50];
+struct DXF_block_ray DXF_input_block_ray[100][50];
+struct DXF_block_region DXF_input_block_region[100][50];
+struct DXF_block_section DXF_input_block_section[100][50];
+struct DXF_block_seqend DXF_input_block_seqend[100][50];
+struct DXF_block_shape DXF_input_block_shape[100][50];
+struct DXF_block_solid DXF_input_block_solid[100][50];
+struct DXF_block_spline DXF_input_block_spline[100][50];
+struct DXF_block_sun DXF_input_block_sun[100][50];
+struct DXF_block_surface DXF_input_block_surface[100][50];
+struct DXF_block_table DXF_input_block_table[100][50];
+struct DXF_block_text DXF_input_block_text[100][50];
+struct DXF_block_tolerance DXF_input_block_tolerance[100][50];
+struct DXF_block_trace DXF_input_block_trace[100][50];
+struct DXF_block_underlay DXF_input_block_underlay[100][50];
+struct DXF_block_vertex DXF_input_block_vertex[100][50];
+struct DXF_block_viewport DXF_input_block_viewport[100][50];
+struct DXF_block_wipeout DXF_input_block_wipeout[100][50];
+struct DXF_block_xline DXF_input_block_xline[100][50];
+
+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[1000];
+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_end_block DXF_input_end_block[100];
+extern struct DXF_file_input DXF_input_entities[100];
+extern struct DXF_file_input DXF_input_thumbnailimage[100];
+struct DXF_base DXF_main_base[1];
+
+
+DXFtoQET_MainWindow::DXFtoQET_MainWindow(QWidget *parent) :
+	QMainWindow(parent),
+	ui(new Ui::DXFtoQET_MainWindow)
+{
+	ui->setupUi(this);
+
+
+}
+
+DXFtoQET_MainWindow::~DXFtoQET_MainWindow()
+{
+	delete ui;
+}
+
+void DXFtoQET_MainWindow::changeEvent(QEvent *e)
+{
+	QMainWindow::changeEvent(e);
+	switch (e->type())
+	{
+		case QEvent::LanguageChange:
+			ui->retranslateUi(this);
+			break;
+		default:
+			break;
+	}
+}
+
+void DXFtoQET_MainWindow::on_actionOpen_triggered()
+{
+
+	main_sw1=0;
+	main_sw2=0;
+	main_sw3=0;
+
+		DXF_main_base[0].DXF_file_loaded_into_table=-1;
+
+	// open file dialog
+	log_file="Open file ";
+	ui->dxf_log->setPlainText(log_file);
+
+	QFileDialog dialog(this);
+	dialog.setNameFilter(tr("DXF files (*.dxf *.DXF *.csv *.CSV)"));
+	dialog.setFileMode(QFileDialog::ExistingFile);
+	dialog.setViewMode(QFileDialog::Detail);
+
+
+	if (dialog.exec() == QDialog::Accepted)
+	{
+		DXF_main_base[0].dxf_filepath = dialog.selectedFiles().first();
+		DXF_main_base[0].dxf_dir = dialog.directory().absolutePath();
+		DXF_main_base[0].dxf_openfile=DXF_main_base[0].dxf_filepath.split("/").last();
+
+		FileType=DXF_main_base[0].dxf_openfile.split(".").last();
+		FileName=DXF_main_base[0].dxf_openfile.split(".").first();
+
+		DXF_main_base[0].dxf_openfile=FileName;
+		DXF_main_base[0].dxf_filetype=FileType;
+
+
+		log_file.append (DXF_main_base[0].dxf_openfile);
+		DXF_main_base[0].DXF_ELMT_Name_text_en=FileName;
+
+		ui->elmt_lang_en->setText(FileName);
+
+		log_file.append("\n");
+		ui->dxf_log->setPlainText(log_file);
+
+		QFile file(DXF_main_base[0].dxf_filepath);
+		if (!file.open(QFile::ReadOnly | QFile::Text))
+		{
+			QMessageBox::warning(this, tr("Application"),
+					  tr("Cannot read file %1:\n%2.").arg(DXF_main_base[0].dxf_filepath).arg("binary or other non standard dxf file"));
+
+		}
+
+		ui->dxf_file_path->setPlaceholderText(DXF_main_base[0].dxf_dir);
+		ui->dxf_open_file->setPlaceholderText(DXF_main_base[0].dxf_openfile);
+
+		log_file.append("file read into program \n");
+		ui->dxf_log->setPlainText(log_file);
+
+		QTextStream in(&file);
+		DXF_main_base[0].dxf_text_all = in.readAll();
+
+		ui->dxf_file_loaded->setPlainText(DXF_main_base[0].dxf_text_all);
+		ui->dxf_file_loaded->show();
+		ui->dxf_file_loaded->repaint();
+
+		int32_t dxf_line_count1=DXF_main_base[0].dxf_text_all.count();
+		ui->dxf_line_count->setText(QString::number(dxf_line_count1,'f',0));
+
+		log_file.append("split and check file for correct type of file \n");
+		ui->dxf_log->setPlainText(log_file);
+
+		dxf_load dxf_lf(this);
+
+		dxf_lf.dxf_header_split();
+		//dxf_lf.dxf_header_split();
+
+		main_sw1=dxf_lf.dxf_check_file();
+
+		if (FileType=="csv" or FileType=="CSV")
+		{
+			main_sw2=1;
+			log_file.append("file of type CSV \n");
+
+			dxf_lf.dxf_csv_split();
+
+			int32_t dxf_line_count2=DXF_main_base[0].dxf_csv_line_count;
+			ui->dxf_line_count->setText(QString::number(dxf_line_count2,'f',0));
+		}
+		else
+		{
+			main_sw2=0;
+		}
+
+		if (FileType=="dxf" or FileType=="DXF")
+		{
+
+			main_sw3=1;
+			log_file.append("file of type DXF \n");
+		}
+		else
+		{
+			main_sw3=0;
+		}
+
+		if (main_sw1==1 and main_sw2==0)
+		{
+			log_file.append("file of type ASCII DXF \n");
+		}
+
+		if (main_sw1==0 and main_sw2==0)
+		{
+			log_file.append("file of type BINARY DXF \n");
+		}
+
+
+
+
+	}
+
+	return;
+
+}
+
+void DXFtoQET_MainWindow::on_actionSave_as_elmt_triggered()
+{
+
+	if (main_sw3==1)
+	{
+		QFile file(DXF_main_base[0].dxf_dir + "/" + DXF_main_base[0].dxf_openfile + ".elmt");
+
+		if (!file.open(QFile::WriteOnly | QFile::Text)) {
+			QMessageBox::warning(this, tr("Application"),
+								 tr("Cannot write file %1:\n%2.")
+								 .arg(DXF_main_base[0].dxf_dir)
+								 .arg(file.errorString()));
+			return;
+		}
+
+		QTextStream out(&file);
+		out << ui->ELMT_result->toPlainText();
+
+		file.close();
+		QMessageBox::information(this, tr("Export as elmt file"), tr("L'element %1 a bien ete enregistre").arg(ui->dxf_open_file->text()));
+	}
+
+	if (main_sw2==1)
+	{
+		for (csv_elmt_count=0;csv_elmt_count<DXF_main_base[0].csv_count_elmt;csv_elmt_count++)
+		{
+
+			QFile file(DXF_main_base[0].dxf_dir + "/" + DXF_main_base[0].dxf_openfile +"-"+QString::number(csv_elmt_count,'f',0)+ ".elmt");
+
+			if (!file.open(QFile::WriteOnly | QFile::Text)) {
+				QMessageBox::warning(this, tr("Application"),
+									 tr("Cannot write file %1:\n%2.")
+									 .arg(DXF_main_base[0].dxf_dir)
+									 .arg(file.errorString()));
+				return;
+			}
+
+			QTextStream out(&file);
+			out << DXF_main_base[0].Elmt_list[csv_elmt_count];
+
+			file.close();
+			// QMessageBox::information(this, tr("Export as elmt file"), tr("L'element %1 a bien ete enregistre").arg(ui->dxf_open_file->text()));
+		}
+
+		QMessageBox::information(this, tr("Export as elmt file"), tr("L'element %1 a bien ete enregistre").arg(ui->dxf_open_file->text()));
+	}
+
+}
+
+void DXFtoQET_MainWindow::on_actionSave_as_qet_triggered()
+{
+
+}
+
+void DXFtoQET_MainWindow::on_load_into_tables_clicked()
+{
+
+	DXF_main_base[0].DXF_file_loaded_into_table=1;
+
+	if (main_sw1==0)
+	{
+		QMessageBox::warning(this, tr("Application"),
+			tr("Cannot convert this file %1:\n%2.").arg(DXF_main_base[0].dxf_filepath).arg("error"));
+	}
+	else
+	{
+
+		if (main_sw3==1)
+		{
+
+			ui->progressBar->setMaximum(DXF_main_base[0].dxf_line_count);
+			ui->progressBar->setMinimum(0);
+
+			//counter * counting = new counter(this);
+
+			dxf_split *dxf_spf=new dxf_split(this);
+
+			QObject::connect(dxf_spf, SIGNAL(ValueChanged(int)), ui->progressBar, SLOT(setValue(int)));
+
+			log_file.append("load dxf sections into specific table \n");
+			ui->dxf_log->setPlainText(log_file);
+
+			log_trans=dxf_spf->dxf_split_section();
+			log_file.append(log_trans);
+			ui->dxf_log->setPlainText(log_file);
+
+			ui->dxf_line_count->setText(QString::number(DXF_main_base[0].dxf_line_count));
+
+			ui->header_line_count->setText(QString::number(DXF_main_base[0].dxf_header_item_count));
+			ui->Classes_line_count->setText(QString::number(DXF_main_base[0].dxf_classes_item_count));
+
+			ui->tables_line_count->setText(QString::number(DXF_main_base[0].dxf_tables_item_count));
+			ui->table_appid_count->setText(QString::number(DXF_main_base[0].DXF_table_appid_count));
+			ui->table_block_record_count->setText(QString::number(DXF_main_base[0].DXF_table_block_record_count));
+			ui->table_dimstyle_count->setText(QString::number(DXF_main_base[0].DXF_table_dimstyle_count));
+			ui->table_layer_count->setText(QString::number(DXF_main_base[0].DXF_table_layer_count));
+			ui->table_ltype_count->setText(QString::number(DXF_main_base[0].DXF_table_ltype_count));
+			ui->table_style_count->setText(QString::number(DXF_main_base[0].DXF_table_style_count));
+			ui->table_ucs_count->setText(QString::number(DXF_main_base[0].DXF_table_ucs_count));
+			ui->table_view_count->setText(QString::number(DXF_main_base[0].DXF_table_view_count));
+			ui->table_vport_count->setText(QString::number(DXF_main_base[0].DXF_table_vport_count));
+
+
+
+			ui->block_line_count->setText(QString::number(DXF_main_base[0].dxf_block_item_count));
+			ui->entites_line_count->setText(QString::number(DXF_main_base[0].dxf_entites_item_count));
+			ui->objecs_line_count->setText(QString::number(DXF_main_base[0].dxf_objects_item_count));
+			ui->thumbnailimage_line_count->setText(QString::number(DXF_main_base[0].dxf_thumbnailimage_item_count));
+
+			ui->DXF_3DFACE->setText(QString::number(DXF_main_base[0].DXF_entities_3dface_count));
+
+			if (DXF_main_base[0].DXF_entities_3dface_count>999)
+			{
+
+				ui->DXF_3DFACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_3DFACE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_3DSOLID->setText(QString::number(DXF_main_base[0].DXF_entities_3dsolid_count));
+
+			if (DXF_main_base[0].DXF_entities_3dsolid_count>999)
+			{
+
+				ui->DXF_3DSOLID->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_3DSOLID->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			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>999)
+			{
+
+				ui->DXF_ACAD_PROXY_ENTITY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_ACAD_PROXY_ENTITY->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_ARC->setText(QString::number(DXF_main_base[0].DXF_entities_arc_count));
+
+			if (DXF_main_base[0].DXF_entities_arc_count>999)
+			{
+
+				ui->DXF_ARC->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_ARC->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_ATTDEF->setText(QString::number(DXF_main_base[0].DXF_entities_attdef_count));
+
+			if (DXF_main_base[0].DXF_entities_attdef_count>999)
+			{
+
+				ui->DXF_ATTDEF->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_ATTDEF->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_ATTRIB->setText(QString::number(DXF_main_base[0].DXF_entities_attrib_count));
+
+			if (DXF_main_base[0].DXF_entities_attrib_count>999)
+			{
+
+				ui->DXF_ATTRIB->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_ATTRIB->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_BODY->setText(QString::number(DXF_main_base[0].DXF_entities_body_count));
+
+			if (DXF_main_base[0].DXF_entities_body_count>999)
+			{
+
+				ui->DXF_BODY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_BODY->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_CIRCLE->setText(QString::number(DXF_main_base[0].DXF_entities_circle_count));
+
+
+			if (DXF_main_base[0].DXF_entities_circle_count>999)
+			{
+
+				ui->DXF_CIRCLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_CIRCLE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_DIMENSIONS->setText(QString::number(DXF_main_base[0].DXF_entities_dimension_count));
+
+
+			if (DXF_main_base[0].DXF_entities_dimension_count>999)
+			{
+
+				ui->DXF_DIMENSIONS->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_DIMENSIONS->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_ELLIPSE->setText(QString::number(DXF_main_base[0].DXF_entities_ellipse_count));
+
+
+			if (DXF_main_base[0].DXF_entities_ellipse_count>999)
+			{
+
+				ui->DXF_ELLIPSE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_ELLIPSE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_HATCH->setText(QString::number(DXF_main_base[0].DXF_entities_hatch_count));
+
+
+			if (DXF_main_base[0].DXF_entities_hatch_count>999)
+			{
+
+				ui->DXF_HATCH->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_HATCH->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_HELIX->setText(QString::number(DXF_main_base[0].DXF_entities_helix_count));
+
+
+			if (DXF_main_base[0].DXF_entities_helix_count>999)
+			{
+
+				ui->DXF_HELIX->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_HELIX->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_IMAGE->setText(QString::number(DXF_main_base[0].DXF_entities_image_count));
+
+
+			if (DXF_main_base[0].DXF_entities_image_count>999)
+			{
+
+				ui->DXF_IMAGE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_IMAGE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_INSERT->setText(QString::number(DXF_main_base[0].DXF_entities_insert_count));
+
+
+			if (DXF_main_base[0].DXF_entities_insert_count>999)
+			{
+
+				ui->DXF_INSERT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_INSERT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_LEADER->setText(QString::number(DXF_main_base[0].DXF_entities_leader_count));
+
+
+			if (DXF_main_base[0].DXF_entities_leader_count>999)
+			{
+
+				ui->DXF_LEADER->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_LEADER->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_LIGHT->setText(QString::number(DXF_main_base[0].DXF_entities_light_count));
+
+
+			if (DXF_main_base[0].DXF_entities_light_count>999)
+			{
+
+				ui->DXF_LIGHT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_LIGHT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_LINE->setText(QString::number(DXF_main_base[0].DXF_entities_line_count));
+
+			if (DXF_main_base[0].DXF_entities_line_count>99999)
+			{
+
+				ui->DXF_LINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_LINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_LWPOLYLINE->setText(QString::number(DXF_main_base[0].DXF_entities_lwpolyline_count));
+
+			if (DXF_main_base[0].DXF_entities_lwpolyline_count>999)
+			{
+
+				ui->DXF_LWPOLYLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_LWPOLYLINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_MESH->setText(QString::number(DXF_main_base[0].DXF_entities_mesh_count));
+
+			if (DXF_main_base[0].DXF_entities_mesh_count>999)
+			{
+
+				ui->DXF_MESH->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_MESH->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_MLINE->setText(QString::number(DXF_main_base[0].DXF_entities_mline_count));
+
+			if (DXF_main_base[0].DXF_entities_mline_count>999)
+			{
+
+				ui->DXF_MLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_MLINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_MLEADER->setText(QString::number(DXF_main_base[0].DXF_entities_mleader_count));
+
+			if (DXF_main_base[0].DXF_entities_mleader_count>999)
+			{
+
+				ui->DXF_MLEADER->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_MLEADER->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_MLEADERSTYLE->setText(QString::number(DXF_main_base[0].DXF_entities_mleaderstyle_count));
+
+			if (DXF_main_base[0].DXF_entities_mleaderstyle_count>999)
+			{
+
+				ui->DXF_MLEADERSTYLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_MLEADERSTYLE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_MTEXT->setText(QString::number(DXF_main_base[0].DXF_entities_mtext_count));
+
+			if (DXF_main_base[0].DXF_entities_mtext_count>999)
+			{
+
+				ui->DXF_MTEXT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_MTEXT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_OLEFRAME->setText(QString::number(DXF_main_base[0].DXF_entities_oleframe_count));
+
+			if (DXF_main_base[0].DXF_entities_oleframe_count>999)
+			{
+
+				ui->DXF_OLEFRAME->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_OLEFRAME->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_OLE2FRAME->setText(QString::number(DXF_main_base[0].DXF_entities_ole2frame_count));
+
+			if (DXF_main_base[0].DXF_entities_ole2frame_count>999)
+			{
+
+				ui->DXF_OLE2FRAME->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_OLE2FRAME->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_POINT->setText(QString::number(DXF_main_base[0].DXF_entities_point_count));
+
+			if (DXF_main_base[0].DXF_entities_point_count>999)
+			{
+
+				ui->DXF_POINT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_POINT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_POLYLINE->setText(QString::number(DXF_main_base[0].DXF_entities_polyline_count));
+
+			if (DXF_main_base[0].DXF_entities_polyline_count>999)
+			{
+
+				ui->DXF_POLYLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_POLYLINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_RAY->setText(QString::number(DXF_main_base[0].DXF_entities_ray_count));
+
+			if (DXF_main_base[0].DXF_entities_ray_count>999)
+			{
+
+				ui->DXF_RAY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_RAY->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_REGION->setText(QString::number(DXF_main_base[0].DXF_entities_region_count));
+
+			if (DXF_main_base[0].DXF_entities_region_count>999)
+			{
+
+				ui->DXF_REGION->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_REGION->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SECTION->setText(QString::number(DXF_main_base[0].DXF_entities_section_count));
+
+			if (DXF_main_base[0].DXF_entities_section_count>999)
+			{
+
+				ui->DXF_SECTION->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SECTION->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SEQEND->setText(QString::number(DXF_main_base[0].DXF_entities_seqend_count));
+
+			if (DXF_main_base[0].DXF_entities_seqend_count>999)
+			{
+
+				ui->DXF_SEQEND->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SEQEND->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SHAPE->setText(QString::number(DXF_main_base[0].DXF_entities_shape_count));
+
+			if (DXF_main_base[0].DXF_entities_shape_count>999)
+			{
+
+				ui->DXF_SHAPE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SHAPE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SOLID->setText(QString::number(DXF_main_base[0].DXF_entities_solid_count));
+
+			if (DXF_main_base[0].DXF_entities_solid_count>999)
+			{
+
+				ui->DXF_SOLID->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SOLID->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SPLINE->setText(QString::number(DXF_main_base[0].DXF_entities_spline_count));
+
+			if (DXF_main_base[0].DXF_entities_spline_count>999)
+			{
+
+				ui->DXF_SPLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SPLINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SUN->setText(QString::number(DXF_main_base[0].DXF_entities_sun_count));
+
+			if (DXF_main_base[0].DXF_entities_sun_count>999)
+			{
+
+				ui->DXF_SUN->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SUN->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_SURFACE->setText(QString::number(DXF_main_base[0].DXF_entities_surface_count));
+
+			if (DXF_main_base[0].DXF_entities_surface_count>999)
+			{
+
+				ui->DXF_SURFACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_SURFACE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_TABLE->setText(QString::number(DXF_main_base[0].DXF_entities_table_count));
+
+			if (DXF_main_base[0].DXF_entities_table_count>999)
+			{
+
+				ui->DXF_TABLE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_TABLE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_TEXT->setText(QString::number(DXF_main_base[0].DXF_entities_text_count));
+
+			if (DXF_main_base[0].DXF_entities_text_count>999)
+			{
+
+				ui->DXF_TEXT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_TEXT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_TOLERANCE->setText(QString::number(DXF_main_base[0].DXF_entities_tolerance_count));
+
+			if (DXF_main_base[0].DXF_entities_tolerance_count>999)
+			{
+
+				ui->DXF_TOLERANCE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_TOLERANCE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_TRACE->setText(QString::number(DXF_main_base[0].DXF_entities_trace_count));
+
+			if (DXF_main_base[0].DXF_entities_trace_count>999)
+			{
+
+				ui->DXF_TRACE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_TRACE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_UNDERLAY->setText(QString::number(DXF_main_base[0].DXF_entities_underlay));
+
+			if (DXF_main_base[0].DXF_entities_underlay>999)
+			{
+
+				ui->DXF_UNDERLAY->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_UNDERLAY->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_VERTEX->setText(QString::number(DXF_main_base[0].DXF_entities_vertex_count));
+
+			if (DXF_main_base[0].DXF_entities_vertex_count>999)
+			{
+
+				ui->DXF_VERTEX->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_VERTEX->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_VIEWPORT->setText(QString::number(DXF_main_base[0].DXF_entities_viewport_count));
+
+			if (DXF_main_base[0].DXF_entities_viewport_count>999)
+			{
+
+				ui->DXF_VIEWPORT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_VIEWPORT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_WIPEOUT->setText(QString::number(DXF_main_base[0].DXF_entities_wipeout_count));
+
+			if (DXF_main_base[0].DXF_entities_wipeout_count>999)
+			{
+
+				ui->DXF_WIPEOUT->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_WIPEOUT->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+			ui->DXF_XLINE->setText(QString::number(DXF_main_base[0].DXF_entities_xline_count));
+
+			if (DXF_main_base[0].DXF_entities_xline_count>999)
+			{
+
+				ui->DXF_XLINE->setStyleSheet("QLineEdit { background-color:rgb(255,0,0)}");
+			}
+			else
+			{
+				ui->DXF_XLINE->setStyleSheet("QLineEdit { background-color:rgb(7,200,4)}");
+			}
+
+
+
+		}
+		else
+		{
+			log_file.append("not a DXF file, load other file or try a other option \n");
+		}
+
+	}
+	ui->dxf_log->setPlainText(log_file);
+}
+
+void DXFtoQET_MainWindow::on_cload_cvs_into_tables_clicked()
+{
+	split_csv CSV_splt(this);
+
+
+	if (main_sw2==1)
+	{
+		log_file.append("load CSV file into specific table \n");
+
+		log_split=CSV_splt.split_CSV_table();
+
+		log_file.append(log_split);
+
+
+
+
+	}
+	else
+	{
+		log_file.append("not a CSV file, load other file or try a other option \n");
+	}
+	ui->dxf_log->setPlainText(log_file);
+
+	CSV_Load_QTable();
+}
+
+void DXFtoQET_MainWindow::CSV_Load_QTable()
+{
+
+	//extern DXF_base DXF_main_base[1];
+
+	ui->CSV_header_row->setText("1");
+	ui->CSV_split_at_line->setText("30");
+	ui->CSV_start_at_line->setText("2");
+
+
+	CSV_line_count=DXF_main_base[0].dxf_csv_line_count;
+
+	model = new QStandardItemModel(CSV_line_count,20,this);
+
+	ui->CSV_tableView->setModel(model);
+
+	for (int row=0 ; row < CSV_line_count; row++)
+	{
+
+		for (int col=0; col< 20; col++)
+		{
+			QModelIndex index = model->index(row,col,QModelIndex());
+
+			model->setData(index,DXF_main_base[0].dxf_csv_split[row][col]);
+
+			ui->CSV_tableView->show();
+
+		}
+
+	}
+
+	// laad lege settings in CSV_Tablesettings
+
+	model2 = new QStandardItemModel(5,21,this);
+
+	ui->CSV_Tablesettings->setModel(model2);
+
+	List2.append("index");
+	for (int xcol=1;xcol<21;xcol++)
+	{
+		List2.append(QString::number(xcol));
+
+	}
+
+	model2->setHorizontalHeaderLabels(List2);
+
+
+		for (int col=1; col< 21; col++)
+		{
+			QModelIndex index = model2->index(0,col,QModelIndex());
+			model2->setData(index,"100");
+
+			index = model2->index(1,col,QModelIndex());
+			model2->setData(index,"20");
+
+			index = model2->index(2,col,QModelIndex());
+			model2->setData(index,"6");
+
+			index = model2->index(3,col,QModelIndex());
+			model2->setData(index,"1");
+
+			index = model2->index(4,col,QModelIndex());
+			model2->setData(index,"0");
+
+
+			ui->CSV_Tablesettings->show();
+
+		}
+
+
+
+
+
+
+	QModelIndex index = model2->index(0,0,QModelIndex());
+	model2->setData(index,"Colum width");
+
+	index = model2->index(1,0,QModelIndex());
+	model2->setData(index,"Row height");
+
+	index = model2->index(2,0,QModelIndex());
+	model2->setData(index,"Text height");
+
+	index = model2->index(3,0,QModelIndex());
+	model2->setData(index,"Use colum");
+
+	index = model2->index(4,0,QModelIndex());
+	model2->setData(index,"Text rotation");
+
+
+	ui->CSV_Tablesettings->resizeColumnsToContents();
+
+	ui->CSV_Tablesettings->show();
+
+}
+
+void DXFtoQET_MainWindow::on_CSV_create_elmt_clicked()
+{
+
+	Result4="";
+
+	csv_create_elmt NewCSV;
+
+	for (CSV_row=0; CSV_row<5;CSV_row++)
+	{
+
+		for(CSV_col=0;CSV_col<20;CSV_col++)
+		{
+
+			model4 = ui->CSV_Tablesettings->model();
+			QModelIndex idx2 = model4->index(CSV_row, CSV_col);
+			DXF_main_base[0].csv_table_settings[CSV_row][CSV_col]= model4->data(idx2).toString();
+
+		}
+
+		DXF_main_base[0].csv_header=ui->CSV_header_row->text().toInt();
+
+		DXF_main_base[0].csv_start=ui->CSV_start_at_line->text().toInt();
+
+		DXF_main_base[0].csv_split=ui->CSV_split_at_line->text().toInt();
+
+	}
+
+	Result4=NewCSV.Make_ELMT();
+
+	ui->ELMT_result->setPlainText(Result4);
+
+	/*if (DXF_main_base[0].DXF_file_loaded_into_table==1)
+	{
+
+		log_file.append("CSV file NOT loaded into tables \n");
+		log_file.append("click on load CSV into tables \n");
+		ui->dxf_log->setPlainText(log_file);
+
+
+	}
+	else
+	{
+		log_file.append("CSV file coverting to ELMT \n");
+		ui->dxf_log->setPlainText(log_file);
+
+
+		csv_create_elmt make_new_ELMT;
+
+		Result4 = make_new_ELMT.Make_ELMT();
+
+		ui->ELMT_result->setPlainText(Result4);
+
+	}*/
+}
+
+
+
+
+
+
+void DXFtoQET_MainWindow::on_CSV_create_qet_clicked()
+{
+
+}
+
+void DXFtoQET_MainWindow::on_create_elmt_clicked()
+{
+	Result ="";
+
+	if (DXF_main_base[0].DXF_entities_insert_count>0)
+	{
+		log_file.append("DXF file NOT for convertion to ELMT \n");
+		log_file.append("DXF file contains symbols \n");
+		log_file.append("use convertion to QET \n");
+
+		ui->dxf_log->setPlainText(log_file);
+
+
+
+	}
+	else
+	{
+		if (DXF_main_base[0].DXF_file_loaded_into_table==1)
+		{
+			log_file.append("DXF file coverting to ELMT \n");
+			ui->dxf_log->setPlainText(log_file);
+
+			DXF_create_elmt make_new_ELMT;
+
+			Result = make_new_ELMT.Make_ELMT();
+
+			ui->ELMT_result->setPlainText(Result);
+		}
+		else
+		{
+			log_file.append("DXF file NOT loaded into tables \n");
+			log_file.append("click on load DXF into tables \n");
+			ui->dxf_log->setPlainText(log_file);
+
+		}
+	}
+}
+
+void DXFtoQET_MainWindow::on_pushButton_clicked()
+{
+	DXF_main_base[0].DXF_ELMT_Name_text_ar=ui->elmt_lang_ar->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_be_nl=ui->elmt_lang_be_nl->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_cs=ui->elmt_lang_cs->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_de=ui->elmt_lang_de->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_en=ui->elmt_lang_en->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_es=ui->elmt_lang_es->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_fr=ui->elmt_lang_fr->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_it=ui->elmt_lang_it->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_nl=ui->elmt_lang_nl->text();
+	DXF_main_base[0].DXF_ELMT_Name_text_pl=ui->elmt_lang_pl->text();
+
+}
+
+

Added: branches/dxftoqet2/dxftoqet_mainwindow.h
===================================================================
--- branches/dxftoqet2/dxftoqet_mainwindow.h	                        (rev 0)
+++ branches/dxftoqet2/dxftoqet_mainwindow.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,109 @@
+#ifndef DXFTOQET_MAINWINDOW_H
+#define DXFTOQET_MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QObject>
+#include <QMessageBox>
+#include <QtWidgets>
+
+#include "dxf_data.h"
+#include "dxf_load.h"
+#include "dxf_split.h"
+#include "split_csv.h"
+#include "csv_build_table.h"
+#include "dxf_create_elmt.h"
+#include "csv_create_elmt.h"
+
+#include <QTextStream>
+#include <QFileDialog>
+#include <QFile>
+#include <QModelIndex>
+
+
+
+
+namespace Ui {
+	class DXFtoQET_MainWindow;
+	class dxf_split;
+
+}
+
+class DXFtoQET_MainWindow : public QMainWindow, public dxf_data
+{
+	Q_OBJECT
+
+	public:
+
+	explicit DXFtoQET_MainWindow(QWidget *parent = 0);
+
+
+	~DXFtoQET_MainWindow();
+
+
+
+	int main_sw1; // Binaery = 0 ASCII = 1
+	int main_sw2; // CSV = 1
+	int main_sw3; // DXF = 1
+
+	int CSV_line_count;
+	int CSV_row;
+	int CSV_col;
+
+	int csv_elmt_count;
+
+	QString log_file;
+	QString log_trans;
+	QString log_split;
+
+	QString FileType;
+	QString FileName;
+
+	QString Result;
+	QString Result4;
+
+	QStandardItemModel *model;
+	QStandardItemModel *model2;
+	QStandardItemModel *model3;
+	QAbstractItemModel *model4;
+
+	QStringList List2;
+
+	void CSV_Load_QTable();
+	void CSV_Load_settings();
+
+	protected:
+
+	void changeEvent(QEvent *e);
+
+	private slots:
+
+	void on_actionOpen_triggered();
+
+	void on_actionSave_as_elmt_triggered();
+
+	void on_actionSave_as_qet_triggered();
+
+
+
+	void on_load_into_tables_clicked();
+
+	void on_cload_cvs_into_tables_clicked();
+
+
+
+
+	void on_CSV_create_elmt_clicked();
+
+	void on_CSV_create_qet_clicked();
+
+	void on_create_elmt_clicked();
+
+	void on_pushButton_clicked();
+
+
+
+	private:
+	Ui::DXFtoQET_MainWindow *ui;
+};
+
+#endif // DXFTOQET_MAINWINDOW_H

Added: branches/dxftoqet2/dxftoqet_mainwindow.ui
===================================================================
--- branches/dxftoqet2/dxftoqet_mainwindow.ui	                        (rev 0)
+++ branches/dxftoqet2/dxftoqet_mainwindow.ui	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,2801 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <author>Ronny Desmedt</author>
+ <class>DXFtoQET_MainWindow</class>
+ <widget class="QMainWindow" name="DXFtoQET_MainWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>1222</width>
+    <height>950</height>
+   </rect>
+  </property>
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="windowTitle">
+   <string>DXFtoQET</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">qlineargradient:(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(58, 91, 113, 255), stop:1 rgba(255, 255, 255, 255))</string>
+  </property>
+  <widget class="QWidget" name="centralWidget">
+   <widget class="QWidget" name="layoutWidget">
+    <property name="geometry">
+     <rect>
+      <x>10</x>
+      <y>11</y>
+      <width>1191</width>
+      <height>873</height>
+     </rect>
+    </property>
+    <layout class="QVBoxLayout" name="verticalLayout_9">
+     <item>
+      <layout class="QVBoxLayout" name="verticalLayout_7">
+       <item>
+        <widget class="QLabel" name="dxf_binary_label">
+         <property name="font">
+          <font>
+           <weight>75</weight>
+           <bold>true</bold>
+          </font>
+         </property>
+         <property name="styleSheet">
+          <string notr="true">Background:qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0.163636 rgba(131, 234, 106, 255), stop:0.368182 rgba(226, 222, 97, 255), stop:0.681818 rgba(115, 247, 206, 255), stop:1 rgba(206, 186, 255, 255))</string>
+         </property>
+         <property name="frameShape">
+          <enum>QFrame::Panel</enum>
+         </property>
+         <property name="frameShadow">
+          <enum>QFrame::Sunken</enum>
+         </property>
+         <property name="text">
+          <string>DXF binaery files are not converted by this tool</string>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignCenter</set>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_8">
+         <item>
+          <layout class="QHBoxLayout" name="horizontalLayout_7">
+           <item>
+            <layout class="QVBoxLayout" name="verticalLayout_5">
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_5">
+               <item>
+                <widget class="QLabel" name="dxf_line_text">
+                 <property name="text">
+                  <string>Lines in file </string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_7">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>40</width>
+                   <height>20</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+               <item>
+                <widget class="QLineEdit" name="dxf_line_count">
+                 <property name="sizePolicy">
+                  <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+                   <horstretch>0</horstretch>
+                   <verstretch>0</verstretch>
+                  </sizepolicy>
+                 </property>
+                 <property name="minimumSize">
+                  <size>
+                   <width>450</width>
+                   <height>0</height>
+                  </size>
+                 </property>
+                 <property name="styleSheet">
+                  <string notr="true">color: rgb(255, 0, 0);</string>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout">
+               <item>
+                <widget class="QLabel" name="label">
+                 <property name="text">
+                  <string>Open file </string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_4">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>40</width>
+                   <height>20</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+               <item>
+                <widget class="QLineEdit" name="dxf_open_file">
+                 <property name="minimumSize">
+                  <size>
+                   <width>450</width>
+                   <height>0</height>
+                  </size>
+                 </property>
+                 <property name="maximumSize">
+                  <size>
+                   <width>16777215</width>
+                   <height>16777215</height>
+                  </size>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_6">
+               <item>
+                <widget class="QLabel" name="dxf_line_counter_2">
+                 <property name="text">
+                  <string>Processesing</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_9">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>40</width>
+                   <height>20</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+               <item>
+                <widget class="QLineEdit" name="dxf_file_path">
+                 <property name="minimumSize">
+                  <size>
+                   <width>450</width>
+                   <height>0</height>
+                  </size>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <spacer name="verticalSpacer_5">
+               <property name="orientation">
+                <enum>Qt::Vertical</enum>
+               </property>
+               <property name="sizeType">
+                <enum>QSizePolicy::Preferred</enum>
+               </property>
+               <property name="sizeHint" stdset="0">
+                <size>
+                 <width>20</width>
+                 <height>10</height>
+                </size>
+               </property>
+              </spacer>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QVBoxLayout" name="verticalLayout_6">
+             <item>
+              <spacer name="horizontalSpacer_8">
+               <property name="orientation">
+                <enum>Qt::Horizontal</enum>
+               </property>
+               <property name="sizeHint" stdset="0">
+                <size>
+                 <width>40</width>
+                 <height>20</height>
+                </size>
+               </property>
+              </spacer>
+             </item>
+             <item>
+              <spacer name="verticalSpacer_4">
+               <property name="orientation">
+                <enum>Qt::Vertical</enum>
+               </property>
+               <property name="sizeType">
+                <enum>QSizePolicy::Preferred</enum>
+               </property>
+               <property name="sizeHint" stdset="0">
+                <size>
+                 <width>20</width>
+                 <height>10</height>
+                </size>
+               </property>
+              </spacer>
+             </item>
+            </layout>
+           </item>
+          </layout>
+         </item>
+         <item>
+          <layout class="QGridLayout" name="gridLayout_3">
+           <item row="3" column="0">
+            <spacer name="verticalSpacer">
+             <property name="orientation">
+              <enum>Qt::Vertical</enum>
+             </property>
+             <property name="sizeType">
+              <enum>QSizePolicy::Preferred</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>20</width>
+               <height>10</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+           <item row="1" column="0">
+            <widget class="QPushButton" name="CSV_create_elmt">
+             <property name="maximumSize">
+              <size>
+               <width>300</width>
+               <height>16777215</height>
+              </size>
+             </property>
+             <property name="text">
+              <string>CSV create ELMT</string>
+             </property>
+            </widget>
+           </item>
+           <item row="0" column="0">
+            <widget class="QPushButton" name="cload_cvs_into_tables">
+             <property name="maximumSize">
+              <size>
+               <width>400</width>
+               <height>16777215</height>
+              </size>
+             </property>
+             <property name="text">
+              <string>Load CSV file into table</string>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="0">
+            <widget class="QPushButton" name="CSV_create_qet">
+             <property name="maximumSize">
+              <size>
+               <width>300</width>
+               <height>16777215</height>
+              </size>
+             </property>
+             <property name="text">
+              <string>CSV create QET</string>
+             </property>
+            </widget>
+           </item>
+           <item row="0" column="1">
+            <widget class="QPushButton" name="load_into_tables">
+             <property name="maximumSize">
+              <size>
+               <width>300</width>
+               <height>16777215</height>
+              </size>
+             </property>
+             <property name="text">
+              <string>Load DXF file into tables</string>
+             </property>
+            </widget>
+           </item>
+           <item row="1" column="1">
+            <widget class="QPushButton" name="create_elmt">
+             <property name="maximumSize">
+              <size>
+               <width>300</width>
+               <height>16777215</height>
+              </size>
+             </property>
+             <property name="text">
+              <string>Create ELMT</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </item>
+     <item>
+      <layout class="QVBoxLayout" name="verticalLayout_8">
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_9">
+         <item>
+          <widget class="QPlainTextEdit" name="dxf_file_loaded">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="maximumSize">
+            <size>
+             <width>16777215</width>
+             <height>16777215</height>
+            </size>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="verticalSpacer_7">
+           <property name="orientation">
+            <enum>Qt::Vertical</enum>
+           </property>
+           <property name="sizeType">
+            <enum>QSizePolicy::Preferred</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>20</width>
+             <height>10</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_5">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeType">
+            <enum>QSizePolicy::Minimum</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>10</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QTabWidget" name="tabWidget">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>650</height>
+            </size>
+           </property>
+           <property name="maximumSize">
+            <size>
+             <width>16777215</width>
+             <height>16777215</height>
+            </size>
+           </property>
+           <property name="styleSheet">
+            <string notr="true">BACKGROUND:rgb(216, 215, 222)</string>
+           </property>
+           <property name="tabPosition">
+            <enum>QTabWidget::North</enum>
+           </property>
+           <property name="tabShape">
+            <enum>QTabWidget::Rounded</enum>
+           </property>
+           <property name="currentIndex">
+            <number>3</number>
+           </property>
+           <widget class="QWidget" name="tab_ELMT">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <attribute name="title">
+             <string>ELMT</string>
+            </attribute>
+            <widget class="QWidget" name="gridLayoutWidget_10">
+             <property name="geometry">
+              <rect>
+               <x>10</x>
+               <y>10</y>
+               <width>721</width>
+               <height>551</height>
+              </rect>
+             </property>
+             <layout class="QVBoxLayout" name="verticalLayout_2">
+              <item>
+               <widget class="QTextEdit" name="ELMT_result">
+                <property name="styleSheet">
+                 <string notr="true">BACKGROUND:rgb(255, 255, 255)</string>
+                </property>
+                <property name="lineWrapMode">
+                 <enum>QTextEdit::NoWrap</enum>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </widget>
+           </widget>
+           <widget class="QWidget" name="tab">
+            <attribute name="title">
+             <string>ELMT Langue</string>
+            </attribute>
+            <widget class="QWidget" name="layoutWidget">
+             <property name="geometry">
+              <rect>
+               <x>10</x>
+               <y>20</y>
+               <width>275</width>
+               <height>451</height>
+              </rect>
+             </property>
+             <layout class="QGridLayout" name="gridLayout_2">
+              <item row="9" column="0">
+               <widget class="QLabel" name="label_68">
+                <property name="text">
+                 <string>NL</string>
+                </property>
+               </widget>
+              </item>
+              <item row="4" column="1">
+               <widget class="QLineEdit" name="elmt_lang_de">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="5" column="0">
+               <widget class="QLabel" name="label_67">
+                <property name="text">
+                 <string>EN</string>
+                </property>
+               </widget>
+              </item>
+              <item row="5" column="1">
+               <widget class="QLineEdit" name="elmt_lang_en">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="6" column="0">
+               <widget class="QLabel" name="label_73">
+                <property name="text">
+                 <string>ES</string>
+                </property>
+               </widget>
+              </item>
+              <item row="7" column="1">
+               <widget class="QLineEdit" name="elmt_lang_fr">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="0" column="0" colspan="2">
+               <widget class="QLabel" name="label_21">
+                <property name="maximumSize">
+                 <size>
+                  <width>16777215</width>
+                  <height>20</height>
+                 </size>
+                </property>
+                <property name="text">
+                 <string>Language</string>
+                </property>
+                <property name="alignment">
+                 <set>Qt::AlignCenter</set>
+                </property>
+               </widget>
+              </item>
+              <item row="7" column="0">
+               <widget class="QLabel" name="label_76">
+                <property name="text">
+                 <string>FR</string>
+                </property>
+               </widget>
+              </item>
+              <item row="2" column="1">
+               <widget class="QLineEdit" name="elmt_lang_be_nl">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="3" column="1">
+               <widget class="QLineEdit" name="elmt_lang_cs">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="4" column="0">
+               <widget class="QLabel" name="label_72">
+                <property name="text">
+                 <string>DE</string>
+                </property>
+               </widget>
+              </item>
+              <item row="10" column="0">
+               <widget class="QLabel" name="label_74">
+                <property name="text">
+                 <string>PL</string>
+                </property>
+               </widget>
+              </item>
+              <item row="8" column="1">
+               <widget class="QLineEdit" name="elmt_lang_it">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="9" column="1">
+               <widget class="QLineEdit" name="elmt_lang_nl">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="10" column="1">
+               <widget class="QLineEdit" name="elmt_lang_pl">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="1" column="0">
+               <widget class="QLabel" name="label_69">
+                <property name="text">
+                 <string>AR</string>
+                </property>
+               </widget>
+              </item>
+              <item row="3" column="0">
+               <widget class="QLabel" name="label_71">
+                <property name="text">
+                 <string>CS</string>
+                </property>
+               </widget>
+              </item>
+              <item row="2" column="0">
+               <widget class="QLabel" name="label_70">
+                <property name="text">
+                 <string>BE-NL</string>
+                </property>
+               </widget>
+              </item>
+              <item row="1" column="1">
+               <widget class="QLineEdit" name="elmt_lang_ar">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="6" column="1">
+               <widget class="QLineEdit" name="elmt_lang_es">
+                <property name="minimumSize">
+                 <size>
+                  <width>200</width>
+                  <height>0</height>
+                 </size>
+                </property>
+               </widget>
+              </item>
+              <item row="8" column="0">
+               <widget class="QLabel" name="label_75">
+                <property name="text">
+                 <string>IT</string>
+                </property>
+               </widget>
+              </item>
+              <item row="11" column="1">
+               <spacer name="verticalSpacer_8">
+                <property name="orientation">
+                 <enum>Qt::Vertical</enum>
+                </property>
+                <property name="sizeHint" stdset="0">
+                 <size>
+                  <width>20</width>
+                  <height>40</height>
+                 </size>
+                </property>
+               </spacer>
+              </item>
+             </layout>
+            </widget>
+            <widget class="QPushButton" name="pushButton">
+             <property name="geometry">
+              <rect>
+               <x>370</x>
+               <y>60</y>
+               <width>99</width>
+               <height>27</height>
+              </rect>
+             </property>
+             <property name="text">
+              <string>Update</string>
+             </property>
+            </widget>
+           </widget>
+           <widget class="QWidget" name="tab_dxf_items">
+            <attribute name="title">
+             <string>DXF items</string>
+            </attribute>
+            <widget class="QTabWidget" name="tabWidget_2">
+             <property name="geometry">
+              <rect>
+               <x>10</x>
+               <y>10</y>
+               <width>711</width>
+               <height>601</height>
+              </rect>
+             </property>
+             <property name="minimumSize">
+              <size>
+               <width>331</width>
+               <height>0</height>
+              </size>
+             </property>
+             <property name="styleSheet">
+              <string notr="true">BACKGROUND:rgb(225, 225, 225)</string>
+             </property>
+             <property name="currentIndex">
+              <number>3</number>
+             </property>
+             <widget class="QWidget" name="tab_dxf_sections">
+              <attribute name="title">
+               <string>DXF sections</string>
+              </attribute>
+              <widget class="QWidget" name="gridLayoutWidget_8">
+               <property name="geometry">
+                <rect>
+                 <x>10</x>
+                 <y>10</y>
+                 <width>301</width>
+                 <height>301</height>
+                </rect>
+               </property>
+               <layout class="QGridLayout" name="gridLayout_8">
+                <item row="2" column="0">
+                 <widget class="QLabel" name="label_3">
+                  <property name="text">
+                   <string>TABLES</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="1">
+                 <widget class="QLineEdit" name="block_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="2">
+                 <spacer name="horizontalSpacer">
+                  <property name="orientation">
+                   <enum>Qt::Horizontal</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>40</width>
+                    <height>20</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+                <item row="4" column="0">
+                 <widget class="QLabel" name="label_5">
+                  <property name="text">
+                   <string>ENTITIES</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="1">
+                 <widget class="QLineEdit" name="entites_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="1">
+                 <widget class="QLineEdit" name="thumbnailimage_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="1">
+                 <widget class="QLineEdit" name="header_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="1">
+                 <widget class="QLineEdit" name="objecs_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="0">
+                 <widget class="QLabel" name="label_6">
+                  <property name="maximumSize">
+                   <size>
+                    <width>300</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="text">
+                   <string>OBJECTS</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="0">
+                 <widget class="QLabel" name="label_4">
+                  <property name="text">
+                   <string>BLOCK</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="0">
+                 <widget class="QLabel" name="label_7">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>300</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="text">
+                   <string>THUMBNAILIMAGE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="1">
+                 <widget class="QLineEdit" name="Classes_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="0">
+                 <widget class="QLabel" name="Header_Count">
+                  <property name="text">
+                   <string>HEADER</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="0">
+                 <widget class="QLabel" name="label_2">
+                  <property name="text">
+                   <string>CLASSES</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="1">
+                 <widget class="QLineEdit" name="tables_line_count">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color: rgb(255, 0, 0);</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="1">
+                 <spacer name="verticalSpacer_2">
+                  <property name="orientation">
+                   <enum>Qt::Vertical</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>20</width>
+                    <height>40</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+               </layout>
+              </widget>
+             </widget>
+             <widget class="QWidget" name="DXF_block_items">
+              <attribute name="title">
+               <string>DXF Tables</string>
+              </attribute>
+              <widget class="QWidget" name="gridLayoutWidget_9">
+               <property name="geometry">
+                <rect>
+                 <x>10</x>
+                 <y>6</y>
+                 <width>311</width>
+                 <height>361</height>
+                </rect>
+               </property>
+               <layout class="QGridLayout" name="gridLayout_9">
+                <item row="6" column="0">
+                 <widget class="QLabel" name="label_14">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>STYLE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="2">
+                 <spacer name="horizontalSpacer_2">
+                  <property name="orientation">
+                   <enum>Qt::Horizontal</enum>
+                  </property>
+                  <property name="sizeType">
+                   <enum>QSizePolicy::Minimum</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>40</width>
+                    <height>20</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+                <item row="3" column="0">
+                 <widget class="QLabel" name="label_11">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>DIMSTYLE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="1">
+                 <widget class="QLineEdit" name="table_view_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="1">
+                 <widget class="QLineEdit" name="table_dimstyle_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="0">
+                 <widget class="QLabel" name="label_15">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>UCS</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="0">
+                 <widget class="QLabel" name="label_9">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>APPID</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="1">
+                 <widget class="QLineEdit" name="table_appid_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="0">
+                 <widget class="QLabel" name="label_16">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>VIEW</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="0">
+                 <widget class="QLabel" name="label_12">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>LAYER</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="1">
+                 <widget class="QLineEdit" name="table_ltype_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="1">
+                 <widget class="QLineEdit" name="table_style_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="1">
+                 <widget class="QLineEdit" name="table_layer_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="0">
+                 <widget class="QLabel" name="label_13">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>LTYPE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="0">
+                 <widget class="QLabel" name="label_10">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>BLOCK_RECORD</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="1">
+                 <widget class="QLineEdit" name="table_block_record_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="0" colspan="2">
+                 <widget class="QLabel" name="label_18">
+                  <property name="text">
+                   <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;TABLES&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="1">
+                 <widget class="QLineEdit" name="table_ucs_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="0">
+                 <widget class="QLabel" name="label_17">
+                  <property name="maximumSize">
+                   <size>
+                    <width>150</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(0, 0, 255)</string>
+                  </property>
+                  <property name="text">
+                   <string>VPORT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="1">
+                 <widget class="QLineEdit" name="table_vport_count">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="1">
+                 <spacer name="verticalSpacer_3">
+                  <property name="orientation">
+                   <enum>Qt::Vertical</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>20</width>
+                    <height>40</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+               </layout>
+              </widget>
+             </widget>
+             <widget class="QWidget" name="Block_items">
+              <attribute name="title">
+               <string>Block</string>
+              </attribute>
+             </widget>
+             <widget class="QWidget" name="Entites_items">
+              <attribute name="title">
+               <string>Entities</string>
+              </attribute>
+              <widget class="QWidget" name="layoutWidget">
+               <property name="geometry">
+                <rect>
+                 <x>10</x>
+                 <y>10</y>
+                 <width>681</width>
+                 <height>532</height>
+                </rect>
+               </property>
+               <layout class="QGridLayout" name="gridLayout">
+                <item row="2" column="3">
+                 <widget class="QLineEdit" name="DXF_LINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="4">
+                 <widget class="QLabel" name="label_54">
+                  <property name="text">
+                   <string>SHAPE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="4">
+                 <widget class="QLabel" name="label_55">
+                  <property name="text">
+                   <string>SOLID</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="2">
+                 <widget class="QLabel" name="label_45">
+                  <property name="text">
+                   <string>POINT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="2">
+                 <widget class="QLabel" name="label_48">
+                  <property name="text">
+                   <string>MLINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="0">
+                 <widget class="QLabel" name="label_33">
+                  <property name="text">
+                   <string>HELIX</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="2">
+                 <widget class="QLabel" name="label_40">
+                  <property name="text">
+                   <string>MESH</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="2">
+                 <widget class="QLabel" name="label_51">
+                  <property name="text">
+                   <string>MTEXT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="1">
+                 <widget class="QLineEdit" name="DXF_INSERT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="5">
+                 <widget class="QLineEdit" name="DXF_SOLID">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="4">
+                 <widget class="QLabel" name="label_58">
+                  <property name="text">
+                   <string>SURFACE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="5">
+                 <widget class="QLineEdit" name="DXF_TOLERANCE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="1">
+                 <widget class="QLineEdit" name="DXF_IMAGE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="3">
+                 <widget class="QLineEdit" name="DXF_MLEADERSTYLE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="5">
+                 <widget class="QLineEdit" name="DXF_VERTEX">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="5">
+                 <widget class="QLineEdit" name="DXF_TRACE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="1">
+                 <widget class="QLineEdit" name="DXF_ARC">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="0">
+                 <widget class="QLabel" name="label_28">
+                  <property name="text">
+                   <string>BODY</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="0">
+                 <widget class="QLabel" name="label_32">
+                  <property name="text">
+                   <string>HATCH</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="1">
+                 <widget class="QLineEdit" name="DXF_ELLIPSE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="4">
+                 <widget class="QLabel" name="label_53">
+                  <property name="text">
+                   <string>SEQEND</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="5">
+                 <widget class="QLineEdit" name="DXF_REGION">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="3">
+                 <widget class="QLineEdit" name="DXF_MTEXT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="5">
+                 <widget class="QLineEdit" name="DXF_SURFACE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="5">
+                 <widget class="QLineEdit" name="DXF_SECTION">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="5">
+                 <widget class="QLineEdit" name="DXF_TABLE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="4">
+                 <widget class="QLabel" name="label_59">
+                  <property name="text">
+                   <string>TABLE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="4">
+                 <widget class="QLabel" name="label_60">
+                  <property name="text">
+                   <string>TEXT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="3">
+                 <widget class="QLineEdit" name="DXF_RAY">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="1">
+                 <widget class="QLineEdit" name="DXF_HATCH">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="0">
+                 <widget class="QLabel" name="label_24">
+                  <property name="text">
+                   <string>3DFACE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="4">
+                 <widget class="QLabel" name="label_63">
+                  <property name="text">
+                   <string>UNDERLAY</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="4">
+                 <widget class="QLabel" name="label_64">
+                  <property name="text">
+                   <string>VERTEX</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="1">
+                 <widget class="QLineEdit" name="DXF_3DFACE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="3">
+                 <widget class="QLineEdit" name="DXF_OLEFRAME">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="4">
+                 <widget class="QLabel" name="label_56">
+                  <property name="text">
+                   <string>SPLINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="4">
+                 <widget class="QLabel" name="label_57">
+                  <property name="text">
+                   <string>SUN</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="0">
+                 <widget class="QLabel" name="label_34">
+                  <property name="text">
+                   <string>IMAGE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="0">
+                 <widget class="QLabel" name="label_23">
+                  <property name="text">
+                   <string>3DSOLID</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="2">
+                 <widget class="QLabel" name="label_43">
+                  <property name="text">
+                   <string>RAY</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="1">
+                 <widget class="QLineEdit" name="DXF_ATTDEF">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="0">
+                 <widget class="QLabel" name="label_25">
+                  <property name="text">
+                   <string>ACAD_PROXY_ENTITY</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="3">
+                 <widget class="QLineEdit" name="DXF_LIGHT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="0">
+                 <widget class="QLabel" name="label_30">
+                  <property name="text">
+                   <string>DIMENSIONS</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="3">
+                 <widget class="QLineEdit" name="DXF_POINT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="2">
+                 <widget class="QLabel" name="label_47">
+                  <property name="text">
+                   <string>OLEFRAME</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="2">
+                 <widget class="QLabel" name="label_36">
+                  <property name="text">
+                   <string>LEADER</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="1">
+                 <widget class="QLineEdit" name="DXF_3DSOLID">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="2">
+                 <widget class="QLabel" name="label_44">
+                  <property name="text">
+                   <string>POLYLINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="5">
+                 <widget class="QLineEdit" name="DXF_SHAPE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="5">
+                 <widget class="QLineEdit" name="DXF_SUN">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="1">
+                 <widget class="QLineEdit" name="DXF_CIRCLE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="5">
+                 <widget class="QLineEdit" name="DXF_TEXT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="0">
+                 <widget class="QLabel" name="label_29">
+                  <property name="text">
+                   <string>CIRCLE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="2">
+                 <widget class="QLabel" name="label_50">
+                  <property name="text">
+                   <string>MLEADER</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="6">
+                 <widget class="QLabel" name="label_65">
+                  <property name="text">
+                   <string>WIPEOUT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="5">
+                 <widget class="QLineEdit" name="DXF_SEQEND">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="6">
+                 <widget class="QLabel" name="label_66">
+                  <property name="text">
+                   <string>XLINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="5">
+                 <widget class="QLineEdit" name="DXF_UNDERLAY">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="1">
+                 <widget class="QLineEdit" name="DXF_ATTRIB">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="3">
+                 <widget class="QLineEdit" name="DXF_MESH">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="4">
+                 <widget class="QLabel" name="label_41">
+                  <property name="text">
+                   <string>SECTION</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="2">
+                 <widget class="QLabel" name="label_46">
+                  <property name="text">
+                   <string>OLE2FRAME</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="7">
+                 <widget class="QLineEdit" name="DXF_VIEWPORT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="12" column="3">
+                 <widget class="QLineEdit" name="DXF_POLYLINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="0">
+                 <widget class="QLabel" name="label_31">
+                  <property name="text">
+                   <string>ELLIPSE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="7">
+                 <widget class="QLineEdit" name="DXF_WIPEOUT">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="6">
+                 <widget class="QLabel" name="label_52">
+                  <property name="text">
+                   <string>VIEWPORT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="0">
+                 <widget class="QLabel" name="label_22">
+                  <property name="text">
+                   <string>ATTDEF</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="1">
+                 <widget class="QLineEdit" name="DXF_HELIX">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="5">
+                 <widget class="QLineEdit" name="DXF_SPLINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="1">
+                 <widget class="QLineEdit" name="DXF_ACAD_PROXY_ENTITY">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="11" column="4">
+                 <widget class="QLabel" name="label_62">
+                  <property name="text">
+                   <string>TRACE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="7" column="3">
+                 <widget class="QLineEdit" name="DXF_MLEADER">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="3">
+                 <widget class="QLineEdit" name="DXF_LEADER">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="4">
+                 <widget class="QLabel" name="label_61">
+                  <property name="text">
+                   <string>TOLERANCE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="3">
+                 <widget class="QLineEdit" name="DXF_MLINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="2">
+                 <widget class="QLabel" name="label_38">
+                  <property name="text">
+                   <string>LINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="3">
+                 <widget class="QLineEdit" name="DXF_LWPOLYLINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="2">
+                 <widget class="QLabel" name="label_37">
+                  <property name="text">
+                   <string>LIGHT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="0">
+                 <widget class="QLabel" name="label_26">
+                  <property name="text">
+                   <string>ARC</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="2">
+                 <widget class="QLabel" name="label_39">
+                  <property name="text">
+                   <string>LWPOLYLINE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="10" column="3">
+                 <widget class="QLineEdit" name="DXF_OLE2FRAME">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="2">
+                 <widget class="QLabel" name="label_49">
+                  <property name="text">
+                   <string>MLEADERSTYLE</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="0">
+                 <widget class="QLabel" name="label_35">
+                  <property name="text">
+                   <string>INSERT</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="1">
+                 <widget class="QLineEdit" name="DXF_DIMENSIONS">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="5" column="0">
+                 <widget class="QLabel" name="label_27">
+                  <property name="text">
+                   <string>ATTRIB</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="4">
+                 <widget class="QLabel" name="label_42">
+                  <property name="text">
+                   <string>REGION</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="1">
+                 <widget class="QLineEdit" name="DXF_BODY">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="7">
+                 <widget class="QLineEdit" name="DXF_XLINE">
+                  <property name="maximumSize">
+                   <size>
+                    <width>50</width>
+                    <height>16777215</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">color:rgb(170, 85, 255)</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="3" column="6">
+                 <widget class="QLabel" name="label_77">
+                  <property name="styleSheet">
+                   <string notr="true">BACKGROUND:rgb(7, 200, 4)</string>
+                  </property>
+                  <property name="text">
+                   <string>In range</string>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignCenter</set>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="6">
+                 <widget class="QLabel" name="label_78">
+                  <property name="styleSheet">
+                   <string notr="true">BACKGROUND:rgb(225, 0, 0)</string>
+                  </property>
+                  <property name="text">
+                   <string>Out range</string>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignCenter</set>
+                  </property>
+                 </widget>
+                </item>
+                <item row="13" column="7">
+                 <spacer name="horizontalSpacer_10">
+                  <property name="orientation">
+                   <enum>Qt::Horizontal</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>40</width>
+                    <height>20</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+                <item row="5" column="6" rowspan="6" colspan="2">
+                 <widget class="QPlainTextEdit" name="plainTextEdit">
+                  <property name="plainText">
+                   <string>When there are items 'Out Range' send me a email with a screen snapshot of this page</string>
+                  </property>
+                  <property name="placeholderText">
+                   <string/>
+                  </property>
+                 </widget>
+                </item>
+               </layout>
+              </widget>
+             </widget>
+            </widget>
+           </widget>
+           <widget class="QWidget" name="tab_qet">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <attribute name="title">
+             <string>QET</string>
+            </attribute>
+            <layout class="QHBoxLayout" name="horizontalLayout_3">
+             <item>
+              <widget class="QPlainTextEdit" name="QET_result">
+               <property name="sizePolicy">
+                <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+                 <horstretch>0</horstretch>
+                 <verstretch>0</verstretch>
+                </sizepolicy>
+               </property>
+               <property name="minimumSize">
+                <size>
+                 <width>100</width>
+                 <height>100</height>
+                </size>
+               </property>
+               <property name="styleSheet">
+                <string notr="true">BACKGROUND:rgb(255, 255, 255)</string>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </widget>
+           <widget class="QWidget" name="tab_csv_items">
+            <attribute name="title">
+             <string>CSV items</string>
+            </attribute>
+            <widget class="QWidget" name="layoutWidget">
+             <property name="geometry">
+              <rect>
+               <x>10</x>
+               <y>10</y>
+               <width>791</width>
+               <height>391</height>
+              </rect>
+             </property>
+             <layout class="QHBoxLayout" name="horizontalLayout_4">
+              <item>
+               <layout class="QVBoxLayout" name="verticalLayout">
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_2">
+                  <item>
+                   <widget class="QLabel" name="label_19">
+                    <property name="maximumSize">
+                     <size>
+                      <width>100</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                    <property name="text">
+                     <string>Header row :</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLineEdit" name="CSV_header_row">
+                    <property name="maximumSize">
+                     <size>
+                      <width>40</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                    <property name="sizeIncrement">
+                     <size>
+                      <width>0</width>
+                      <height>0</height>
+                     </size>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLabel" name="label_20">
+                    <property name="maximumSize">
+                     <size>
+                      <width>100</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                    <property name="text">
+                     <string>Start at line :</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLineEdit" name="CSV_start_at_line">
+                    <property name="minimumSize">
+                     <size>
+                      <width>0</width>
+                      <height>0</height>
+                     </size>
+                    </property>
+                    <property name="maximumSize">
+                     <size>
+                      <width>40</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLabel" name="label_79">
+                    <property name="maximumSize">
+                     <size>
+                      <width>100</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                    <property name="text">
+                     <string>Split at line :</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLineEdit" name="CSV_split_at_line">
+                    <property name="minimumSize">
+                     <size>
+                      <width>0</width>
+                      <height>0</height>
+                     </size>
+                    </property>
+                    <property name="maximumSize">
+                     <size>
+                      <width>40</width>
+                      <height>16777215</height>
+                     </size>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <spacer name="horizontalSpacer_3">
+                    <property name="orientation">
+                     <enum>Qt::Horizontal</enum>
+                    </property>
+                    <property name="sizeType">
+                     <enum>QSizePolicy::Minimum</enum>
+                    </property>
+                    <property name="sizeHint" stdset="0">
+                     <size>
+                      <width>20</width>
+                      <height>20</height>
+                     </size>
+                    </property>
+                   </spacer>
+                  </item>
+                 </layout>
+                </item>
+                <item>
+                 <widget class="QTableView" name="CSV_tableView">
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
+                  <property name="minimumSize">
+                   <size>
+                    <width>400</width>
+                    <height>0</height>
+                   </size>
+                  </property>
+                  <property name="styleSheet">
+                   <string notr="true">Background:rgb(255, 255, 255)</string>
+                  </property>
+                  <property name="sortingEnabled">
+                   <bool>true</bool>
+                  </property>
+                 </widget>
+                </item>
+               </layout>
+              </item>
+             </layout>
+            </widget>
+            <widget class="QTableView" name="CSV_Tablesettings">
+             <property name="geometry">
+              <rect>
+               <x>20</x>
+               <y>410</y>
+               <width>691</width>
+               <height>192</height>
+              </rect>
+             </property>
+            </widget>
+            <zorder>CSV_Tablesettings</zorder>
+            <zorder>layoutWidget</zorder>
+           </widget>
+           <widget class="QWidget" name="tab_log">
+            <attribute name="title">
+             <string>Log</string>
+            </attribute>
+            <widget class="QWidget" name="layoutWidget">
+             <property name="geometry">
+              <rect>
+               <x>10</x>
+               <y>10</y>
+               <width>701</width>
+               <height>521</height>
+              </rect>
+             </property>
+             <layout class="QVBoxLayout" name="verticalLayout_4">
+              <item>
+               <widget class="QLabel" name="label_8">
+                <property name="sizePolicy">
+                 <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                  <horstretch>0</horstretch>
+                  <verstretch>0</verstretch>
+                 </sizepolicy>
+                </property>
+                <property name="maximumSize">
+                 <size>
+                  <width>16777215</width>
+                  <height>25</height>
+                 </size>
+                </property>
+                <property name="styleSheet">
+                 <string notr="true">Background:qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0.163636 rgba(131, 234, 106, 255), stop:0.368182 rgba(226, 222, 97, 255), stop:0.681818 rgba(115, 247, 206, 255), stop:1 rgba(206, 186, 255, 255))</string>
+                </property>
+                <property name="text">
+                 <string>Processing log</string>
+                </property>
+                <property name="alignment">
+                 <set>Qt::AlignCenter</set>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QPlainTextEdit" name="dxf_log">
+                <property name="sizePolicy">
+                 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+                  <horstretch>0</horstretch>
+                  <verstretch>0</verstretch>
+                 </sizepolicy>
+                </property>
+                <property name="styleSheet">
+                 <string notr="true">BACKGROUND:rgb(255, 255, 255)</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <spacer name="horizontalSpacer_6">
+                <property name="orientation">
+                 <enum>Qt::Horizontal</enum>
+                </property>
+                <property name="sizeHint" stdset="0">
+                 <size>
+                  <width>698</width>
+                  <height>20</height>
+                 </size>
+                </property>
+               </spacer>
+              </item>
+             </layout>
+            </widget>
+           </widget>
+          </widget>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <widget class="QProgressBar" name="progressBar">
+         <property name="value">
+          <number>0</number>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <spacer name="verticalSpacer_6">
+         <property name="orientation">
+          <enum>Qt::Vertical</enum>
+         </property>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>20</width>
+           <height>20</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </item>
+    </layout>
+   </widget>
+  </widget>
+  <widget class="QMenuBar" name="menuBar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>1222</width>
+     <height>23</height>
+    </rect>
+   </property>
+   <property name="nativeMenuBar">
+    <bool>false</bool>
+   </property>
+   <widget class="QMenu" name="menuFile">
+    <property name="title">
+     <string>&amp;File</string>
+    </property>
+    <addaction name="actionOpen"/>
+    <addaction name="actionSave_as_elmt"/>
+    <addaction name="actionSave_as_qet"/>
+   </widget>
+   <addaction name="menuFile"/>
+  </widget>
+  <widget class="QStatusBar" name="statusBar"/>
+  <widget class="QToolBar" name="toolBar">
+   <property name="windowTitle">
+    <string>toolBar</string>
+   </property>
+   <property name="iconSize">
+    <size>
+     <width>32</width>
+     <height>32</height>
+    </size>
+   </property>
+   <attribute name="toolBarArea">
+    <enum>TopToolBarArea</enum>
+   </attribute>
+   <attribute name="toolBarBreak">
+    <bool>false</bool>
+   </attribute>
+   <addaction name="actionOpen"/>
+   <addaction name="separator"/>
+   <addaction name="actionSave_as_elmt"/>
+   <addaction name="actionSave_as_qet"/>
+  </widget>
+  <action name="actionOpen">
+   <property name="enabled">
+    <bool>true</bool>
+   </property>
+   <property name="icon">
+    <iconset>
+     <normaloff>icon/document-open dxf-csv.png</normaloff>icon/document-open dxf-csv.png</iconset>
+   </property>
+   <property name="text">
+    <string>&amp;Open</string>
+   </property>
+   <property name="toolTip">
+    <string>Open dxf or CSV file</string>
+   </property>
+  </action>
+  <action name="actionSave_as_elmt">
+   <property name="icon">
+    <iconset>
+     <normaloff>icon/document-save-as elmt.png</normaloff>icon/document-save-as elmt.png</iconset>
+   </property>
+   <property name="text">
+    <string>&amp;Save as elmt</string>
+   </property>
+  </action>
+  <action name="actionSave_as_qet">
+   <property name="icon">
+    <iconset>
+     <normaloff>icon/document-save-as qet.png</normaloff>icon/document-save-as qet.png</iconset>
+   </property>
+   <property name="text">
+    <string>Save as &amp;qet</string>
+   </property>
+   <property name="iconVisibleInMenu">
+    <bool>true</bool>
+   </property>
+  </action>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <tabstops>
+  <tabstop>tabWidget_2</tabstop>
+  <tabstop>objecs_line_count</tabstop>
+  <tabstop>Classes_line_count</tabstop>
+  <tabstop>tables_line_count</tabstop>
+  <tabstop>table_view_count</tabstop>
+  <tabstop>table_dimstyle_count</tabstop>
+  <tabstop>table_appid_count</tabstop>
+  <tabstop>table_style_count</tabstop>
+  <tabstop>table_layer_count</tabstop>
+  <tabstop>table_ltype_count</tabstop>
+  <tabstop>table_block_record_count</tabstop>
+  <tabstop>table_ucs_count</tabstop>
+  <tabstop>table_vport_count</tabstop>
+  <tabstop>thumbnailimage_line_count</tabstop>
+  <tabstop>CSV_start_at_line</tabstop>
+  <tabstop>CSV_header_row</tabstop>
+  <tabstop>entites_line_count</tabstop>
+  <tabstop>block_line_count</tabstop>
+  <tabstop>header_line_count</tabstop>
+  <tabstop>dxf_open_file</tabstop>
+  <tabstop>dxf_file_path</tabstop>
+  <tabstop>dxf_line_count</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>progressBar</sender>
+   <signal>valueChanged(int)</signal>
+   <receiver>progressBar</receiver>
+   <slot>setValue(int)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>464</x>
+     <y>926</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>466</x>
+     <y>926</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_ar</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>473</x>
+     <y>331</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>731</x>
+     <y>340</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_be_nl</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>521</x>
+     <y>372</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>764</x>
+     <y>356</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_cs</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>513</x>
+     <y>406</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>699</x>
+     <y>359</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_de</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>456</x>
+     <y>438</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>777</x>
+     <y>358</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_en</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>444</x>
+     <y>478</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>748</x>
+     <y>358</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_es</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>426</x>
+     <y>511</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>702</x>
+     <y>346</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_fr</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>566</x>
+     <y>548</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>745</x>
+     <y>355</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_it</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>563</x>
+     <y>584</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>719</x>
+     <y>344</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_nl</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>525</x>
+     <y>613</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>722</x>
+     <y>360</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>elmt_lang_pl</sender>
+   <signal>textEdited(QString)</signal>
+   <receiver>pushButton</receiver>
+   <slot>click()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>500</x>
+     <y>651</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>754</x>
+     <y>355</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>CSV_Tablesettings</sender>
+   <signal>entered(QModelIndex)</signal>
+   <receiver>CSV_Tablesettings</receiver>
+   <slot>update(QModelIndex)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>591</x>
+     <y>742</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>1002</x>
+     <y>779</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>

Added: branches/dxftoqet2/icon/document-open dxf-csv.png
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-open dxf-csv.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-open dxf-csv.xcf
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-open dxf-csv.xcf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-open.png
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-open.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-save-as elmt.png
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-save-as elmt.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-save-as elmt.xcf
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-save-as elmt.xcf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-save-as qet.png
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-save-as qet.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-save-as qet.xcf
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-save-as qet.xcf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/icon/document-save-as.png
===================================================================
(Binary files differ)


Property changes on: branches/dxftoqet2/icon/document-save-as.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: branches/dxftoqet2/main.cpp
===================================================================
--- branches/dxftoqet2/main.cpp	                        (rev 0)
+++ branches/dxftoqet2/main.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,20 @@
+#include "dxftoqet_mainwindow.h"
+#include <QApplication>
+#include "dxf_data.h"
+
+//extern int dxf();
+//extern struct DXF_base DXF_main_base[1];
+
+int main(int argc, char *argv[])
+{
+	//struct DXF_base DXF_main_base[1];
+
+
+	QApplication a(argc, argv);
+	DXFtoQET_MainWindow w;
+	w.show();
+
+
+
+	return a.exec();
+}

Added: branches/dxftoqet2/src/csv_build_table.cpp
===================================================================
--- branches/dxftoqet2/src/csv_build_table.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/csv_build_table.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,134 @@
+#include "csv_build_table.h"
+
+//extern int dxf ();
+
+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_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_base DXF_main_base[1];
+
+
+CSV_Build_table::CSV_Build_table(QWidget *parent)
+{
+
+}
+
+
+
+void CSV_Build_table::ConfigTable()
+{
+	// init extern variable
+	extern DXF_base DXF_main_base[1];
+
+
+
+
+
+
+}

Added: branches/dxftoqet2/src/csv_build_table.h
===================================================================
--- branches/dxftoqet2/src/csv_build_table.h	                        (rev 0)
+++ branches/dxftoqet2/src/csv_build_table.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,35 @@
+#ifndef CSV_BUILD_TABLE_H
+#define CSV_BUILD_TABLE_H
+
+#include <QObject>
+#include <QWidget>
+#include <QMainWindow>
+
+#include "dxf_data.h"
+#include "dxftoqet_mainwindow.h"
+
+/*namespace Ui
+{
+	class DXFtoQET_MainWindow;
+}*/
+
+
+class CSV_Build_table : public QMainWindow, public dxf_data
+{
+	Q_OBJECT
+
+	public:
+
+	CSV_Build_table(QWidget *parent = 0);
+	 //~CSV_Build_table();
+
+
+
+	void ConfigTable();
+
+
+
+
+};
+
+#endif // CSV_BUILD_TABLE_H

Added: branches/dxftoqet2/src/dxf/dxf_arc.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_arc.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_arc.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,159 @@
+#include "dxf_arc.h"
+#include "dxf_base_types/dxf_base_arc.h"
+
+dxf_arc::dxf_arc(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_arc::Create_ARC()
+{
+
+	dxf_base_arc db_line;
+
+	Result_line ="";
+
+	db_line.QET_x=center_x - radius;		// 10
+	db_line.QET_y=(-center_y) - radius;		// 20
+	db_line.QET_width=radius*2;
+	db_line.QET_height=radius*2;
+	db_line.QET_antialias="false";
+
+	DXF_Ltype_control db_line_ltype_control;
+
+	db_line_ltype_control.FindLT=ltype;
+	db_line_ltype_control.Layer=layer;
+
+
+	db_line.QET_line_style=db_line_ltype_control.Ltype_control();
+
+	db_line.QET_line_weight="thin";
+	db_line.QET_filling="none";
+	db_line.QET_color="black";
+
+	/*
+		h = (450° - acad°)/30
+		qet° = 30* (450° - acad°)/30 = 450° - acad°
+		dus als acad_start° = 60° Þ qet_start° = 450° - 60° = 390° en opnieuw qet_start° > 360° dus qet_start° = 390° - 360° = 30°
+		acad­­_end° = 110° Þ qet_end° = 450° - 110° = 340° < 360° dus die hoek blijft 340°
+		qet_hoek° = qet_end° - qet_start° = 340° - 30° = 310°
+
+	*/
+
+	/* hoek ACAD omrekenen naar QET */
+
+
+	begin1=450-start_angle;
+	einde1=450-end_angle;
+
+
+	if (begin1>360)
+	{
+		begin=begin1-360;
+	}
+	else
+	{
+		if(begin1<0)
+		{
+			begin=360-begin1;
+		}
+		else
+		{
+			begin=begin1;
+		}
+	}
+
+	if (einde1>360)
+	{
+		einde=einde1-360;
+	}
+	else
+	{
+		if (einde1<0)
+		{
+			einde=einde1-360;
+		}
+		else
+		{
+			einde=einde1;
+		}
+	}
+
+
+
+	/* calculate hoek */
+
+	if (begin>einde)
+	{
+		N=einde-begin;
+	}
+	else
+	{
+		N=einde-begin-360;
+	}
+
+	if (N<0)
+	{
+		O=-N;
+	}
+	else
+	{
+		O=N;
+	}
+
+	J=end_angle-start_angle+N;
+	K=360-end_angle;
+	L=360-start_angle;
+	M=K-L;
+	R=-O;
+	S=J-O;
+
+	if (S < -360)
+	{
+		T=S+360;
+	}
+	else
+	{
+		T=S;
+	}
+
+	if (begin<einde)
+	{
+		U=M;
+	}
+	else
+	{
+		U=T;
+	}
+
+	if (U<0)
+	{
+		V=-U;
+	}
+	else
+	{
+		V=U;
+	}
+
+	W=U+V;
+
+	if (W==0)
+	{
+		hoek2=-V;
+	}
+	else
+	{
+		hoek2=T;
+	}
+
+
+	/* einde omrekening */
+
+	db_line.QET_angle=-hoek2;
+	db_line.QET_start=-(begin-90);
+
+
+	Result_line.append(db_line.Create_arc());
+
+	return Result_line;
+}

Added: branches/dxftoqet2/src/dxf/dxf_arc.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_arc.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_arc.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,76 @@
+#ifndef DXF_ARC_H
+#define DXF_ARC_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_arc.h"
+#include "dxf_control/dxf_ltype_control.h"
+
+class dxf_arc : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_arc(QWidget *parent = 0);
+
+	//DXF var
+
+
+
+	QString layer;				//8
+	QString ltype;				//6
+	QString handle;				//5
+	QString softID;				//330
+
+	int16_t color_dxf;			//62
+
+	int x;
+	int y;
+
+	double center_x;			//10
+	double center_y;			//20
+	double radius;				//40
+	double start_angle;			//50
+	double end_angle;			//51
+	double hoek2;
+	double begin;
+	double einde;
+	double begin1;
+	double einde1;
+	double hoek_einde;
+	double N;
+	double O;
+	double J;
+	double K;
+	double L;
+	double M;
+	double R;
+	double S;
+	double T;
+	double U;
+	double V;
+	double W;
+
+
+	double angle;
+	double start;
+	double width;
+	double height;
+
+
+	QString antialias;
+	QString style;
+	QString line_style;
+	QString line_weight;
+	QString filling;
+	QString color;
+
+	QString Result_line;
+
+	QString Create_ARC();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_ARC_H

Added: branches/dxftoqet2/src/dxf/dxf_attdef.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_attdef.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_attdef.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,36 @@
+#include "dxf_attdef.h"
+
+dxf_attdef::dxf_attdef(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_attdef::Create_ATTDEF()
+{
+
+
+	dxf_base_input db_attdef;
+
+	Result_attdef="";
+
+	db_attdef.QET_x=x;
+	db_attdef.QET_y=y;
+	db_attdef.QET_size=size;
+	db_attdef.QET_tag=tag;
+	db_attdef.QET_text=text;
+	db_attdef.QET_rotate=rotate;
+
+
+	Result_attdef.append(db_attdef.Create_input());
+
+	return Result_attdef;
+
+
+
+
+
+
+
+
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_attdef.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_attdef.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_attdef.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,33 @@
+#ifndef DXF_ATTDEF_H
+#define DXF_ATTDEF_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_input.h"
+
+class dxf_attdef : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_attdef(QWidget *parent = 0);
+
+	QString Result_attdef;
+
+
+
+	//QET xml var
+	double x; //10
+	double y; //20
+	int size;
+	QString rotate;
+	QString text;
+	QString tag;
+
+	QString Create_ATTDEF();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_ATTDEF_H

Added: branches/dxftoqet2/src/dxf/dxf_circle.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_circle.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_circle.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,12 @@
+#include "dxf_circle.h"
+
+dxf_circle::dxf_circle(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_circle::Create_CIRCLE()
+{
+
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_circle.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_circle.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_circle.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,22 @@
+#ifndef DXF_CIRCLE_H
+#define DXF_CIRCLE_H
+
+#include <QMainWindow>
+
+class dxf_circle : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_circle(QWidget *parent = 0);
+
+
+
+	QString Create_CIRCLE();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_CIRCLE_H

Added: branches/dxftoqet2/src/dxf/dxf_line.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_line.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_line.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,42 @@
+#include "dxf_line.h"
+
+DXF_LINE::DXF_LINE(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString DXF_LINE::Create_LINE()
+{
+
+	dxf_base_line db_line;
+
+	Result_line ="";
+
+	db_line.x1=x1; // 10
+	db_line.y1=y1; // 20
+	db_line.x2=x2; // 11
+	db_line.y2=y2; // 21
+
+	db_line.QETlenght1=1.5;
+	db_line.QETlenght2=1.5;
+	db_line.QETantialias="false";
+	db_line.QETend1="none";
+	db_line.QETend2="none";
+
+	DXF_Ltype_control db_line_ltype_control;
+
+	db_line_ltype_control.FindLT=ltype;
+	db_line_ltype_control.Layer=layer;
+
+
+	db_line.QETline_style=db_line_ltype_control.Ltype_control();
+
+	db_line.QETline_weight="thin";
+	db_line.QETfilling="none";
+	db_line.QETcolor="black";
+
+	Result_line.append(db_line.CreateElmt());
+
+	return Result_line;
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_line.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_line.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_line.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,40 @@
+#ifndef DXF_LINE_H
+#define DXF_LINE_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_line.h"
+#include "dxf_control/dxf_ltype_control.h"
+
+class DXF_LINE : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_LINE(QWidget *parent = 0);
+
+	QString Result_line;
+
+	//DXF var
+
+	double x1;				//10
+	double x2;				//11
+	double y1;				//20
+	double y2;				//21
+
+	QString layer;			//8
+	QString ltype;			//6
+	QString handle;			//5
+	QString softID;			//330
+
+	int16_t color;			//62
+
+
+
+	QString Create_LINE();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_LINE_H

Added: branches/dxftoqet2/src/dxf/dxf_point.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_point.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_point.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,24 @@
+#include "dxf_point.h"
+
+dxf_point::dxf_point(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_point::Create_POINT()
+{
+
+	dxf_base_terminal db_point;
+
+	Result_line="";
+
+	db_point.QET_x=x1; // 10
+	db_point.QET_y=y1; // 20
+	db_point.QET_orientation=orientation;
+
+	Result_line.append(db_point.Create_terminal());
+
+	return Result_line;
+
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_point.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_point.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_point.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,39 @@
+#ifndef DXF_POINT_H
+#define DXF_POINT_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_terminal.h"
+
+class dxf_point : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_point(QWidget *parent = 0);
+
+	QString Result_line;
+
+	//DXF var
+
+	double x1;				//10
+
+	double y1;				//20
+
+
+	QString layer;			//8
+	QString ltype;			//6
+	QString handle;			//5
+	QString softID;			//330
+
+	int16_t color;			//62
+
+	QString orientation;	//qet
+
+	QString Create_POINT();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_POINT_H

Added: branches/dxftoqet2/src/dxf/dxf_rect.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_rect.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_rect.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,27 @@
+#include "dxf_rect.h"
+
+dxf_rect::dxf_rect(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+
+QString dxf_rect::Create_RECTANG()
+{
+
+	dxf_base_rectangel db_rect_base;
+
+	db_rect_base.QET_x=dxf_rect_x;
+	db_rect_base.QET_y=dxf_rect_y;
+	db_rect_base.QET_width=dxf_rect_width;
+	db_rect_base.QET_height=dxf_rect_height;
+
+	db_rect_base.QET_antialias="false";
+	db_rect_base.QET_style="normal";
+	db_rect_base.QET_line_weight="thin";
+	db_rect_base.QET_filling="none";
+	db_rect_base.QET_color="black";
+
+	return db_rect_base.Create_rectangel();
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_rect.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_rect.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_rect.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,30 @@
+#ifndef DXF_RECT_H
+#define DXF_RECT_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_rectangel.h"
+
+class dxf_rect : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_rect(QWidget *parent = 0);
+
+	double dxf_rect_x;
+	double dxf_rect_y;
+	double dxf_rect_width;
+	double dxf_rect_height;
+
+
+
+
+	QString Create_RECTANG();
+
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_RECT_H

Added: branches/dxftoqet2/src/dxf/dxf_text.cpp
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_text.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_text.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,27 @@
+#include "dxf_text.h"
+
+dxf_text::dxf_text(QWidget *parent) :
+	QMainWindow(parent)
+{
+
+
+
+}
+
+QString dxf_text::Create_Text()
+{
+	Result_text="";
+
+	dxf_base_text db_text_base;
+
+	db_text_base.QET_x=QET_x;
+	db_text_base.QET_y=QET_y;
+	db_text_base.QET_size=QET_size;
+	db_text_base.QET_rotation=QET_rotation;
+	db_text_base.QET_text=QET_text;
+
+	Result_text= db_text_base.Create_text();
+
+	return Result_text;
+
+}

Added: branches/dxftoqet2/src/dxf/dxf_text.h
===================================================================
--- branches/dxftoqet2/src/dxf/dxf_text.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf/dxf_text.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,31 @@
+#ifndef DXF_TEXT_H
+#define DXF_TEXT_H
+
+#include <QMainWindow>
+#include "dxf_base_types/dxf_base_text.h"
+
+class dxf_text : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_text(QWidget *parent = 0);
+
+	double QET_x;
+	double QET_y;
+	double QET_size;
+	double QET_rotation;
+	QString QET_text;
+	double QET_rec_height;
+	double QET_rec_width;
+
+	QString Result_text;
+
+	QString Create_Text();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_TEXT_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,75 @@
+#include "dxf_base_arc.h"
+
+dxf_base_arc::dxf_base_arc(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_arc::Create_arc()
+{
+
+/*  <arc width="20" x="-15" y="-8" antialias="true"
+ *  height="38" style="line-style:normal;
+ *  line-weight:normal;filling:none;color:black"
+ *  start="-30" angle="-299"/> */
+
+	Result_arc="";
+
+	Result_arc.append("     ");
+	Result_arc.append("<arc");
+
+	Result_arc.append(" width=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_width,'f',2));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" x=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_x,'f',2));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" y=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_y,'f',2));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" antialias=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QET_antialias);
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" height=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_height,'f',2));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" style=");
+	Result_arc.append(QChar(34));
+	Result_arc.append("line-style:");
+	Result_arc.append(QET_line_style);
+	Result_arc.append(";");
+	Result_arc.append("line-weight:");
+	Result_arc.append(QET_line_weight);
+	Result_arc.append(";");
+	Result_arc.append("filling:");
+	Result_arc.append(QET_filling);
+	Result_arc.append(";");
+	Result_arc.append("color:");
+	Result_arc.append(QET_color);
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" start=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_start,'f',0));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" angle=");
+	Result_arc.append(QChar(34));
+	Result_arc.append(QString::number(QET_angle,'f',0));
+	Result_arc.append(QChar(34));
+
+	Result_arc.append(" />");
+	Result_arc.append('\n');
+
+	return Result_arc;
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_arc.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,44 @@
+#ifndef DXF_BASE_ARC_H
+#define DXF_BASE_ARC_H
+
+#include <QMainWindow>
+
+class dxf_base_arc : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_arc(QWidget *parent = 0);
+
+	QString Result_arc;
+
+
+
+	//QET xml var
+	double QET_x; //10
+	double QET_y; //20
+	double QET_width;
+	double QET_height;
+	double QET_start;
+	double QET_angle;
+
+	QString QET_antialias;
+	QString QET_style;
+	QString QET_line_style;
+	QString QET_line_weight;
+	QString QET_filling;
+	QString QET_color;
+
+
+
+
+
+	QString Create_arc();
+
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_ARC_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,66 @@
+#include "dxf_base_circle.h"
+
+dxf_base_circle::dxf_base_circle(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_circle::Create_circle()
+{
+	/* <circle x="-28" y="-8" antialias="true"
+	 * style="line-style:normal;line-weight:thin;filling:none;color:black"
+	 * diameter="22"/> */
+
+	Result_circle="";
+
+	Result_circle="     ";
+
+	Result_circle.append("<ellipse");
+
+	Result_circle.append(" x=");
+	Result_circle.append(QChar(34));
+	Result_circle.append(QString::number ((QET_x - (QET_diameter/2)),'f',2));
+	Result_circle.append(QChar(34));
+
+	Result_circle.append(" y=");
+	Result_circle.append(QChar(34));
+	Result_circle.append(QString::number ((QET_y - (QET_diameter/2)),'f',2));
+	Result_circle.append(QChar(34));
+
+	Result_circle.append(" antialias=");
+	Result_circle.append(QChar(34));
+	Result_circle.append(QET_antialias);
+	Result_circle.append(QChar(34));
+
+	Result_circle.append(" height=");
+	Result_circle.append(QChar(34));
+	Result_circle.append(QString::number (QET_diameter ,'f',2));
+	Result_circle.append(QChar(34));
+
+	Result_circle.append(" width=");
+	Result_circle.append(QChar(34));
+	Result_circle.append(QString::number (QET_diameter ,'f',2));
+	Result_circle.append(QChar(34));
+
+	Result_circle.append(" style=");
+	Result_circle.append(QChar(34));
+	Result_circle.append("line-style:");
+	Result_circle.append(QET_line_style);
+	Result_circle.append(";");
+	Result_circle.append("line-weight:");
+	Result_circle.append(QET_line_weight);
+	Result_circle.append(";");
+	Result_circle.append("filling:");
+	Result_circle.append(QET_filling);
+	Result_circle.append(";");
+	Result_circle.append("color:");
+	Result_circle.append(QET_color);
+	Result_circle.append(";");
+	Result_circle.append(QChar(34));
+
+
+	Result_circle.append(" />");
+	Result_circle.append('\n');
+
+
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_circle.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,36 @@
+#ifndef DXF_BASE_CIRCLE_H
+#define DXF_BASE_CIRCLE_H
+
+#include <QMainWindow>
+
+class dxf_base_circle : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_circle(QWidget *parent = 0);
+
+	QString Result_circle;
+
+	//QET xml var
+	double QET_x; //10
+	double QET_y; //20
+	double QET_diameter;
+
+
+	QString QET_antialias;
+	QString QET_style;
+	QString QET_line_style;
+	QString QET_line_weight;
+	QString QET_filling;
+	QString QET_color;
+
+
+	QString Create_circle();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_CIRCLE_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,61 @@
+#include "dxf_base_input.h"
+
+dxf_base_input::dxf_base_input(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+
+QString dxf_base_input::Create_input()
+{
+
+	/* QET_x="0";
+	QET_y="10";
+	QET_size="9";
+	QET_rotate="true";
+	QET_text="_";
+	QET_tag="label"; */
+
+
+
+
+	/* <input x="3" y="1" size="9" rotate="true" text="_" tagg="label"/> */
+
+	Result.append("     ");
+	Result.append("<input");
+	Result.append(" x=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QET_x,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" y=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QET_y,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" size=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QET_size,10));
+	Result.append(QChar(34));
+	Result.append(" rotate=");
+	Result.append(QChar(34));
+	Result.append(QET_rotate);
+	Result.append(QChar(34));
+	Result.append(" text=");
+	Result.append(QChar(34));
+	Result.append(QET_text);
+	Result.append(QChar(34));
+	Result.append(" tagg=");
+	Result.append(QChar(34));
+	Result.append(QET_tag);
+	Result.append(QChar(34));
+	Result.append(" />");
+	Result.append('\n');
+
+
+	return Result;
+
+
+
+
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_input.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_input.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_input.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,35 @@
+#ifndef DXF_BASE_INPUT_H
+#define DXF_BASE_INPUT_H
+
+#include <QMainWindow>
+
+class dxf_base_input : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_input(QWidget *parent = 0);
+
+	QString Result;
+
+
+
+	//QET xml var
+	double QET_x; //10
+	double QET_y; //20
+
+	int QET_size;
+	QString QET_rotate;
+	QString QET_text;
+	QString QET_tag;
+
+
+
+	QString Create_input();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_INPUT_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,103 @@
+#include "dxf_base_line.h"
+
+dxf_base_line::dxf_base_line(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_line::CreateElmt()
+{
+
+	/* basis waarden */
+
+	Result="";
+
+	/*QETlenght1="1.5";
+	QETlenght2="1.5";
+	QETantialias="false";
+	QETend1="none";
+	QETend2="none";
+	QETline_style="normal";
+	QETline_weight="thin";
+	QETfilling="none";
+	QETcolor="black";*/
+
+
+	/*<line length1="1.5" length2="1.5" antialias="false"
+	 * end1="none" end2="none"
+	 * style="line-style:normal;line-weight:normal;filling:none;color:black"
+	 * y1="-20" x1="10" y2="-10" x2="10"/>*/
+
+
+	/* create qet elmt code */
+
+	Result.append("     ");
+	Result.append("<line");
+	Result.append(" lenght1=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QETlenght1,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" lenght2=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QETlenght2,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" antialias=");
+	Result.append(QChar(34));
+	Result.append(QETantialias);
+	Result.append(QChar(34));
+
+	Result.append(" end1=");
+	Result.append(QChar(34));
+	Result.append(QETend1);
+	Result.append(QChar(34));
+
+	Result.append(" end2=");
+	Result.append(QChar(34));
+	Result.append(QETend2);
+	Result.append(QChar(34));
+
+	Result.append(" style=");
+	Result.append(QChar(34));
+	Result.append("line-style:");
+	Result.append(QETline_style);
+	Result.append(";");
+	Result.append("line-weight:");
+	Result.append(QETline_weight);
+	Result.append(";");
+	Result.append("filling:");
+	Result.append(QETfilling);
+	Result.append(";");
+	Result.append("color:");
+	Result.append(QETcolor);
+	Result.append(QChar(34));
+
+	Result.append(" x1=");
+	Result.append(QChar(34));
+	Result.append(QString::number(x1,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" y1=");
+	Result.append(QChar(34));
+	Result.append(QString::number(-y1,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" x2=");
+	Result.append(QChar(34));
+	Result.append(QString::number(x2,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" y2=");
+	Result.append(QChar(34));
+	Result.append(QString::number(-y2,'f',2));
+	Result.append(QChar(34));
+
+	Result.append(" />");
+	Result.append('\n');
+
+
+
+
+	return Result;
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_line.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_line.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_line.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,51 @@
+#ifndef DXF_BASE_LINE_H
+#define DXF_BASE_LINE_H
+
+#include <QMainWindow>
+
+class dxf_base_line : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_line(QWidget *parent = 0);
+
+
+	//DXF var
+
+	double x1;				//10
+	double x2;				//11
+	double y1;				//20
+	double y2;				//21
+
+	QString layer;			//8
+	QString ltype;			//6
+	QString handle;			//5
+	QString softID;			//330
+
+	int16_t color;			//62
+
+	//QET xml var
+	double QETlenght1;
+	double QETlenght2;
+	QString QETantialias;
+	QString QETend1;
+	QString QETend2;
+	QString QETline_style;
+	QString QETline_weight;
+	QString QETfilling;
+	QString QETcolor;
+
+
+
+	QString Result;
+
+
+	QString CreateElmt();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_LINE_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,71 @@
+#include "dxf_base_rectangel.h"
+
+dxf_base_rectangel::dxf_base_rectangel(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_rectangel::Create_rectangel()
+{
+
+	/* <rect width="61" x="-30" y="-12"
+	 * antialias="false" height="36"
+	 * style="line-style:normal;line-weight:normal;filling:none;color:black"/> */
+
+	Result_rect="";
+
+	Result_rect="";
+
+	Result_rect.append("     ");
+	Result_rect.append("<rect");
+
+	Result_rect.append(" width=");
+	Result_rect.append(QChar(34));
+	Result_rect.append(QString::number(QET_width,'f',2));
+	Result_rect.append(QChar(34));
+
+	Result_rect.append(" x=");
+	Result_rect.append(QChar(34));
+	Result_rect.append(QString::number(QET_x,'f',2));
+	Result_rect.append(QChar(34));
+
+	Result_rect.append(" y=");
+	Result_rect.append(QChar(34));
+	Result_rect.append(QString::number(QET_y,'f',2));
+	Result_rect.append(QChar(34));
+
+	Result_rect.append(" antialias=");
+	Result_rect.append(QChar(34));
+	Result_rect.append(QET_antialias);
+	Result_rect.append(QChar(34));
+
+	Result_rect.append(" height=");
+	Result_rect.append(QChar(34));
+	Result_rect.append(QString::number(QET_height,'f',2));
+	Result_rect.append(QChar(34));
+
+	Result_rect.append(" style=");
+	Result_rect.append(QChar(34));
+	Result_rect.append("line-style:");
+	Result_rect.append(QET_line_style);
+	Result_rect.append(";");
+	Result_rect.append("line-weight:");
+	Result_rect.append(QET_line_weight);
+	Result_rect.append(";");
+	Result_rect.append("filling:");
+	Result_rect.append(QET_filling);
+	Result_rect.append(";");
+	Result_rect.append("color:");
+	Result_rect.append(QET_color);
+	Result_rect.append(QChar(34));
+
+
+
+	Result_rect.append(" />");
+	Result_rect.append('\n');
+
+
+
+	return Result_rect;
+
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,39 @@
+#ifndef DXF_BASE_RECTANGEL_H
+#define DXF_BASE_RECTANGEL_H
+
+#include <QMainWindow>
+
+class dxf_base_rectangel : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_rectangel(QWidget *parent = 0);
+
+	//QET xml var
+	double QET_x; //10
+	double QET_y; //20
+	double QET_width;
+	double QET_height;
+	double QET_start;
+	double QET_angle;
+
+	QString QET_antialias;
+	QString QET_style;
+	QString QET_line_style;
+	QString QET_line_weight;
+	QString QET_filling;
+	QString QET_color;
+
+	QString Result_rect;
+
+	QString Create_rectangel();
+
+
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_RECTANGEL_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,38 @@
+#include "dxf_base_terminal.h"
+
+dxf_base_terminal::dxf_base_terminal(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_terminal::Create_terminal()
+{
+
+	/*QET_x="0";
+	QET_y="0";
+	QET_orientation="n";*/
+
+	 /* <terminal x="-10" y="-20" orientation="n"/> */
+
+	Result.append("     ");
+	Result.append("<terminal");
+	Result.append(" x=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QET_x,'f',2));
+	Result.append(QChar(34));
+	Result.append(" y=");
+	Result.append(QChar(34));
+	Result.append(QString::number(QET_y,'f',2));
+	Result.append(QChar(34));
+	Result.append(" orientation=");
+
+	Result.append(QChar(34));
+	Result.append("n");
+	Result.append(QChar(34));
+
+	Result.append(" />");
+	Result.append('\n');
+
+	return Result;
+
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,31 @@
+#ifndef DXF_BASE_TERMINAL_H
+#define DXF_BASE_TERMINAL_H
+
+#include <QMainWindow>
+
+class dxf_base_terminal : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_terminal(QWidget *parent = 0);
+
+	QString Result;
+
+
+
+	//QET xml var
+	double QET_x;
+	double QET_y;
+	QString QET_orientation;
+
+
+
+	QString Create_terminal();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_TERMINAL_H

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,51 @@
+#include "dxf_base_text.h"
+
+dxf_base_text::dxf_base_text(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_base_text::Create_text()
+
+{
+	/*  <text x="-11" y="3" size="6" rotation="90" text="Vcc"/>
+		<text x="-7" y="-8" size="3" text="HC-SR04"/> */
+
+	Result_text="";
+
+	Result_text.append("     ");
+	Result_text.append("<text");
+
+	Result_text.append(" x=");
+	Result_text.append(QChar(34));
+	Result_text.append(QString::number(QET_x,'f',2));
+	Result_text.append(QChar(34));
+
+	Result_text.append(" y=");
+	Result_text.append(QChar(34));
+	Result_text.append(QString::number(QET_y,'f',2));
+	Result_text.append(QChar(34));
+
+	Result_text.append(" size=");
+	Result_text.append(QChar(34));
+	Result_text.append(QString::number(QET_size,'f',0));
+	Result_text.append(QChar(34));
+
+	Result_text.append(" rotation=");
+	Result_text.append(QChar(34));
+	Result_text.append(QString::number(QET_rotation,'f',0));
+	Result_text.append(QChar(34));
+
+	Result_text.append(" text=");
+	Result_text.append(QChar(34));
+	Result_text.append(QET_text);
+	Result_text.append(QChar(34));
+
+
+
+	Result_text.append(" />");
+	Result_text.append('\n');
+
+	return Result_text;
+
+}

Added: branches/dxftoqet2/src/dxf_base_types/dxf_base_text.h
===================================================================
--- branches/dxftoqet2/src/dxf_base_types/dxf_base_text.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_base_types/dxf_base_text.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,32 @@
+#ifndef DXF_BASE_TEXT_H
+#define DXF_BASE_TEXT_H
+
+#include <QMainWindow>
+
+class dxf_base_text : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit dxf_base_text(QWidget *parent = 0);
+
+	//QET xml var
+	double QET_x; //10
+	double QET_y; //20
+	double QET_size;
+	double QET_rotation;
+
+
+	QString QET_text;
+
+
+	QString Result_text;
+
+	QString Create_text();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_BASE_TEXT_H

Added: branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_layer_control.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,46 @@
+#include "dxf_layer_control.h"
+
+extern struct DXF_base DXF_main_base[1];
+extern struct DXF_table_layer DXF_input_table_layer[100];
+
+DXF_layer_control::DXF_layer_control(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString DXF_layer_control::dxf_layer_ltype()
+{
+	Layer_count=0;
+	Layer_end=0;
+
+	Layer_end=DXF_main_base[0].DXF_table_layer_count;
+
+	if (layer_to_find=="")
+	{
+		layer_ltype="Continuous";
+	}
+
+	else
+	{
+
+		while (Layer_count<Layer_end)
+		{
+
+			if (DXF_input_table_layer[Layer_count].dxf_table_layer_code_2==layer_to_find)
+			{
+				layer_ltype=DXF_input_table_layer[Layer_count].dxf_table_layer_code_6;
+				Layer_count=Layer_end;
+			}
+			else
+			{
+				Layer_count=Layer_count+1;
+			}
+
+
+		}
+	}
+
+
+
+	return layer_ltype;
+}

Added: branches/dxftoqet2/src/dxf_control/dxf_layer_control.h
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_layer_control.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_layer_control.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,27 @@
+#ifndef DXF_LAYER_CONTROL_H
+#define DXF_LAYER_CONTROL_H
+
+#include <QMainWindow>
+#include "dxf_data.h"
+
+class DXF_layer_control : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_layer_control(QWidget *parent = 0);
+
+	QString layer_to_find;
+	QString layer_ltype;
+
+	int Layer_count;
+	int Layer_end;
+
+	QString dxf_layer_ltype();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_LAYER_CONTROL_H

Added: branches/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,158 @@
+#include "dxf_ltype_control.h"
+
+DXF_Ltype_control::DXF_Ltype_control(QWidget *parent) :
+	QMainWindow(parent)
+{
+
+
+}
+
+QString DXF_Ltype_control::Ltype_control()
+{
+
+	LTfound="normal";
+
+	if (FindLT == "" )
+	{
+		DXF_layer_control db_layer_control;
+
+		db_layer_control.layer_to_find=Layer;
+
+		DXF_Ltype_control db_ltype;
+
+		db_ltype.FindLT=db_layer_control.dxf_layer_ltype();
+
+
+	   LTfound=db_ltype.Ltype_control();
+
+	}
+
+	if (FindLT == "ByLayer" )
+	{
+		DXF_layer_control db_layer_control;
+
+		db_layer_control.layer_to_find=Layer;
+
+		DXF_Ltype_control db_ltype;
+
+		db_ltype.FindLT=db_layer_control.dxf_layer_ltype();
+
+
+	   LTfound=db_ltype.Ltype_control();
+
+	}
+
+	if (FindLT == "ByBlock" )
+	{
+	   LTfound="normal";
+	}
+
+	if (FindLT == "Continuous" )
+	{
+	   LTfound="normal";
+	}
+
+	if (FindLT == "CONTINUOUS" )
+	{
+	   LTfound="normal";
+	}
+
+	if (FindLT == "Center" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "CENTER" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "CENTER2" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "CENTERX2" )
+	{
+	   LTfound="dashdotted";
+	}
+
+
+	if (FindLT == "Dashed" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "DASHED" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "DASHED2" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "DASHEDX2" )
+	{
+	   LTfound="dashed";
+	}
+
+
+	if (FindLT == "HIDDEN" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "HIDDEN2" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "HIDDENX2" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "EPL_DASH" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "EPL_DASH2" )
+	{
+	   LTfound="dashed";
+	}
+
+	if (FindLT == "EPL_DASHDOT" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "EPL_DASHDOTDOT" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "DASHDOT" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "DASHDOT2" )
+	{
+	   LTfound="dashdotted";
+	}
+
+	if (FindLT == "DASHDOTX2" )
+	{
+	   LTfound="dashdotted";
+	}
+	if (FindLT == "normal" )
+	{
+	   LTfound="normal";
+	}
+
+
+	return LTfound;
+}

Added: branches/dxftoqet2/src/dxf_control/dxf_ltype_control.h
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_ltype_control.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_ltype_control.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,25 @@
+#ifndef DXF_LTYPE_CONTROL_H
+#define DXF_LTYPE_CONTROL_H
+
+#include <QMainWindow>
+#include "dxf_control/dxf_layer_control.h"
+
+class DXF_Ltype_control : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_Ltype_control(QWidget *parent = 0);
+
+	QString LTfound;
+	QString FindLT;
+	QString Layer;
+
+	QString Ltype_control();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_LTYPE_CONTROL_H

Added: branches/dxftoqet2/src/dxf_control/dxf_text_control.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_text_control.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_text_control.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,63 @@
+#include "dxf_text_control.h"
+
+DXF_Text_control::DXF_Text_control(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+
+QString DXF_Text_control::Text_control()
+{
+
+	if(TextToCheck.contains("<"))
+	{
+		TextToCheck.replace("<","&lt;");
+	}
+	if(TextToCheck.contains(">"))
+	{
+		TextToCheck.replace(">","&gt;");
+	}
+	if(TextToCheck.contains("&"))
+	{
+		TextToCheck.replace("&","&amp;");
+	}
+	if(TextToCheck.contains(QChar(39)))
+	{
+		TextToCheck.replace(QChar(39),"&apos;");
+	}
+	if(TextToCheck.contains(QChar(34)))
+	{
+		TextToCheck.replace(QChar(34),"&quot;");
+	}
+
+	if(TextToCheck.contains("/"))
+	{
+		TextToCheck.replace("/","-");
+	}
+
+	if(TextToCheck.contains(QChar(92)))
+	{
+		TextToCheck.replace(QChar(92),"-");
+	}
+
+	/*if(TextToCheck.contains("*"))
+	{
+		TextToCheck.replace("*","x");
+	}*/
+
+	if(TextToCheck.contains("?"))
+	{
+		TextToCheck.replace("?","...");
+	}
+
+	if(TextToCheck.contains("|"))
+	{
+		TextToCheck.replace("|","-");
+	}
+
+
+	return TextToCheck;
+
+
+
+}

Added: branches/dxftoqet2/src/dxf_control/dxf_text_control.h
===================================================================
--- branches/dxftoqet2/src/dxf_control/dxf_text_control.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_control/dxf_text_control.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,22 @@
+#ifndef DXF_TEXT_CONTROL_H
+#define DXF_TEXT_CONTROL_H
+
+#include <QMainWindow>
+
+class DXF_Text_control : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_Text_control(QWidget *parent = 0);
+
+	QString TextToCheck;
+
+	QString Text_control();
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_TEXT_CONTROL_H

Added: branches/dxftoqet2/src/dxf_data.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_data.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_data.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,10 @@
+#include "dxf_data.h"
+
+
+dxf_data::dxf_data()
+{
+
+
+}
+
+

Added: branches/dxftoqet2/src/dxf_data.h
===================================================================
--- branches/dxftoqet2/src/dxf_data.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_data.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,1949 @@
+#ifndef DXF_DATA_H
+#define DXF_DATA_H
+
+//#include <QObject>
+#include <QtCore>
+#include <QtWidgets>
+
+
+	struct DXF_file_input
+	{
+		QString dxf_code1;
+		QString dxf_code2;
+
+	};
+
+
+	struct DXF_header
+	{
+		QString dxf_setvar_naam;
+		QString dxf_setvar_code_1;
+		QString dxf_setvar_code_2;
+		QString dxf_setvar_code_3;
+		QString dxf_setvar_code_5;
+		QString dxf_setvar_code_6;
+		QString dxf_setvar_code_7;
+		QString dxf_setvar_code_8;
+
+		double dxf_setvar_code_10;
+		double dxf_setvar_code_20;
+		double dxf_setvar_code_30;
+		double dxf_setvar_code_40;
+		double dxf_setvar_code_50;
+
+		int16_t dxf_setvar_code_62;
+		int16_t dxf_setvar_code_70;
+
+		int64_t dxf_setvar_code_160;
+
+		int16_t dxf_setvar_code_280;
+
+		QString dxf_setvar_code_290;
+
+		QString dxf_setvar_code_345;
+		QString dxf_setvar_code_346;
+		QString dxf_setvar_code_347;
+		QString dxf_setvar_code_349;
+
+		int16_t dxf_setvar_code_370;
+		int16_t dxf_setvar_code_380;
+
+		QString dxf_setvar_code_390;
+
+
+	};
+
+	struct DXF_classes
+	{
+		QString dxf_class_code_1;
+		QString dxf_class_code_2;
+		QString dxf_class_code_3;
+
+		int32_t dxf_class_code_90;
+		int32_t dxf_class_code_91;
+
+		int16_t dxf_class_code_280;
+		int16_t dxf_class_code_281;
+
+
+	};
+
+	struct DXF_tables
+	{
+		QString dxf_tables_code_5;
+
+		int16_t dxf_tables_code_70;
+		int16_t dxf_tables_code_71;
+
+		QString dxf_tables_code_100[2];
+		QString dxf_tables_code_102[2];
+
+		QString dxf_tables_code_330;
+		QString dxf_tables_code_340[2];
+
+		QString dxf_tables_code_360;
+
+
+	};
+
+	struct DXF_table_appid
+	{
+
+		QString dxf_table_appid_code_2;
+		QString dxf_table_appid_code_5;
+
+		int16_t dxf_table_appid_code_70;
+
+		QString dxf_table_appid_code_100[2];
+
+		QString dxf_table_appid_code_330;
+		QString dxf_table_appid_code_340;
+		QString dxf_table_appid_code_360;
+
+
+	};
+
+	struct DXF_table_block_record
+	{
+
+		QString dxf_table_block_record_code_2;
+		QString dxf_table_block_record_code_5;
+
+		int16_t dxf_table_block_record_code_70;
+
+		QString dxf_table_block_record_code_100[2];
+		QString dxf_table_block_record_code_102[2];
+
+		int16_t dxf_table_block_record_code_280;
+		int16_t dxf_table_block_record_code_281;
+
+		QString dxf_table_block_record_code_330;
+		QString dxf_table_block_record_code_331;
+
+		QString dxf_table_block_record_code_340;
+		QString dxf_table_block_record_code_360;
+
+	};
+
+	struct DXF_table_dimstyle
+	{
+
+		QString dxf_table_dimstyle_2;
+		QString dxf_table_dimstyle_3;
+		QString dxf_table_dimstyle_4;
+		QString dxf_table_dimstyle_5;
+		QString dxf_table_dimstyle_6;
+		QString dxf_table_dimstyle_7;
+
+		double dxf_table_dimstyle_40;
+		double dxf_table_dimstyle_41;
+		double dxf_table_dimstyle_42;
+		double dxf_table_dimstyle_43;
+		double dxf_table_dimstyle_44;
+		double dxf_table_dimstyle_45;
+		double dxf_table_dimstyle_46;
+		double dxf_table_dimstyle_47;
+		double dxf_table_dimstyle_48;
+
+		int16_t dxf_table_dimstyle_70;
+		int16_t dxf_table_dimstyle_71;
+		int16_t dxf_table_dimstyle_72;
+		int16_t dxf_table_dimstyle_73;
+		int16_t dxf_table_dimstyle_74;
+		int16_t dxf_table_dimstyle_75;
+		int16_t dxf_table_dimstyle_76;
+		int16_t dxf_table_dimstyle_77;
+		int16_t dxf_table_dimstyle_78;
+
+		QString dxf_table_dimstyle_100[2];
+
+		QString dxf_table_dimstyle_105;
+
+		double dxf_table_dimstyle_140;
+		double dxf_table_dimstyle_141;
+		double dxf_table_dimstyle_142;
+		double dxf_table_dimstyle_143;
+		double dxf_table_dimstyle_144;
+		double dxf_table_dimstyle_145;
+		double dxf_table_dimstyle_146;
+		double dxf_table_dimstyle_147;
+
+		int16_t dxf_table_dimstyle_170;
+		int16_t dxf_table_dimstyle_171;
+		int16_t dxf_table_dimstyle_172;
+		int16_t dxf_table_dimstyle_173;
+		int16_t dxf_table_dimstyle_174;
+		int16_t dxf_table_dimstyle_175;
+		int16_t dxf_table_dimstyle_176;
+		int16_t dxf_table_dimstyle_177;
+		int16_t dxf_table_dimstyle_178;
+
+		int16_t dxf_table_dimstyle_270;
+		int16_t dxf_table_dimstyle_271;
+		int16_t dxf_table_dimstyle_272;
+		int16_t dxf_table_dimstyle_273;
+		int16_t dxf_table_dimstyle_274;
+		int16_t dxf_table_dimstyle_275;
+		int16_t dxf_table_dimstyle_278;
+
+		int16_t dxf_table_dimstyle_280;
+		int16_t dxf_table_dimstyle_281;
+		int16_t dxf_table_dimstyle_282;
+		int16_t dxf_table_dimstyle_283;
+		int16_t dxf_table_dimstyle_284;
+		int16_t dxf_table_dimstyle_285;
+		int16_t dxf_table_dimstyle_286;
+		int16_t dxf_table_dimstyle_287;
+		int16_t dxf_table_dimstyle_288;
+
+		QString dxf_table_dimstyle_330;
+		QString dxf_table_dimstyle_340;
+
+		QString dxf_table_dimstyle_1000;
+		QString dxf_table_dimstyle_1001[3];
+		QString dxf_table_dimstyle_1002[2];
+
+		double dxf_table_dimstyle_1040;
+
+		int16_t dxf_table_dimstyle_1070[5];
+
+
+	};
+
+	struct DXF_table_layer
+	{
+
+		QString dxf_table_layer_code_2;
+		QString dxf_table_layer_code_5;
+		QString dxf_table_layer_code_6;
+
+		int16_t dxf_table_layer_code_62;
+		int16_t dxf_table_layer_code_70;
+
+		QString dxf_table_layer_code_100[2];
+		QString dxf_table_layer_code_102[2];
+
+		bool dxf_table_layer_code_290;
+
+		QString dxf_table_layer_code_330;
+
+		QString dxf_table_layer_code_347;
+		QString dxf_table_layer_code_348;
+
+		QString dxf_table_layer_code_360;
+
+		int16_t dxf_table_layer_code_370;
+
+		QString dxf_table_layer_code_390;
+
+		QString dxf_table_layer_code_1000[2];
+		QString dxf_table_layer_code_1001;
+
+
+	};
+
+	struct DXF_table_ltype
+	{
+
+		QString dxf_table_ltype_code_2;
+		QString dxf_table_ltype_code_3;
+		QString dxf_table_ltype_code_5;
+
+		double dxf_table_ltype_code_40;
+		double dxf_table_ltype_code_49[4];
+
+		int16_t dxf_table_ltype_code_70;
+		int16_t dxf_table_ltype_code_72;
+		int16_t dxf_table_ltype_code_73;
+		int16_t dxf_table_ltype_code_74[5];
+
+		QString dxf_table_ltype_code_100[4];
+
+		QString dxf_table_ltype_code_330;
+
+
+	};
+
+	struct DXF_table_style
+	{
+
+		QString dxf_table_style_code_2;
+		QString dxf_table_style_code_3;
+		QString dxf_table_style_code_4;
+		QString dxf_table_style_code_5;
+
+		double dxf_table_style_code_40;
+		double dxf_table_style_code_41;
+		double dxf_table_style_code_42;
+
+		double dxf_table_style_code_50;
+
+		int16_t dxf_table_style_code_70;
+		int16_t dxf_table_style_code_71;
+
+		QString dxf_table_style_code_100[2];
+
+		QString dxf_table_style_code_330;
+
+		QString dxf_table_style_code_1000[2];
+		QString dxf_table_style_code_1001[2];
+		QString dxf_table_style_code_1002[2];
+
+		int16_t dxf_table_style_code_1070[2];
+
+		int32_t dxf_table_style_code_1071;
+
+
+	};
+
+	struct DXF_table_ucs
+	{
+		QString dxf_table_ucs_code_5;
+
+		int16_t dxf_table_ucs_code_70;
+
+		QString dxf_table_ucs_code_100[2];
+
+		QString dxf_table_ucs_code_330;
+
+
+	};
+
+	struct DXF_table_view
+	{
+
+		QString dxf_table_view_code_2;
+		QString dxf_table_view_code_5;
+
+		double dxf_table_view_code_11;
+		double dxf_table_view_code_12;
+		double dxf_table_view_code_13;
+		double dxf_table_view_code_14;
+		double dxf_table_view_code_15;
+		double dxf_table_view_code_16;
+		double dxf_table_view_code_17;
+
+		double dxf_table_view_code_21;
+		double dxf_table_view_code_22;
+		double dxf_table_view_code_23;
+		double dxf_table_view_code_24;
+		double dxf_table_view_code_25;
+		double dxf_table_view_code_26;
+		double dxf_table_view_code_27;
+
+		int16_t dxf_table_view_code_70;
+
+		QString dxf_table_view_code_100[2];
+
+		QString dxf_table_view_code_330;
+
+
+	};
+
+	struct DXF_table_vport
+	{
+		QString dxf_table_vport_code_0;
+		QString dxf_table_vport_code_2;
+		QString dxf_table_vport_code_5;
+
+
+		double dxf_table_vport_code_10;
+		double dxf_table_vport_code_11;
+		double dxf_table_vport_code_12;
+		double dxf_table_vport_code_13;
+		double dxf_table_vport_code_14;
+		double dxf_table_vport_code_15;
+		double dxf_table_vport_code_16;
+		double dxf_table_vport_code_17;
+
+		double dxf_table_vport_code_20;
+		double dxf_table_vport_code_21;
+		double dxf_table_vport_code_22;
+		double dxf_table_vport_code_23;
+		double dxf_table_vport_code_24;
+		double dxf_table_vport_code_25;
+		double dxf_table_vport_code_26;
+		double dxf_table_vport_code_27;
+
+		double dxf_table_vport_code_30;
+		double dxf_table_vport_code_31;
+		double dxf_table_vport_code_32;
+		double dxf_table_vport_code_33;
+		double dxf_table_vport_code_34;
+		double dxf_table_vport_code_35;
+		double dxf_table_vport_code_36;
+		double dxf_table_vport_code_37;
+
+		double dxf_table_vport_code_40;
+		double dxf_table_vport_code_41;
+		double dxf_table_vport_code_42;
+		double dxf_table_vport_code_43;
+		double dxf_table_vport_code_44;
+
+		double dxf_table_vport_code_50;
+		double dxf_table_vport_code_51;
+
+		int16_t dxf_table_vport_code_60;
+		int16_t dxf_table_vport_code_61;
+		int16_t dxf_table_vport_code_62;
+		int16_t dxf_table_vport_code_63;
+		int16_t dxf_table_vport_code_64;
+		int16_t dxf_table_vport_code_65;
+
+		int16_t dxf_table_vport_code_70;
+		int16_t dxf_table_vport_code_71;
+		int16_t dxf_table_vport_code_72;
+		int16_t dxf_table_vport_code_73;
+		int16_t dxf_table_vport_code_74;
+		int16_t dxf_table_vport_code_75;
+		int16_t dxf_table_vport_code_76;
+		int16_t dxf_table_vport_code_77;
+		int16_t dxf_table_vport_code_78;
+		int16_t dxf_table_vport_code_79;
+
+		QString dxf_table_vport_code_100[2];
+		QString dxf_table_vport_code_102[2];
+
+		double dxf_table_vport_code_110;
+		double dxf_table_vport_code_111;
+		double dxf_table_vport_code_112;
+
+		double dxf_table_vport_code_120;
+		double dxf_table_vport_code_121;
+		double dxf_table_vport_code_122;
+
+		double dxf_table_vport_code_130;
+		double dxf_table_vport_code_131;
+		double dxf_table_vport_code_132;
+
+		double dxf_table_vport_code_141;
+		double dxf_table_vport_code_142;
+		double dxf_table_vport_code_143;
+		double dxf_table_vport_code_144;
+		double dxf_table_vport_code_145;
+		double dxf_table_vport_code_146;
+
+
+		double dxf_table_vport_code_281;
+		double dxf_table_vport_code_282;
+
+		bool dxf_table_vport_code_292;
+
+		QString dxf_table_vport_code_330;
+		QString dxf_table_vport_code_360;
+
+		QString dxf_table_vport_code_348;
+
+		int32_t dxf_table_vport_code_421;
+
+		QString dxf_table_vport_code_1001;
+
+		int16_t dxf_table_vport_code_1070;
+
+	};
+
+	struct DXF_block
+	{
+
+		QString DXF_block_code_1;
+		QString DXF_block_code_2;
+		QString DXF_block_code_3;
+		QString DXF_block_code_4;
+		QString DXF_block_code_5;
+		QString DXF_block_code_6;
+		QString DXF_block_code_8;
+
+		double DXF_block_code_10;
+		double DXF_block_code_20;
+		double DXF_block_code_30;
+
+		int DXF_block_code_62;
+		int DXF_block_code_67;
+		int DXF_block_code_70;
+
+		QString DXF_block_code_100[2];
+		QString DXF_block_code_102[2];
+
+		QString DXF_block_code_330;
+
+
+
+	};
+
+	struct DXF_end_block
+	{
+
+		QString DXF_end_block_code_1;
+		QString DXF_end_block_code_2;
+		QString DXF_end_block_code_3;
+		QString DXF_end_block_code_4;
+		QString DXF_end_block_code_5;
+		QString DXF_end_block_code_8;
+
+		double DXF_end_block_code_10;
+		double DXF_end_block_code_20;
+		double DXF_end_block_code_30;
+
+		int16_t DXF_end_block_code_67;
+		int16_t DXF_end_block_code_70;
+
+		QString DXF_end_block_code_100[2];
+		QString DXF_end_block_code_102[2];
+
+		QString DXF_end_block_code_330;
+
+
+
+	};
+
+	struct DXF_entities
+	{
+
+	};
+
+	struct DXF_objects
+	{
+
+	};
+
+	struct DXF_thumbnailimage
+	{
+
+	};
+
+	struct DXF_base
+	{
+		QString dxf_openfile;
+		QString dxf_dir;
+		QString dxf_filepath;
+		QString dxf_text_all;
+		QString dxf_filetype;
+
+		QStringList dxf_input;
+
+		QString dxf_csv_split[10000][20];
+		int dxf_csv_line_count;
+		QString csv_table_settings[5][20];
+		QString Elmt_list[500];
+		int csv_header;
+		int csv_start;
+		int csv_split;
+
+		int csv_count_elmt;
+
+		int32_t dxf_line_count;
+
+		int dxf_header_item_count;
+		int dxf_classes_item_count;
+		int dxf_tables_item_count;
+		int dxf_block_item_count;
+		int dxf_entites_item_count;
+		int dxf_objects_item_count;
+		int dxf_thumbnailimage_item_count;
+
+		int DXF_table_appid_count;
+		int DXF_table_block_record_count;
+		int DXF_table_dimstyle_count;
+		int DXF_table_layer_count;
+		int DXF_table_ltype_count;
+		int DXF_table_style_count;
+		int DXF_table_ucs_count;
+		int DXF_table_view_count;
+		int DXF_table_vport_count;
+
+		int DXF_block_3dface_count[100];
+		int DXF_block_3dsolid_count[100];
+		int DXF_block_acad_proxy_entity_count[100];
+		int DXF_block_arc_count[100];
+		int DXF_block_attdef_count[100];
+		int DXF_block_attrib_count[100];
+		int DXF_block_body_count[100];
+		int DXF_block_circle_count[100];
+		int DXF_block_dimension_count[100];
+		int DXF_block_ellipse_count[100];
+		int DXF_block_hatch_count[100];
+		int DXF_block_helix_count[100];
+		int DXF_block_image_count[100];
+		int DXF_block_insert_count[100];
+		int DXF_block_leader_count[100];
+		int DXF_block_light_count[100];
+		int DXF_block_line_count[100];
+		int DXF_block_lwpolyline_count[100];
+		int DXF_block_mesh_count[100];
+		int DXF_block_mline_count[100];
+		int DXF_block_mleaderstyle_count[100];
+		int DXF_block_mleader_count[100];
+		int DXF_block_mtext_count[100];
+		int DXF_block_oleframe_count[100];
+		int DXF_block_ole2frame_count[100];
+		int DXF_block_point_count[100];
+		int DXF_block_polyline_count[100];
+		int DXF_block_ray_count[100];
+		int DXF_block_region_count[100];
+		int DXF_block_section_count[100];
+		int DXF_block_seqend_count[100];
+		int DXF_block_shape_count[100];
+		int DXF_block_solid_count[100];
+		int DXF_block_spline_count[100];
+		int DXF_block_sun_count[100];
+		int DXF_block_surface_count[100];
+		int DXF_block_table_count[100];
+		int DXF_block_text_count[100];
+		int DXF_block_tolerance_count[100];
+		int DXF_block_trace_count[100];
+		int DXF_block_underlay[100];
+		int DXF_block_vertex_count[100];
+		int DXF_block_viewport_count[100];
+		int DXF_block_wipeout_count[100];
+		int DXF_block_xline_count[100];
+
+		int DXF_entities_3dface_count ;
+		int DXF_entities_3dsolid_count ;
+		int DXF_entities_acad_proxy_entity_count ;
+		int DXF_entities_arc_count ;
+		int DXF_entities_attdef_count ;
+		int DXF_entities_attrib_count ;
+		int DXF_entities_body_count ;
+		int DXF_entities_circle_count ;
+		int DXF_entities_dimension_count ;
+		int DXF_entities_ellipse_count ;
+		int DXF_entities_hatch_count ;
+		int DXF_entities_helix_count ;
+		int DXF_entities_image_count ;
+		int DXF_entities_insert_count ;
+		int DXF_entities_leader_count ;
+		int DXF_entities_light_count ;
+		int DXF_entities_line_count ;
+		int DXF_entities_lwpolyline_count ;
+		int DXF_entities_mesh_count ;
+		int DXF_entities_mline_count ;
+		int DXF_entities_mleaderstyle_count ;
+		int DXF_entities_mleader_count ;
+		int DXF_entities_mtext_count ;
+		int DXF_entities_oleframe_count ;
+		int DXF_entities_ole2frame_count ;
+		int DXF_entities_point_count ;
+		int DXF_entities_polyline_count ;
+		int DXF_entities_ray_count ;
+		int DXF_entities_region_count ;
+		int DXF_entities_section_count ;
+		int DXF_entities_seqend_count ;
+		int DXF_entities_shape_count ;
+		int DXF_entities_solid_count ;
+		int DXF_entities_spline_count ;
+		int DXF_entities_sun_count ;
+		int DXF_entities_surface_count ;
+		int DXF_entities_table_count ;
+		int DXF_entities_text_count ;
+		int DXF_entities_tolerance_count ;
+		int DXF_entities_trace_count ;
+		int DXF_entities_underlay ;
+		int DXF_entities_vertex_count ;
+		int DXF_entities_viewport_count ;
+		int DXF_entities_wipeout_count ;
+		int DXF_entities_xline_count ;
+
+		QString DXF_ELMT_Name_text_en;
+		QString DXF_ELMT_Name_text_fr;
+		QString DXF_ELMT_Name_text_de;
+		QString DXF_ELMT_Name_text_ar;
+		QString DXF_ELMT_Name_text_it;
+		QString DXF_ELMT_Name_text_pl;
+		QString DXF_ELMT_Name_text_nl;
+		QString DXF_ELMT_Name_text_be_nl;
+		QString DXF_ELMT_Name_text_es;
+		QString DXF_ELMT_Name_text_cs;
+
+		int DXF_file_loaded_into_table;
+
+	} ;
+
+
+	struct DXF_block_3dface
+	{
+
+	};
+
+	struct DXF_block_3dsolid
+	{
+
+	};
+
+	struct DXF_block_acad_proxy_entity
+	{
+
+	};
+
+	struct DXF_block_arc
+	{
+
+	};
+
+	struct DXF_block_attdef
+	{
+
+	};
+
+	struct DXF_block_attrib
+	{
+
+	};
+
+	struct DXF_block_body
+	{
+
+	};
+
+	struct DXF_block_circle
+	{
+
+	};
+
+	struct DXF_block_dimension
+	{
+
+	};
+
+	struct DXF_block_ellipse
+	{
+
+	};
+
+	struct DXF_block_hatch
+	{
+
+	};
+
+	struct DXF_block_helix
+	{
+
+	};
+
+	struct DXF_block_image
+	{
+
+	};
+
+	struct DXF_block_insert
+	{
+
+	};
+
+	struct DXF_block_leader
+	{
+
+	};
+
+	struct DXF_block_light
+	{
+
+	};
+
+	struct DXF_block_line
+	{
+
+		QString DXF_block_line_code_5;
+		QString DXF_block_line_code_6;
+		QString DXF_block_line_code_8;
+
+		double DXF_block_line_code_10;
+		double DXF_block_line_code_11;
+
+		double DXF_block_line_code_20;
+		double DXF_block_line_code_21;
+
+		double DXF_block_line_code_30;
+		double DXF_block_line_code_31;
+
+		int16_t DXF_block_line_code_62;
+
+		QString DXF_block_line_code_100[2];
+
+		QString DXF_block_line_code_330;
+
+	};
+
+	struct DXF_block_lwpolyline
+	{
+		QString DXF_block_lwpolyline_code_5;
+		QString DXF_block_lwpolyline_code_6;
+		QString DXF_block_lwpolyline_code_8;
+
+		double DXF_block_lwpolyline_code_10;
+		double DXF_block_lwpolyline_code_11;
+
+		double DXF_block_lwpolyline_code_20;
+		double DXF_block_lwpolyline_code_21;
+
+		double DXF_block_lwpolyline_code_30;
+		double DXF_block_lwpolyline_code_31;
+
+		int16_t DXF_block_lwpolyline_code_62;
+
+		QString DXF_block_lwpolyline_code_100[2];
+
+		QString DXF_block_lwpolyline_code_330;
+	};
+
+	struct DXF_block_mesh
+	{
+
+	};
+
+	struct DXF_block_mline
+	{
+
+	};
+
+	struct DXF_block_mleaderstyle
+	{
+
+	};
+
+	struct DXF_block_mleader
+	{
+
+	};
+
+	struct DXF_block_mtext
+	{
+
+	};
+
+	struct DXF_block_oleframe
+	{
+
+	};
+
+	struct DXF_block_ole2frame
+	{
+
+	};
+
+	struct DXF_block_point
+	{
+
+	};
+
+	struct DXF_block_polyline
+	{
+
+	};
+
+	struct DXF_block_ray
+	{
+
+	};
+
+	struct DXF_block_region
+	{
+
+	};
+
+	struct DXF_block_section
+	{
+
+	};
+
+	struct DXF_block_seqend
+	{
+
+	};
+
+	struct DXF_block_shape
+	{
+
+	};
+
+	struct DXF_block_solid
+	{
+		QString DXF_block_solid_code_6;
+		QString DXF_block_solid_code_8;
+
+		double DXF_block_solid_code_10;
+		double DXF_block_solid_code_11;
+		double DXF_block_solid_code_12;
+		double DXF_block_solid_code_13;
+
+		double DXF_block_solid_code_20;
+		double DXF_block_solid_code_21;
+		double DXF_block_solid_code_22;
+		double DXF_block_solid_code_23;
+	};
+
+
+
+	struct DXF_block_spline
+	{
+
+	};
+
+	struct DXF_block_sun
+	{
+
+	};
+
+	struct DXF_block_surface
+	{
+
+	};
+
+	struct DXF_block_table
+	{
+
+	};
+
+	struct DXF_block_text
+	{
+		QString DXF_block_text_code_1;
+		QString DXF_block_text_code_5;
+		QString DXF_block_text_code_6;
+		QString DXF_block_text_code_8;
+
+		double DXF_block_text_code_10;
+		double DXF_block_text_code_11;
+
+		double DXF_block_text_code_20;
+		double DXF_block_text_code_21;
+
+		double DXF_block_text_code_30;
+		double DXF_block_text_code_31;
+
+		double DXF_block_text_code_40;
+		double DXF_block_text_code_50;
+
+		int16_t DXF_block_text_code_62;
+
+		int16_t DXF_block_text_code_72;
+
+		QString DXF_block_text_code_100[2];
+
+		QString DXF_block_text_code_330;
+	};
+
+	struct DXF_block_tolerance
+	{
+
+	};
+
+	struct DXF_block_trace
+	{
+
+	};
+
+	struct DXF_block_underlay
+	{
+
+	};
+
+	struct DXF_block_vertex
+	{
+
+	};
+
+	struct DXF_block_viewport
+	{
+
+	};
+
+	struct DXF_block_wipeout
+	{
+
+	};
+
+	struct DXF_block_xline
+	{
+
+	};
+
+	struct DXF_entities_3dface
+	{
+		QString DXF_entities_3dface_code_5;
+		QString DXF_entities_3dface_code_6;
+
+		QString DXF_entities_3dface_code_8;
+
+		double DXF_entities_3dface_code_10;
+		double DXF_entities_3dface_code_11;
+		double DXF_entities_3dface_code_20;
+		double DXF_entities_3dface_code_21;
+		double DXF_entities_3dface_code_30;
+		double DXF_entities_3dface_code_31;
+
+		int16_t DXF_entities_3dface_code_62;
+
+		QString DXF_entities_3dface_code_100[3];
+
+		QString DXF_entities_3dface_code_330;
+	};
+
+	struct DXF_entities_3dsolid
+	{
+		QString DXF_entities_3dsolid_code_5;
+		QString DXF_entities_3dsolid_code_6;
+
+		QString DXF_entities_3dsolid_code_8;
+
+		double DXF_entities_3dsolid_code_10;
+		double DXF_entities_3dsolid_code_11;
+		double DXF_entities_3dsolid_code_20;
+		double DXF_entities_3dsolid_code_21;
+		double DXF_entities_3dsolid_code_30;
+		double DXF_entities_3dsolid_code_31;
+
+		int16_t DXF_entities_3dsolid_code_62;
+
+		QString DXF_entities_3dsolid_code_100[3];
+
+		QString DXF_entities_3dsolid_code_330;
+	};
+
+	struct DXF_entities_acad_proxy_entity
+	{
+		QString DXF_entities_acad_proxy_entity_code_5;
+		QString DXF_entities_acad_proxy_entity_code_6;
+
+		QString DXF_entities_acad_proxy_entity_code_8;
+
+		double DXF_entities_acad_proxy_entity_code_10;
+		double DXF_entities_acad_proxy_entity_code_11;
+		double DXF_entities_acad_proxy_entity_code_20;
+		double DXF_entities_acad_proxy_entity_code_21;
+		double DXF_entities_acad_proxy_entity_code_30;
+		double DXF_entities_acad_proxy_entity_code_31;
+
+		int16_t DXF_entities_acad_proxy_entity_code_62;
+
+		QString DXF_entities_acad_proxy_entity_code_100[3];
+
+		QString DXF_entities_acad_proxy_entity_code_330;
+	};
+
+	struct DXF_entities_arc
+	{
+
+		QString DXF_entities_arc_code_5;		// Handle
+		QString DXF_entities_arc_code_6;		// Linetype name (present if not BYLAYER). The special name BYBLOCK indicates a floating linetype (optional)
+		QString DXF_entities_arc_code_8;		// Layer name
+
+		double DXF_entities_arc_code_10;		// Center point (in OCS) DXF: X value; APP: 3D point
+		double DXF_entities_arc_code_20;		// DXF: Y values of center point (in OCS)
+		double DXF_entities_arc_code_30;		// DXF: Z values of center point (in OCS)
+		double DXF_entities_arc_code_39;		// Thickness (optional; default = 0)
+		double DXF_entities_arc_code_40;		// Radius
+		double DXF_entities_arc_code_48;		// Linetype scale (optional)
+
+		double DXF_entities_arc_code_50;		// Start angle
+		double DXF_entities_arc_code_51;		// End angle
+
+		int16_t DXF_entities_arc_code_62;		// Color number (present if not BYLAYER);
+												// zero indicates the BYBLOCK (floating) color;
+												// 256 indicates BYLAYER;
+												// a negative value indicates that the layer is turned off (optional)
+
+
+		int16_t DXF_entities_arc_code_70;
+
+		QString DXF_entities_arc_code_100[3];	//[1] Subclass marker (AcDbCircle)
+												//[2] Subclass marker (AcDbArc)
+
+		QString DXF_entities_arc_code_330;		// Soft-pointer ID/handle to owner dictionary (optional)
+	};
+
+	struct DXF_entities_attdef
+	{
+		QString DXF_entities_attdef_code_1;
+		QString DXF_entities_attdef_code_2;
+		QString DXF_entities_attdef_code_3;
+
+		QString DXF_entities_attdef_code_5;
+		QString DXF_entities_attdef_code_6;
+		QString DXF_entities_attdef_code_8;
+
+		double DXF_entities_attdef_code_10;
+		double DXF_entities_attdef_code_20;
+		double DXF_entities_attdef_code_30;
+		double DXF_entities_attdef_code_40;
+
+		int16_t DXF_entities_attdef_code_70;
+
+		QString DXF_entities_attdef_code_100[3];
+
+		QString DXF_entities_attdef_code_330;
+
+
+
+	};
+
+	struct DXF_entities_attrib
+	{
+		QString DXF_entities_attrib_code_5;
+		QString DXF_entities_attrib_code_6;
+
+		QString DXF_entities_attrib_code_8;
+
+		double DXF_entities_attrib_code_10;
+		double DXF_entities_attrib_code_11;
+		double DXF_entities_attrib_code_20;
+		double DXF_entities_attrib_code_21;
+		double DXF_entities_attrib_code_30;
+		double DXF_entities_attrib_code_31;
+
+		int16_t DXF_entities_attrib_code_62;
+
+		QString DXF_entities_attrib_code_100[3];
+
+		QString DXF_entities_attrib_code_330;
+	};
+
+	struct DXF_entities_body
+	{
+		QString DXF_entities_body_code_5;
+		QString DXF_entities_body_code_6;
+
+		QString DXF_entities_body_code_8;
+
+		double DXF_entities_body_code_10;
+		double DXF_entities_body_code_11;
+		double DXF_entities_body_code_20;
+		double DXF_entities_body_code_21;
+		double DXF_entities_body_code_30;
+		double DXF_entities_body_code_31;
+
+		int16_t DXF_entities_body_code_62;
+
+		QString DXF_entities_body_code_100[3];
+
+		QString DXF_entities_body_code_330;
+	};
+
+	struct DXF_entities_circle
+	{
+		QString DXF_entities_circle_code_5;
+		QString DXF_entities_circle_code_6;
+
+		QString DXF_entities_circle_code_8;
+
+		double DXF_entities_circle_code_10;
+		double DXF_entities_circle_code_11;
+		double DXF_entities_circle_code_20;
+		double DXF_entities_circle_code_21;
+		double DXF_entities_circle_code_30;
+		double DXF_entities_circle_code_31;
+
+		int16_t DXF_entities_circle_code_62;
+
+		QString DXF_entities_circle_code_100[3];
+
+		QString DXF_entities_circle_code_330;
+	};
+
+	struct DXF_entities_dimension
+	{
+		QString DXF_entities_dimension_code_5;
+		QString DXF_entities_dimension_code_6;
+
+		QString DXF_entities_dimension_code_8;
+
+		double DXF_entities_dimension_code_10;
+		double DXF_entities_dimension_code_11;
+		double DXF_entities_dimension_code_20;
+		double DXF_entities_dimension_code_21;
+		double DXF_entities_dimension_code_30;
+		double DXF_entities_dimension_code_31;
+
+		int16_t DXF_entities_dimension_code_62;
+
+		QString DXF_entities_dimension_code_100[3];
+
+		QString DXF_entities_dimension_code_330;
+	};
+
+	struct DXF_entities_ellipse
+	{
+		QString DXF_entities_ellipse_code_5;
+
+		QString DXF_entities_ellipse_code_8;
+
+		double DXF_entities_ellipse_code_10;
+		double DXF_entities_ellipse_code_11;
+		double DXF_entities_ellipse_code_20;
+		double DXF_entities_ellipse_code_21;
+		double DXF_entities_ellipse_code_30;
+		double DXF_entities_ellipse_code_31;
+		double DXF_entities_ellipse_code_40;
+
+		double DXF_entities_ellipse_code_41;
+		double DXF_entities_ellipse_code_42;
+
+		int16_t DXF_entities_ellipse_code_70;
+
+		QString DXF_entities_ellipse_code_100[3];
+
+		double DXF_entities_ellipse_code_210;
+		double DXF_entities_ellipse_code_220;
+		double DXF_entities_ellipse_code_230;
+
+		QString DXF_entities_ellipse_code_330;
+	};
+
+	struct DXF_entities_hatch
+	{
+		QString DXF_entities_hatch_code_5;
+		QString DXF_entities_hatch_code_6;
+
+		QString DXF_entities_hatch_code_8;
+
+		double DXF_entities_hatch_code_10;
+		double DXF_entities_hatch_code_11;
+		double DXF_entities_hatch_code_20;
+		double DXF_entities_hatch_code_21;
+		double DXF_entities_hatch_code_30;
+		double DXF_entities_hatch_code_31;
+
+		int16_t DXF_entities_hatch_code_62;
+
+		QString DXF_entities_hatch_code_100[3];
+
+		QString DXF_entities_hatch_code_330;
+	};
+
+	struct DXF_entities_helix
+	{
+		QString DXF_entities_helix_code_5;
+		QString DXF_entities_helix_code_6;
+
+		QString DXF_entities_helix_code_8;
+
+		double DXF_entities_helix_code_10;
+		double DXF_entities_helix_code_11;
+		double DXF_entities_helix_code_20;
+		double DXF_entities_helix_code_21;
+		double DXF_entities_helix_code_30;
+		double DXF_entities_helix_code_31;
+
+		int16_t DXF_entities_helix_code_62;
+
+		QString DXF_entities_helix_code_100[3];
+
+		QString DXF_entities_helix_code_330;
+	};
+
+	struct DXF_entities_image
+	{
+		QString DXF_entities_image_code_5;
+		QString DXF_entities_image_code_6;
+
+		QString DXF_entities_image_code_8;
+
+		double DXF_entities_image_code_10;
+		double DXF_entities_image_code_11;
+		double DXF_entities_image_code_20;
+		double DXF_entities_image_code_21;
+		double DXF_entities_image_code_30;
+		double DXF_entities_image_code_31;
+
+		int16_t DXF_entities_image_code_62;
+
+		QString DXF_entities_image_code_100[3];
+
+		QString DXF_entities_image_code_330;
+	};
+
+	struct DXF_entities_insert
+	{
+		QString DXF_entities_insert_code_5;
+		QString DXF_entities_insert_code_6;
+
+		QString DXF_entities_insert_code_8;
+
+		double DXF_entities_insert_code_10;
+		double DXF_entities_insert_code_11;
+		double DXF_entities_insert_code_20;
+		double DXF_entities_insert_code_21;
+		double DXF_entities_insert_code_30;
+		double DXF_entities_insert_code_31;
+
+		int16_t DXF_entities_insert_code_62;
+
+		QString DXF_entities_insert_code_100[3];
+
+		QString DXF_entities_insert_code_330;
+	};
+
+	struct DXF_entities_leader
+	{
+		QString DXF_entities_leader_code_5;
+		QString DXF_entities_leader_code_6;
+
+		QString DXF_entities_leader_code_8;
+
+		double DXF_entities_leader_code_10;
+		double DXF_entities_leader_code_11;
+		double DXF_entities_leader_code_20;
+		double DXF_entities_leader_code_21;
+		double DXF_entities_leader_code_30;
+		double DXF_entities_leader_code_31;
+
+		int16_t DXF_entities_leader_code_62;
+
+		QString DXF_entities_leader_code_100[3];
+
+		QString DXF_entities_leader_code_330;
+	};
+
+	struct DXF_entities_light
+	{
+		QString DXF_entities_light_code_5;
+		QString DXF_entities_light_code_6;
+
+		QString DXF_entities_light_code_8;
+
+		double DXF_entities_light_code_10;
+		double DXF_entities_light_code_11;
+		double DXF_entities_light_code_20;
+		double DXF_entities_light_code_21;
+		double DXF_entities_light_code_30;
+		double DXF_entities_light_code_31;
+
+		int16_t DXF_entities_light_code_62;
+
+		QString DXF_entities_light_code_100[3];
+
+		QString DXF_entities_light_code_330;
+	};
+
+	struct DXF_entities_line
+	{
+		QString DXF_entities_line_code_5;
+		QString DXF_entities_line_code_6;
+
+		QString DXF_entities_line_code_8;
+
+		double DXF_entities_line_code_10;
+		double DXF_entities_line_code_11;
+		double DXF_entities_line_code_20;
+		double DXF_entities_line_code_21;
+		double DXF_entities_line_code_30;
+		double DXF_entities_line_code_31;
+
+		int16_t DXF_entities_line_code_62;
+
+		QString DXF_entities_line_code_100[3];
+
+		QString DXF_entities_line_code_330;
+	};
+
+	struct DXF_entities_lwpolyline
+	{
+		QString DXF_entities_lwpolyline_code_5;
+		QString DXF_entities_lwpolyline_code_6;
+
+		QString DXF_entities_lwpolyline_code_8;
+
+		double DXF_entities_lwpolyline_code_10[50];
+		double DXF_entities_lwpolyline_code_11;
+		double DXF_entities_lwpolyline_code_20[50];
+		double DXF_entities_lwpolyline_code_21;
+		double DXF_entities_lwpolyline_code_30;
+		double DXF_entities_lwpolyline_code_31;
+
+		double DXF_entities_lwpolyline_code_43;
+
+		int16_t DXF_entities_lwpolyline_code_62;
+
+		int16_t DXF_entities_lwpolyline_code_70;
+
+		int32_t DXF_entities_lwpolyline_code_90;
+
+		QString DXF_entities_lwpolyline_code_100[3];
+
+		QString DXF_entities_lwpolyline_code_330;
+	};
+
+	struct DXF_entities_mesh
+	{
+		QString DXF_entities_mesh_code_5;
+		QString DXF_entities_mesh_code_6;
+
+		QString DXF_entities_mesh_code_8;
+
+		double DXF_entities_mesh_code_10;
+		double DXF_entities_mesh_code_11;
+		double DXF_entities_mesh_code_20;
+		double DXF_entities_mesh_code_21;
+		double DXF_entities_mesh_code_30;
+		double DXF_entities_mesh_code_31;
+
+		int16_t DXF_entities_mesh_code_62;
+
+		QString DXF_entities_mesh_code_100[3];
+
+		QString DXF_entities_mesh_code_330;
+	};
+
+	struct DXF_entities_mline
+	{
+		QString DXF_entities_mline_code_5;
+		QString DXF_entities_mline_code_6;
+
+		QString DXF_entities_mline_code_8;
+
+		double DXF_entities_mline_code_10;
+		double DXF_entities_mline_code_11;
+		double DXF_entities_mline_code_20;
+		double DXF_entities_mline_code_21;
+		double DXF_entities_mline_code_30;
+		double DXF_entities_mline_code_31;
+
+		int16_t DXF_entities_mline_code_62;
+
+		QString DXF_entities_mline_code_100[3];
+
+		QString DXF_entities_mline_code_330;
+	};
+
+	struct DXF_entities_mleaderstyle
+	{
+		QString DXF_entities_mleaderstyle_code_5;
+		QString DXF_entities_mleaderstyle_code_6;
+
+		QString DXF_entities_mleaderstyle_code_8;
+
+		double DXF_entities_mleaderstyle_code_10;
+		double DXF_entities_mleaderstyle_code_11;
+		double DXF_entities_mleaderstyle_code_20;
+		double DXF_entities_mleaderstyle_code_21;
+		double DXF_entities_mleaderstyle_code_30;
+		double DXF_entities_mleaderstyle_code_31;
+
+		int16_t DXF_entities_mleaderstyle_code_62;
+
+		QString DXF_entities_mleaderstyle_code_100[3];
+
+		QString DXF_entities_mleaderstyle_code_330;
+	};
+
+	struct DXF_entities_mleader
+	{
+		QString DXF_entities_mleader_code_5;
+		QString DXF_entities_mleader_code_6;
+
+		QString DXF_entities_mleader_code_8;
+
+		double DXF_entities_mleader_code_10;
+		double DXF_entities_mleader_code_11;
+		double DXF_entities_mleader_code_20;
+		double DXF_entities_mleader_code_21;
+		double DXF_entities_mleader_code_30;
+		double DXF_entities_mleader_code_31;
+
+		int16_t DXF_entities_mleader_code_62;
+
+		QString DXF_entities_mleader_code_100[3];
+
+		QString DXF_entities_mleader_code_330;
+	};
+
+	struct DXF_entities_mtext
+	{
+		QString DXF_entities_mtext_code_5;
+		QString DXF_entities_mtext_code_6;
+
+		QString DXF_entities_mtext_code_8;
+
+		double DXF_entities_mtext_code_10;
+		double DXF_entities_mtext_code_11;
+		double DXF_entities_mtext_code_20;
+		double DXF_entities_mtext_code_21;
+		double DXF_entities_mtext_code_30;
+		double DXF_entities_mtext_code_31;
+
+		int16_t DXF_entities_mtext_code_62;
+
+		QString DXF_entities_mtext_code_100[3];
+
+		QString DXF_entities_mtext_code_330;
+	};
+
+	struct DXF_entities_oleframe
+	{
+		QString DXF_entities_oleframe_code_5;
+		QString DXF_entities_oleframe_code_6;
+
+		QString DXF_entities_oleframe_code_8;
+
+		double DXF_entities_oleframe_code_10;
+		double DXF_entities_oleframe_code_11;
+		double DXF_entities_oleframe_code_20;
+		double DXF_entities_oleframe_code_21;
+		double DXF_entities_oleframe_code_30;
+		double DXF_entities_oleframe_code_31;
+
+		int16_t DXF_entities_oleframe_code_62;
+
+		QString DXF_entities_oleframe_code_100[3];
+
+		QString DXF_entities_oleframe_code_330;
+	};
+
+	struct DXF_entities_ole2frame
+	{
+		QString DXF_entities_ole2frame_code_5;
+		QString DXF_entities_ole2frame_code_6;
+
+		QString DXF_entities_ole2frame_code_8;
+
+		double DXF_entities_ole2frame_code_10;
+		double DXF_entities_ole2frame_code_11;
+		double DXF_entities_ole2frame_code_20;
+		double DXF_entities_ole2frame_code_21;
+		double DXF_entities_ole2frame_code_30;
+		double DXF_entities_ole2frame_code_31;
+
+		int16_t DXF_entities_ole2frame_code_62;
+
+		QString DXF_entities_ole2frame_code_100[3];
+
+		QString DXF_entities_ole2frame_code_330;
+	};
+
+	struct DXF_entities_point
+	{
+		QString DXF_entities_point_code_5;
+		QString DXF_entities_point_code_6;
+
+		QString DXF_entities_point_code_8;
+
+		double DXF_entities_point_code_10;
+		double DXF_entities_point_code_11;
+		double DXF_entities_point_code_20;
+		double DXF_entities_point_code_21;
+		double DXF_entities_point_code_30;
+		double DXF_entities_point_code_31;
+
+		int16_t DXF_entities_point_code_62;
+
+		QString DXF_entities_point_code_100[3];
+
+		QString DXF_entities_point_code_330;
+
+		int16_t DXF_entities_point_code_370;
+
+	};
+
+	struct DXF_entities_polyline
+	{
+		QString DXF_entities_polyline_code_5;
+		QString DXF_entities_polyline_code_6;
+
+		QString DXF_entities_polyline_code_8;
+
+		double DXF_entities_polyline_code_10;
+		double DXF_entities_polyline_code_11;
+		double DXF_entities_polyline_code_20;
+		double DXF_entities_polyline_code_21;
+		double DXF_entities_polyline_code_30;
+		double DXF_entities_polyline_code_31;
+
+		int16_t DXF_entities_polyline_code_62;
+
+		QString DXF_entities_polyline_code_100[3];
+
+		QString DXF_entities_polyline_code_330;
+	};
+
+	struct DXF_entities_ray
+	{
+		QString DXF_entities_ray_code_5;
+		QString DXF_entities_ray_code_6;
+
+		QString DXF_entities_ray_code_8;
+
+		double DXF_entities_ray_code_10;
+		double DXF_entities_ray_code_11;
+		double DXF_entities_ray_code_20;
+		double DXF_entities_ray_code_21;
+		double DXF_entities_ray_code_30;
+		double DXF_entities_ray_code_31;
+
+		int16_t DXF_entities_ray_code_62;
+
+		QString DXF_entities_ray_code_100[3];
+
+		QString DXF_entities_ray_code_330;
+	};
+
+	struct DXF_entities_region
+	{
+		QString DXF_entities_region_code_5;
+		QString DXF_entities_region_code_6;
+
+		QString DXF_entities_region_code_8;
+
+		double DXF_entities_region_code_10;
+		double DXF_entities_region_code_11;
+		double DXF_entities_region_code_20;
+		double DXF_entities_region_code_21;
+		double DXF_entities_region_code_30;
+		double DXF_entities_region_code_31;
+
+		int16_t DXF_entities_region_code_62;
+
+		QString DXF_entities_region_code_100[3];
+
+		QString DXF_entities_region_code_330;
+	};
+
+	struct DXF_entities_section
+	{
+		QString DXF_entities_section_code_5;
+		QString DXF_entities_section_code_6;
+
+		QString DXF_entities_section_code_8;
+
+		double DXF_entities_section_code_10;
+		double DXF_entities_section_code_11;
+		double DXF_entities_section_code_20;
+		double DXF_entities_section_code_21;
+		double DXF_entities_section_code_30;
+		double DXF_entities_section_code_31;
+
+		int16_t DXF_entities_section_code_62;
+
+		QString DXF_entities_section_code_100[3];
+
+		QString DXF_entities_section_code_330;
+	};
+
+	struct DXF_entities_seqend
+	{
+		QString DXF_entities_seqend_code_5;
+		QString DXF_entities_seqend_code_6;
+
+		QString DXF_entities_seqend_code_8;
+
+		double DXF_entities_seqend_code_10;
+		double DXF_entities_seqend_code_11;
+		double DXF_entities_seqend_code_20;
+		double DXF_entities_seqend_code_21;
+		double DXF_entities_seqend_code_30;
+		double DXF_entities_seqend_code_31;
+
+		int16_t DXF_entities_seqend_code_62;
+
+		QString DXF_entities_seqend_code_100[3];
+
+		QString DXF_entities_seqend_code_330;
+	};
+
+	struct DXF_entities_shape
+	{
+		QString DXF_entities_shape_code_5;
+		QString DXF_entities_shape_code_6;
+
+		QString DXF_entities_shape_code_8;
+
+		double DXF_entities_shape_code_10;
+		double DXF_entities_shape_code_11;
+		double DXF_entities_shape_code_20;
+		double DXF_entities_shape_code_21;
+		double DXF_entities_shape_code_30;
+		double DXF_entities_shape_code_31;
+
+		int16_t DXF_entities_shape_code_62;
+
+		QString DXF_entities_shape_code_100[3];
+
+		QString DXF_entities_shape_code_330;
+	};
+
+	struct DXF_entities_solid
+	{
+		QString DXF_entities_solid_code_5;
+		QString DXF_entities_solid_code_6;
+
+		QString DXF_entities_solid_code_8;
+
+		double DXF_entities_solid_code_10;
+		double DXF_entities_solid_code_11;
+		double DXF_entities_solid_code_20;
+		double DXF_entities_solid_code_21;
+		double DXF_entities_solid_code_30;
+		double DXF_entities_solid_code_31;
+
+		int16_t DXF_entities_solid_code_62;
+
+		QString DXF_entities_solid_code_100[3];
+
+		QString DXF_entities_solid_code_330;
+	};
+
+	struct DXF_entities_spline
+	{
+		QString DXF_entities_spline_code_5;
+		QString DXF_entities_spline_code_6;
+
+		QString DXF_entities_spline_code_8;
+
+		double DXF_entities_spline_code_10;
+		double DXF_entities_spline_code_11;
+		double DXF_entities_spline_code_20;
+		double DXF_entities_spline_code_21;
+		double DXF_entities_spline_code_30;
+		double DXF_entities_spline_code_31;
+
+		int16_t DXF_entities_spline_code_62;
+
+		QString DXF_entities_spline_code_100[3];
+
+		QString DXF_entities_spline_code_330;
+	};
+
+	struct DXF_entities_sun
+	{
+		QString DXF_entities_sun_code_5;
+		QString DXF_entities_sun_code_6;
+
+		QString DXF_entities_sun_code_8;
+
+		double DXF_entities_sun_code_10;
+		double DXF_entities_sun_code_11;
+		double DXF_entities_sun_code_20;
+		double DXF_entities_sun_code_21;
+		double DXF_entities_sun_code_30;
+		double DXF_entities_sun_code_31;
+
+		int16_t DXF_entities_sun_code_62;
+
+		QString DXF_entities_sun_code_100[3];
+
+		QString DXF_entities_sun_code_330;
+	};
+
+	struct DXF_entities_surface
+	{
+		QString DXF_entities_surface_code_5;
+		QString DXF_entities_surface_code_6;
+
+		QString DXF_entities_surface_code_8;
+
+		double DXF_entities_surface_code_10;
+		double DXF_entities_surface_code_11;
+		double DXF_entities_surface_code_20;
+		double DXF_entities_surface_code_21;
+		double DXF_entities_surface_code_30;
+		double DXF_entities_surface_code_31;
+
+		int16_t DXF_entities_surface_code_62;
+
+		QString DXF_entities_surface_code_100[3];
+
+		QString DXF_entities_surface_code_330;
+	};
+
+	struct DXF_entities_table
+	{
+		QString DXF_entities_table_code_5;
+		QString DXF_entities_table_code_6;
+
+		QString DXF_entities_table_code_8;
+
+		double DXF_entities_table_code_10;
+		double DXF_entities_table_code_11;
+		double DXF_entities_table_code_20;
+		double DXF_entities_table_code_21;
+		double DXF_entities_table_code_30;
+		double DXF_entities_table_code_31;
+
+		int16_t DXF_entities_table_code_62;
+
+		QString DXF_entities_table_code_100[3];
+
+		QString DXF_entities_table_code_330;
+	};
+
+	struct DXF_entities_text
+	{
+		QString DXF_entities_text_code_5;
+		QString DXF_entities_text_code_6;
+
+		QString DXF_entities_text_code_8;
+
+		double DXF_entities_text_code_10;
+		double DXF_entities_text_code_11;
+		double DXF_entities_text_code_20;
+		double DXF_entities_text_code_21;
+		double DXF_entities_text_code_30;
+		double DXF_entities_text_code_31;
+
+		int16_t DXF_entities_text_code_62;
+
+		QString DXF_entities_text_code_100[3];
+
+		QString DXF_entities_text_code_330;
+	};
+
+	struct DXF_entities_tolerance
+	{
+		QString DXF_entities_tolerance_code_5;
+		QString DXF_entities_tolerance_code_6;
+
+		QString DXF_entities_tolerance_code_8;
+
+		double DXF_entities_tolerance_code_10;
+		double DXF_entities_tolerance_code_11;
+		double DXF_entities_tolerance_code_20;
+		double DXF_entities_tolerance_code_21;
+		double DXF_entities_tolerance_code_30;
+		double DXF_entities_tolerance_code_31;
+
+		int16_t DXF_entities_tolerance_code_62;
+
+		QString DXF_entities_tolerance_code_100[3];
+
+		QString DXF_entities_tolerance_code_330;
+	};
+
+	struct DXF_entities_trace
+	{
+		QString DXF_entities_trace_code_5;
+		QString DXF_entities_trace_code_6;
+
+		QString DXF_entities_trace_code_8;
+
+		double DXF_entities_trace_code_10;
+		double DXF_entities_trace_code_11;
+		double DXF_entities_trace_code_20;
+		double DXF_entities_trace_code_21;
+		double DXF_entities_trace_code_30;
+		double DXF_entities_trace_code_31;
+
+		int16_t DXF_entities_trace_code_62;
+
+		QString DXF_entities_trace_code_100[3];
+
+		QString DXF_entities_trace_code_330;
+	};
+
+	struct DXF_entities_underlay
+	{
+		QString DXF_entities_underlay_code_5;
+		QString DXF_entities_underlay_code_6;
+
+		QString DXF_entities_underlay_code_8;
+
+		double DXF_entities_underlay_code_10;
+		double DXF_entities_underlay_code_11;
+		double DXF_entities_underlay_code_20;
+		double DXF_entities_underlay_code_21;
+		double DXF_entities_underlay_code_30;
+		double DXF_entities_underlay_code_31;
+
+		int16_t DXF_entities_underlay_code_62;
+
+		QString DXF_entities_underlay_code_100[3];
+
+		QString DXF_entities_underlay_code_330;
+	};
+
+	struct DXF_entities_vertex
+	{
+		QString DXF_entities_vertex_code_5;
+		QString DXF_entities_vertex_code_6;
+
+		QString DXF_entities_vertex_code_8;
+
+		double DXF_entities_vertex_code_10;
+		double DXF_entities_vertex_code_11;
+		double DXF_entities_vertex_code_20;
+		double DXF_entities_vertex_code_21;
+		double DXF_entities_vertex_code_30;
+		double DXF_entities_vertex_code_31;
+
+		int16_t DXF_entities_vertex_code_62;
+
+		QString DXF_entities_vertex_code_100[3];
+
+		QString DXF_entities_vertex_code_330;
+	};
+
+	struct DXF_entities_viewport
+	{
+		QString DXF_entities_viewport_code_5;
+		QString DXF_entities_viewport_code_6;
+
+		QString DXF_entities_viewport_code_8;
+
+		double DXF_entities_viewport_code_10;
+		double DXF_entities_viewport_code_11;
+		double DXF_entities_viewport_code_20;
+		double DXF_entities_viewport_code_21;
+		double DXF_entities_viewport_code_30;
+		double DXF_entities_viewport_code_31;
+
+		int16_t DXF_entities_viewport_code_62;
+
+		QString DXF_entities_viewport_code_100[3];
+
+		QString DXF_entities_viewport_code_330;
+	};
+
+	struct DXF_entities_wipeout
+	{
+		QString DXF_entities_wipeout_code_5;
+		QString DXF_entities_wipeout_code_6;
+
+		QString DXF_entities_wipeout_code_8;
+
+		double DXF_entities_wipeout_code_10;
+		double DXF_entities_wipeout_code_11;
+		double DXF_entities_wipeout_code_20;
+		double DXF_entities_wipeout_code_21;
+		double DXF_entities_wipeout_code_30;
+		double DXF_entities_wipeout_code_31;
+
+		int16_t DXF_entities_wipeout_code_62;
+
+		QString DXF_entities_wipeout_code_100[3];
+
+		QString DXF_entities_wipeout_code_330;
+	};
+
+	struct DXF_entities_xline
+	{
+		QString DXF_entities_xline_code_5;
+		QString DXF_entities_xline_code_6;
+
+		QString DXF_entities_xline_code_8;
+
+		double DXF_entities_xline_code_10;
+		double DXF_entities_xline_code_11;
+		double DXF_entities_xline_code_20;
+		double DXF_entities_xline_code_21;
+		double DXF_entities_xline_code_30;
+		double DXF_entities_xline_code_31;
+
+		int16_t DXF_entities_xline_code_62;
+
+		QString DXF_entities_xline_code_100[3];
+
+		QString DXF_entities_xline_code_330;
+	};
+
+
+class dxf_data
+{
+
+
+	public:
+
+
+
+	dxf_data();
+
+
+
+};
+
+#endif // DXF_DATA_H

Added: branches/dxftoqet2/src/dxf_load.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_load.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_load.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,86 @@
+#include "dxf_load.h"
+
+ //init extern variable
+
+//extern int dxf ();
+
+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[100];
+
+extern struct DXF_end_block DXF_input_end_block[100];
+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];
+
+
+
+dxf_load::dxf_load(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+void dxf_load::dxf_header_split()
+{
+
+	// init extern variable
+	//extern DXF_base DXF_main_base[1];
+
+	// dxf split
+
+	DXF_main_base[0].dxf_input = DXF_main_base[0].dxf_text_all.split("\n");
+	DXF_main_base[0].dxf_line_count=DXF_main_base[0].dxf_input.count();
+
+
+	return;
+
+}
+
+void dxf_load::dxf_csv_split()
+{
+
+	// init extern variable
+	//extern DXF_base DXF_main_base[1];
+
+	// dxf split
+
+	DXF_main_base[0].dxf_input = DXF_main_base[0].dxf_text_all.split("\n");
+	DXF_main_base[0].dxf_csv_line_count=DXF_main_base[0].dxf_input.count();
+
+
+
+	return;
+}
+
+int dxf_load::dxf_check_file()
+{
+
+	// init extern variable
+	//extern DXF_base DXF_main_base[1];
+
+
+
+
+
+	dxf_check=DXF_main_base[0].dxf_input[0];
+
+	if (dxf_check.contains("AC"))
+	{
+		return 0; // BINAIRI
+	}
+	else
+	{
+		return 1; // ASCII
+	}
+
+}

Added: branches/dxftoqet2/src/dxf_load.h
===================================================================
--- branches/dxftoqet2/src/dxf_load.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_load.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,32 @@
+#ifndef DXF_LOAD_H
+#define DXF_LOAD_H
+
+#include <QObject>
+#include <QMainWindow>
+#include <QtWidgets>
+#include "dxf_data.h"
+#include "dxftoqet_mainwindow.h"
+#include "ui_dxftoqet_mainwindow.h"
+
+
+class dxf_load :public QMainWindow, public dxf_data
+{
+
+	Q_OBJECT
+
+	public:
+	explicit dxf_load(QWidget *parent );
+
+
+	QString dxf_check;
+
+
+
+	void dxf_header_split();
+	void dxf_csv_split();
+	int dxf_check_file();
+
+
+};
+
+#endif // DXF_LOAD_H

Added: branches/dxftoqet2/src/dxf_ltype_control.h
===================================================================
--- branches/dxftoqet2/src/dxf_ltype_control.h	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_ltype_control.h	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,18 @@
+#ifndef DXF_LTYPE_CONTROL_H
+#define DXF_LTYPE_CONTROL_H
+
+#include <QMainWindow>
+
+class DXF_Ltype_control : public QMainWindow
+{
+	Q_OBJECT
+	public:
+	explicit DXF_Ltype_control(QWidget *parent = 0);
+
+	signals:
+
+	public slots:
+
+};
+
+#endif // DXF_LTYPE_CONTROL_H

Added: branches/dxftoqet2/src/dxf_split.cpp
===================================================================
--- branches/dxftoqet2/src/dxf_split.cpp	                        (rev 0)
+++ branches/dxftoqet2/src/dxf_split.cpp	2015-08-15 12:37:46 UTC (rev 4120)
@@ -0,0 +1,23008 @@
+#include "dxf_split.h"
+
+//extern int dxf ();
+//extern const int Max_Blocks=500;
+
+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[100];
+
+extern struct DXF_block_3dface DXF_input_block_3dface[100][50];
+extern struct DXF_block_3dsolid DXF_input_block_3dsolid[100][50];
+extern struct DXF_block_acad_proxy_entity DXF_input_block_proxy_entity[100][50];
+extern struct DXF_block_arc DXF_input_block_arc[100][50];
+extern struct DXF_block_attdef DXF_input_block_attdef[100][50];
+extern struct DXF_block_attrib DXF_input_block_attrib[100][50];
+extern struct DXF_block_body DXF_input_block_body[100][50];
+extern struct DXF_block_circle DXF_input_block_circle[100][50];
+extern struct DXF_block_dimension DXF_input_block_dimension[100][50];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[100][50];
+extern struct DXF_block_hatch DXF_input_block_hatch[100][50];
+extern struct DXF_block_helix DXF_input_block_helix[100][50];
+extern struct DXF_block_image DXF_input_block_image[100][50];
+extern struct DXF_block_insert DXF_input_block_insert[100][50];
+extern struct DXF_block_leader DXF_input_block_leader[100][50];
+extern struct DXF_block_light DXF_input_block_light[100][50];
+extern struct DXF_block_line DXF_input_block_line[100][50];
+extern struct DXF_block_lwpolyline DXF_input_block_lwpolyline[100][50];
+extern struct DXF_block_mesh DXF_input_block_mesh[100][50];
+extern struct DXF_block_mline DXF_input_block_mline[100][50];
+extern struct DXF_block_mleaderstyle DXF_input_block_mleaderstyle[100][50];
+extern struct DXF_block_mleader DXF_input_block_mleader[100][50];
+extern struct DXF_block_mtext DXF_input_block_mtext[100][50];
+extern struct DXF_block_oleframe DXF_input_DXF_block_oleframe[100][50];
+extern struct DXF_block_ole2frame DXF_input_block_ole2frame[100][50];
+extern struct DXF_block_point DXF_input_block_point[100][50];
+extern struct DXF_block_polyline DXF_input_block_polyline[100][50];
+extern struct DXF_block_ray DXF_input_block_ray[100][50];
+extern struct DXF_block_region DXF_input_block_region[100][50];
+extern struct DXF_block_section DXF_input_block_section[100][50];
+extern struct DXF_block_seqend DXF_input_block_seqend[100][50];
+extern struct DXF_block_shape DXF_input_block_shape[100][50];
+extern struct DXF_block_solid DXF_input_block_solid[100][50];
+extern struct DXF_block_spline DXF_input_block_spline[100][50];
+extern struct DXF_block_sun DXF_input_block_sun[100][50];
+extern struct DXF_block_surface DXF_input_block_surface[100][50];
+extern struct DXF_block_table DXF_input_block_table[100][50];
+extern struct DXF_block_text DXF_input_block_text[100][50];
+extern struct DXF_block_tolerance DXF_input_block_tolerance[100][50];
+extern struct DXF_block_trace DXF_input_block_trace[100][50];
+extern struct DXF_block_underlay DXF_input_block_underlay[100][50];
+extern struct DXF_block_vertex DXF_input_block_vertex[100][50];
+extern struct DXF_block_viewport DXF_input_block_viewport[100][50];
+extern struct DXF_block_wipeout DXF_input_block_wipeout[100][50];
+extern struct DXF_block_xline DXF_input_block_xline[100][50];
+
+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[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_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_base DXF_main_base[1];
+
+
+
+dxf_split::dxf_split(QWidget *parent) :
+	QMainWindow(parent)
+{
+}
+
+QString dxf_split::dxf_split_section()
+{
+
+	//local variable
+
+	//QProgressBar *progressbar = new QProgressBar(this);
+	//QObject::connect(progressbar,SIGNAL(valueChanged()),this,SLOT(setValue()));
+
+
+	Log_1="Start reading of dxf sections \n";
+
+	header_st1=0;
+	header_st2=0;
+	header_count1=0;
+	header_count2=0;
+
+	classes_st1=0;
+	classes_st2=0;
+	classes_count1=0;
+	classes_count2=0;
+
+	tables_st1=0;
+	tables_st2=0;
+	tables_count1=0;
+	tables_count2=0;
+
+	block_st1=0;
+	block_st2=0;
+	block_count1=0;
+	block_count2=0;
+
+	entities_st1=0;
+	entities_st2=0;
+	entities_count1=0;
+	entities_count2=0;
+
+	objects_st1=0;
+	objects_st2=0;
+	objects_count1=0;
+	objects_count2=0;
+
+	thumbnailimage_st1=0;
+	thumbnailimage_st2=0;
+	thumbnailimage_count1=0;
+	thumbnailimage_count2=0;
+
+	section_count=0;
+
+	block_line_count=0;
+	block_lwpolyline_count=0;
+	block_text_count=0;
+
+	//dxf split input
+
+	dxf_split_count1=DXF_main_base[0].dxf_input.count();
+
+	if (dxf_split_count1>0)
+	{
+		for_count1=0;
+
+		while (for_count1<dxf_split_count1-1)
+		{
+
+			line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+			line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+			if (line1==0)
+			{
+				if (line2.contains("SECTION") and line2.length()==7)
+				{
+
+					for_count1=for_count1+2;
+
+					line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+					line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+	//Section header
+					if (line1==2 and line2.contains("HEADER") and line2.length()==6)
+					{
+
+						for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+						{
+							sw_header[sw_cleaner]=0;
+						}
+
+						Log_1.append("Start reading section : HEADER \n");
+						header_st1=0;
+						header_count1=0;
+
+
+						while (header_st1==0 and header_count1<499)
+						{
+							for_count1=for_count1+2;
+
+							line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+							line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+
+
+							if (line1==9)
+							{
+
+								DXF_input_header[header_count1].dxf_setvar_naam=line2;
+
+								header_st2=0;
+								header_count2=0;
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_header[sw_cleaner]=0;
+								}
+
+								while (header_st2==0)
+								{
+
+									for_count1=for_count1+2;
+
+									line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+									switch (line3)
+									{
+										case 0:
+											header_st2=1;
+											for_count1=for_count1-2;
+											header_count1=header_count1+1;
+											break;
+
+										case 1:
+
+											if(sw_header[1]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_1=line4;
+												sw_header[1]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 2:
+
+											if(sw_header[2]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_2=line4;
+												sw_header[2]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 3:
+
+											if(sw_header[3]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_3=line4;
+												sw_header[3]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 5:
+
+											if(sw_header[5]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_6=line4;
+												sw_header[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 6:
+
+											if(sw_header[6]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_6=line4;
+												sw_header[6]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 7:
+
+											if(sw_header[7]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_7=line4;
+												sw_header[7]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 8:
+
+											if(sw_header[8]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_8=line4;
+												sw_header[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 9:
+
+											header_st2=1;
+											for_count1=for_count1-2;
+											header_count1=header_count1+1;
+											break;
+
+										case 10:
+
+											if(sw_header[10]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_10=line4.toDouble();
+												sw_header[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 20:
+
+											if(sw_header[20]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_20=line4.toDouble();
+												sw_header[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+
+										case 30:
+
+											if(sw_header[30]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_30=line4.toDouble();
+												sw_header[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 40:
+
+											if(sw_header[40]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_40=line4.toDouble();
+												sw_header[40]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 50:
+
+											if(sw_header[50]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_50=line4.toDouble();
+												sw_header[50]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 62:
+
+											if(sw_header[62]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_62=line4.toInt();
+												sw_header[62]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 70:
+
+											if(sw_header[70]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_70=line4.toInt();
+												sw_header[70]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 160:
+
+											if(sw_header[160]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_160=line4.toInt();
+												sw_header[160]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 280:
+
+											if(sw_header[280]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_280=line4.toInt();
+												sw_header[280]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 290:
+
+											if(sw_header[290]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_290=line4;
+												sw_header[290]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 345:
+
+											if(sw_header[345]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_345=line4;
+												sw_header[345]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 346:
+
+											if(sw_header[346]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_346=line4;
+												sw_header[346]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 347:
+
+											if(sw_header[347]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_347=line4;
+												sw_header[347]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 349:
+
+											if(sw_header[349]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_349=line4;
+												sw_header[349]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 370:
+
+											if(sw_header[370]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_370=line4.toInt();
+												sw_header[370]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 380:
+
+											if(sw_header[380]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_380=line4.toInt();
+												sw_header[380]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 390:
+
+											if(sw_header[390]==0)
+											{
+												DXF_input_header[header_count1].dxf_setvar_code_390=line4;
+												sw_header[390]=1;
+											}
+											else
+											{
+												Log_1.append("Find in header section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+
+										default:
+											Log_1.append("Find in header section \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line3));
+											Log_1.append(" : ");
+											Log_1.append(line4);
+											Log_1.append(" ");
+											Log_1.append("\n");
+
+
+									}
+								}
+							}
+
+							if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+							{
+								Log_1.append("End reading section : HEADER \n");
+
+								header_st1=1;
+								section_count=section_count+1;
+
+							}
+							else
+							{
+
+							}
+
+						}
+
+						DXF_main_base[0].dxf_header_item_count=header_count1;
+					}
+
+
+	//section classes
+					if (line1==2 and line2.contains("CLASSES") and line2.length()==7)
+					{
+						for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+						{
+							sw_classes[sw_cleaner]=0;
+						}
+
+						Log_1.append("Start reading section : CLASSES \n");
+						classes_st1=0;
+						classes_count1=0;
+
+						while (classes_st1==0 and classes_count1<9999)
+						{
+							for_count1=for_count1+2;
+
+							line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+							line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+							if (line1==0 and line2=="CLASS" and line2.length()==5)
+							{
+								classes_st2=0;
+								classes_count2=0;
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_classes[sw_cleaner]=0;
+								}
+
+								while (classes_st2==0)
+								{
+									for_count1=for_count1+2;
+
+									line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+									switch (line3)
+									{
+										case 0:
+											classes_st2=1;
+											for_count1=for_count1-2;
+											classes_count1=classes_count1+1;
+											break;
+
+										case 1:
+
+											if(sw_classes[1]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_1=line4;
+												sw_classes[1]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 2:
+
+											if(sw_classes[2]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_2=line4;
+												sw_classes[2]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 3:
+
+											if(sw_classes[3]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_3=line4;
+												sw_classes[3]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 90:
+
+											if(sw_classes[90]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_90=line4.toInt();
+												sw_classes[90]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 91:
+
+											if(sw_classes[91]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_91=line4.toInt();
+												sw_classes[91]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 280:
+
+											if(sw_classes[280]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_280=line4.toInt();
+												sw_classes[280]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 281:
+
+											if(sw_classes[281]==0)
+											{
+												DXF_input_classes[classes_count1].dxf_class_code_281=line4.toInt();
+												sw_classes[281]=1;
+											}
+											else
+											{
+												Log_1.append("Find in classes section code split\n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										default:
+											Log_1.append("Find in classes section \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line3));
+											Log_1.append(" : ");
+											Log_1.append(line4);
+											Log_1.append(" ");
+											Log_1.append("\n");
+
+
+									}
+								}
+
+							}
+
+							if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+							{
+								Log_1.append("End reading section : CLASSES \n");
+								classes_st1=1;
+								for_count1=for_count1-2;
+								section_count=section_count+1;
+							}
+							else
+							{
+
+							}
+
+
+
+
+
+
+						}
+
+						DXF_main_base[0].dxf_classes_item_count=classes_count1;
+					}
+
+	//section tables
+					if (line1==2 and line2.contains("TABLES") and line2.length()==6)
+					{
+						for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+						{
+							sw_tables[sw_cleaner]=0;
+							sw_table_appid[sw_cleaner]=0;
+							sw_table_block_record[sw_cleaner]=0;
+							sw_table_dimstyle[sw_cleaner]=0;
+							sw_table_layer[sw_cleaner]=0;
+							sw_table_ltype[sw_cleaner]=0;
+							sw_table_style[sw_cleaner]=0;
+							sw_table_ucs[sw_cleaner]=0;
+							sw_table_view[sw_cleaner]=0;
+							sw_table_vport[sw_cleaner]=0;
+						}
+
+						Log_1.append("Start reading section : TABLES \n");
+						tables_st1=0;
+						tables_count1=0;
+						//tables_st2=0;
+						//tables_count2=0;
+						tables_st3=0;
+						tables_count3=0;
+						tables_st4=0;
+						tables_count4=0;
+
+
+						while (tables_st1==0 and tables_count1<19)
+						{
+							for_count1=for_count1+2;
+
+							line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+							line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+
+							if (line1==0 and line2=="TABLE" and line2.length()==5)
+							{
+
+								tables_st3=0;
+								tables_count3=0;
+
+								tables_st4=0;
+								tables_count4=0;
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_tables[sw_cleaner]=0;
+									sw_table_appid[sw_cleaner]=0;
+									sw_table_block_record[sw_cleaner]=0;
+									sw_table_dimstyle[sw_cleaner]=0;
+									sw_table_layer[sw_cleaner]=0;
+									sw_table_ltype[sw_cleaner]=0;
+									sw_table_style[sw_cleaner]=0;
+									sw_table_ucs[sw_cleaner]=0;
+									sw_table_view[sw_cleaner]=0;
+									sw_table_vport[sw_cleaner]=0;
+								}
+
+								while (tables_st2==0 and tables_count2<19)
+								{
+
+									for_count1=for_count1+2;
+
+									line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+									if (line1==2 and line2=="APPID" and line2.length()==5)
+									{
+
+										Log_1.append("Start reading table APPID\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_appid[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														DXF_main_base[0].DXF_table_appid_count=tables_count3;
+														Log_1.append("End reading table APPID\n");
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_appid_100=0;
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_appid[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_appid[2]==0)
+																		{
+																			DXF_input_table_appid[tables_count3].dxf_table_appid_code_2=line6;
+																			sw_table_appid[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table APPID code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_appid[5]==0)
+																		{
+																			DXF_input_table_appid[tables_count3].dxf_table_appid_code_5=line6;
+																			sw_table_appid[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table APPID code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_appid[70]==0)
+																		{
+																			DXF_input_table_appid[tables_count3].dxf_table_appid_code_70=line6.toInt();
+																			sw_table_appid[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table APPID code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_appid_100>1)
+																		{
+																			Log_1.append("Find in table APPID code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_appid[tables_count3].dxf_table_appid_code_100[count_table_appid_100]=line6;
+																			count_table_appid_100=count_table_appid_100+1;
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_appid[330]==0)
+																		{
+																			DXF_input_table_appid[tables_count3].dxf_table_appid_code_330=line6;
+																			sw_table_appid[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table APPID code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																default:
+																	Log_1.append("Find in table section APPID 1 \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'APPID' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'APPID' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables 'APPID' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'APPID' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												default:
+													Log_1.append("Find in tables section APPID 2 \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+
+									if (line1==2 and line2=="BLOCK_RECORD" and line2.length()==12)
+									{
+
+										Log_1.append("Start reading table BLOCK_RECORD\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_block_record[sw_cleaner]=0;
+
+										}
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														DXF_main_base[0].DXF_table_block_record_count=tables_count3;
+														Log_1.append("End reading table BLOCK_RECORD\n");
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_block_record_100=0;
+															count_table_block_record_102=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_block_record[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<499)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_block_record[2]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_2=line6;
+																			sw_table_block_record[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_block_record[5]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_5=line6;
+																			sw_table_block_record[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_block_record[70]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_70=line6.toInt();
+																			sw_table_block_record[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_block_record_100>1)
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_100[count_table_block_record_100]=line6;
+																			count_table_block_record_100=count_table_block_record_100+1;
+																		}
+																		break;
+
+																	case 102:
+
+																		if (count_table_block_record_102>1)
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_102[count_table_block_record_102]=line6;
+																			count_table_block_record_102=count_table_block_record_102+1;
+																		}
+																		break;
+
+																	case 280 :
+
+																		if(sw_table_block_record[280]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_280=line6.toInt();
+																			sw_table_block_record[280]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 281 :
+
+																		if(sw_table_block_record[281]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_281=line6.toInt();
+																			sw_table_block_record[281]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_block_record[330]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_330=line6;
+																			sw_table_block_record[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 331 :
+
+																		if(sw_table_block_record[331]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_331=line6;
+																			sw_table_block_record[331]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 340 :
+
+																		if(sw_table_block_record[340]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_340=line6;
+																			sw_table_block_record[340]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 360 :
+
+																		if(sw_table_block_record[360]==0)
+																		{
+																			DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_360=line6;
+																			sw_table_block_record[360]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table BLOCK_RECORD code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																default:
+																	Log_1.append("Find in table section BLOCK_RECORD 1 \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'BLOCK_RECORD' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'BLOCK_RECORD' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables 'BLOCK_RECORD' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'BLOCK_RECORD' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												default:
+													Log_1.append("Find in tables section BLOCK_RECORD 2 \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append("\n");
+											}
+										}
+									}
+
+									if (line1==2 and line2=="DIMSTYLE" and line2.length()==8)
+									{
+
+										Log_1.append("Start reading table DIMSTYLE\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_dimstyle[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+										count_tables_102=0;
+										count_tables_340=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														DXF_main_base[0].DXF_table_dimstyle_count=tables_count3;
+														Log_1.append("End reading table DIMSTYLE\n");
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_dimstyle_100=0;
+															count_table_dimstyle_1001=0;
+															count_table_dimstyle_1002=0;
+															count_table_dimstyle_1070=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_dimstyle[sw_cleaner]=0;
+															}
+
+
+															while (tables_st4==0 and tables_count4<499)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_dimstyle[2]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_2=line6;
+																			sw_table_dimstyle[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 3:
+
+																		if(sw_table_dimstyle[3]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_3=line6;
+																			sw_table_dimstyle[3]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 4:
+
+																		if(sw_table_dimstyle[4]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_4=line6;
+																			sw_table_dimstyle[4]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_dimstyle[5]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_5=line6;
+																			sw_table_dimstyle[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 6:
+
+																		if(sw_table_dimstyle[6]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_6=line6;
+																			sw_table_dimstyle[6]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 7:
+
+																		if(sw_table_dimstyle[7]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_7=line6;
+																			sw_table_dimstyle[7]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 40 :
+
+																		if(sw_table_dimstyle[40]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_40=line6.toDouble();
+																			sw_table_dimstyle[40]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 41 :
+
+																		if(sw_table_dimstyle[41]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_41=line6.toDouble();
+																			sw_table_dimstyle[41]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 42 :
+
+																		if(sw_table_dimstyle[42]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_42=line6.toDouble();
+																			sw_table_dimstyle[42]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 43 :
+
+																		if(sw_table_dimstyle[43]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_43=line6.toDouble();
+																			sw_table_dimstyle[43]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 44 :
+
+																		if(sw_table_dimstyle[44]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_44=line6.toDouble();
+																			sw_table_dimstyle[44]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 45 :
+
+																		if(sw_table_dimstyle[45]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_45=line6.toDouble();
+																			sw_table_dimstyle[45]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 46 :
+
+																		if(sw_table_dimstyle[46]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_46=line6.toDouble();
+																			sw_table_dimstyle[46]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 47 :
+
+																		if(sw_table_dimstyle[47]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_47=line6.toDouble();
+																			sw_table_dimstyle[47]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 48 :
+
+																		if(sw_table_dimstyle[48]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_48=line6.toDouble();
+																			sw_table_dimstyle[48]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_dimstyle[70]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_70=line6.toInt();
+																			sw_table_dimstyle[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 71 :
+
+																		if(sw_table_dimstyle[71]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_71=line6.toInt();
+																			sw_table_dimstyle[71]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 72 :
+
+																		if(sw_table_dimstyle[72]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_72=line6.toInt();
+																			sw_table_dimstyle[72]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+
+																	case 73 :
+
+																		if(sw_table_dimstyle[73]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_73=line6.toInt();
+																			sw_table_dimstyle[73]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 74 :
+
+																		if(sw_table_dimstyle[74]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_74=line6.toInt();
+																			sw_table_dimstyle[74]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 75 :
+
+																		if(sw_table_dimstyle[75]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_75=line6.toInt();
+																			sw_table_dimstyle[75]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 76 :
+
+																		if(sw_table_dimstyle[76]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_76=line6.toInt();
+																			sw_table_dimstyle[76]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+
+																	case 77 :
+
+																		if(sw_table_dimstyle[77]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_77=line6.toInt();
+																			sw_table_dimstyle[77]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 78 :
+
+																		if(sw_table_dimstyle[78]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_78=line6.toInt();
+																			sw_table_dimstyle[78]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_dimstyle_100>1)
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_100[count_table_dimstyle_100]=line6;
+																			count_table_dimstyle_100=count_table_dimstyle_100+1;
+																		}
+																		break;
+
+																	case 105 :
+
+																		if(sw_table_dimstyle[105]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_105=line6;
+																			sw_table_dimstyle[105]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 140 :
+
+																		if(sw_table_dimstyle[140]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_140=line6.toDouble();
+																			sw_table_dimstyle[140]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 141 :
+
+																		if(sw_table_dimstyle[141]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_141=line6.toDouble();
+																			sw_table_dimstyle[141]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 142 :
+
+																		if(sw_table_dimstyle[142]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_142=line6.toDouble();
+																			sw_table_dimstyle[142]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 143 :
+
+																		if(sw_table_dimstyle[143]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_143=line6.toDouble();
+																			sw_table_dimstyle[143]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 144 :
+
+																		if(sw_table_dimstyle[144]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_144=line6.toDouble();
+																			sw_table_dimstyle[144]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 145 :
+
+																		if(sw_table_dimstyle[145]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_145=line6.toDouble();
+																			sw_table_dimstyle[145]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 146 :
+
+																		if(sw_table_dimstyle[146]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_146=line6.toDouble();
+																			sw_table_dimstyle[146]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 147 :
+
+																		if(sw_table_dimstyle[147]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_147=line6.toDouble();
+																			sw_table_dimstyle[147]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 170 :
+
+																		if(sw_table_dimstyle[170]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_170=line6.toInt();
+																			sw_table_dimstyle[170]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 171 :
+
+																		if(sw_table_dimstyle[171]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_171=line6.toInt();
+																			sw_table_dimstyle[171]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 172 :
+
+																		if(sw_table_dimstyle[172]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_172=line6.toInt();
+																			sw_table_dimstyle[172]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 173 :
+
+																		if(sw_table_dimstyle[173]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_173=line6.toInt();
+																			sw_table_dimstyle[173]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 174 :
+
+																		if(sw_table_dimstyle[174]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_174=line6.toInt();
+																			sw_table_dimstyle[174]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 175 :
+
+																		if(sw_table_dimstyle[175]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_175=line6.toInt();
+																			sw_table_dimstyle[175]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 176 :
+
+																		if(sw_table_dimstyle[176]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_176=line6.toInt();
+																			sw_table_dimstyle[176]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 177 :
+
+																		if(sw_table_dimstyle[177]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_177=line6.toInt();
+																			sw_table_dimstyle[177]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 178 :
+
+																		if(sw_table_dimstyle[178]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_178=line6.toInt();
+																			sw_table_dimstyle[178]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 270 :
+
+																		if(sw_table_dimstyle[270]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_270=line6.toInt();
+																			sw_table_dimstyle[270]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 271 :
+
+																		if(sw_table_dimstyle[271]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_271=line6.toInt();
+																			sw_table_dimstyle[271]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 272 :
+
+																		if(sw_table_dimstyle[272]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_272=line6.toInt();
+																			sw_table_dimstyle[272]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 273 :
+
+																		if(sw_table_dimstyle[273]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_273=line6.toInt();
+																			sw_table_dimstyle[273]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 274 :
+
+																		if(sw_table_dimstyle[274]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_274=line6.toInt();
+																			sw_table_dimstyle[274]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 275 :
+
+																		if(sw_table_dimstyle[275]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_275=line6.toInt();
+																			sw_table_dimstyle[275]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 278 :
+
+																		if(sw_table_dimstyle[278]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_171=line6.toInt();
+																			sw_table_dimstyle[278]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 280 :
+
+																		if(sw_table_dimstyle[280]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_280=line6.toInt();
+																			sw_table_dimstyle[280]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 281 :
+
+																		if(sw_table_dimstyle[281]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_281=line6.toInt();
+																			sw_table_dimstyle[281]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 282 :
+
+																		if(sw_table_dimstyle[282]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_282=line6.toInt();
+																			sw_table_dimstyle[282]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 283 :
+
+																		if(sw_table_dimstyle[283]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_283=line6.toInt();
+																			sw_table_dimstyle[283]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 284 :
+
+																		if(sw_table_dimstyle[284]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_284=line6.toInt();
+																			sw_table_dimstyle[284]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 285 :
+
+																		if(sw_table_dimstyle[285]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_285=line6.toInt();
+																			sw_table_dimstyle[285]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 286 :
+
+																		if(sw_table_dimstyle[286]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_286=line6.toInt();
+																			sw_table_dimstyle[286]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 287 :
+
+																		if(sw_table_dimstyle[287]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_287=line6.toInt();
+																			sw_table_dimstyle[287]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 288 :
+
+																		if(sw_table_dimstyle[288]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_288=line6.toInt();
+																			sw_table_dimstyle[288]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_dimstyle[330]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_330=line6;
+																			sw_table_dimstyle[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 340 :
+
+																		if(sw_table_dimstyle[340]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_340=line6;
+																			sw_table_dimstyle[340]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1000 :
+
+																		if(sw_table_dimstyle[1000]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_1000=line6;
+																			sw_table_dimstyle[1000]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1001:
+
+																		if (count_table_dimstyle_1001>2)
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_1001[count_table_dimstyle_1001]=line6;
+																			count_table_dimstyle_1001=count_table_dimstyle_1001+1;
+																		}
+																		break;
+
+																	case 1002:
+
+																		if (count_table_dimstyle_1002>1)
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_1002[count_table_dimstyle_1002]=line6;
+																			count_table_dimstyle_1002=count_table_dimstyle_1002+1;
+																		}
+																		break;
+
+																	case 1040 :
+
+																		if(sw_table_dimstyle[1040]==0)
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_1040=line6.toDouble();
+																			sw_table_dimstyle[1040]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1070:
+
+																		if (count_table_dimstyle_1070>4)
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_dimstyle[tables_count3].dxf_table_dimstyle_1070[count_table_dimstyle_1070]=line6.toInt();
+																			count_table_dimstyle_1070=count_table_dimstyle_1070+1;
+																		}
+																		break;
+
+																default:
+																	Log_1.append("Find in TABLE section DIMSTYLE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_340>1)
+													{
+														Log_1.append("Find in tables 'DIMSTYLE' code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_340]=line4;
+														count_tables_340=count_tables_340+1;
+													}
+													break;
+
+												default:
+													Log_1.append("Find in TABLES section DIMSTYLE \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+									if (line1==2 and line2=="LAYER" and line2.length()==5)
+									{
+
+										Log_1.append("Start reading table LAYER\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_layer[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+										count_tables_102=0;
+										count_tables_340=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+
+														tables_st3=1;
+
+														tables_count1=tables_count1+1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														Log_1.append("End reading table LAYER\n");
+
+														DXF_main_base[0].DXF_table_layer_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_layer_100=0;
+															count_table_layer_102=0;
+															count_table_layer_1000=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_layer[sw_cleaner]=0;
+															}
+
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_layer[2]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_2=line6;
+																			sw_table_layer[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_layer[5]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_5=line6;
+																			sw_table_layer[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 6 :
+
+																		if(sw_table_layer[6]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_6=line6;
+																			sw_table_layer[6]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 62 :
+
+																		if(sw_table_layer[62]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_62=line6.toInt();
+																			sw_table_layer[62]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_layer[70]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_70=line6.toInt();
+																			sw_table_layer[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_layer_100>1)
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_100[count_table_layer_100]=line6;
+																			count_table_layer_100=count_table_layer_100+1;
+																		}
+																		break;
+
+																	case 102:
+
+																		if (count_table_layer_102>1)
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_102[count_table_layer_102]=line6;
+																			count_table_layer_102=count_table_layer_102+1;
+																		}
+																		break;
+
+																	case 290 :
+
+																		if(sw_table_layer[290]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_70=line6.toInt();
+																			sw_table_layer[290]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_layer[330]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_330=line6;
+																			sw_table_layer[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 347 :
+
+																		if(sw_table_layer[347]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_347=line6;
+																			sw_table_layer[347]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 348 :
+
+																		if(sw_table_layer[348]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_348=line6;
+																			sw_table_layer[348]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 360 :
+
+																		if(sw_table_layer[360]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_360=line6;
+																			sw_table_layer[360]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 370 :
+
+																		if(sw_table_layer[370]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_370=line6.toInt();
+																			sw_table_layer[370]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 390 :
+
+																		if(sw_table_layer[390]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_390=line6;
+																			sw_table_layer[390]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1000:
+
+																		if (count_table_layer_1000>1)
+																		{
+																			Log_1.append("Find in table DIMSTYLE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_1000[count_table_layer_1000]=line6;
+																			count_table_layer_1000=count_table_layer_1000+1;
+																		}
+																		break;
+
+																	case 1001 :
+
+																		if(sw_table_layer[1001]==0)
+																		{
+																			DXF_input_table_layer[tables_count3].dxf_table_layer_code_1001=line6;
+																			sw_table_layer[1001]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LAYER code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+
+																default:
+																	Log_1.append("FIND in table section LAYER 1 \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 102:
+
+													if (count_tables_102>1)
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_102[count_tables_102]=line4;
+														count_tables_102=count_tables_102+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_340>1)
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_340]=line4;
+														count_tables_340=count_tables_340+1;
+													}
+													break;
+
+												case 360:
+
+													if(sw_tables[360]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_360=line4;
+														sw_tables[360]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LAYER code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												default:
+													Log_1.append("Error in tables section LAYER 2 \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+									if (line1==2 and line2=="LTYPE" and line2.length()==5)
+									{
+
+										Log_1.append("Start reading table LTYPE\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_ltype[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														Log_1.append("End reading table LTYPE\n");
+
+														DXF_main_base[0].DXF_table_ltype_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_ltype_49=0;
+															count_table_ltype_74=0;
+															count_table_ltype_100=0;
+
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_ltype[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_ltype[2]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_2=line6;
+																			sw_table_ltype[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 3:
+
+																		if(sw_table_ltype[3]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_3=line6;
+																			sw_table_ltype[3]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_ltype[5]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_5=line6;
+																			sw_table_ltype[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 40 :
+
+																		if(sw_table_ltype[40]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_40=line6.toDouble();
+																			sw_table_ltype[40]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 49 :
+
+																		if (count_table_ltype_49>5)
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_100[count_table_ltype_49]=line6.toDouble();
+																			count_table_ltype_49=count_table_ltype_49+1;
+																		}
+
+
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_ltype[70]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_70=line6.toInt();
+																			sw_table_ltype[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 72 :
+
+																		if(sw_table_ltype[72]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_72=line6.toInt();
+																			sw_table_ltype[72]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 73 :
+
+																		if(sw_table_ltype[73]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_73=line6.toInt();
+																			sw_table_ltype[73]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 74 :
+
+																		if (count_table_ltype_74>5)
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_100[count_table_ltype_74]=line6.toInt();
+																			count_table_ltype_74=count_table_ltype_74+1;
+																		}
+
+
+																		break;
+
+																	case 100:
+
+																		if (count_table_ltype_100>1)
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_100[count_table_ltype_100]=line6;
+																			count_table_ltype_100=count_table_ltype_100+1;
+																		}
+																		break;
+
+																	case 330 :
+																		if(sw_table_ltype[330]==0)
+																		{
+																			DXF_input_table_ltype[tables_count3].dxf_table_ltype_code_330=line6;
+																			sw_table_ltype[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table LTYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																default:
+																	Log_1.append("FIND in table section LTYPE 1 \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_340>1)
+													{
+														Log_1.append("Find in tables LTYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_340]=line4;
+														count_tables_340=count_tables_340+1;
+													}
+													break;
+
+												default:
+													Log_1.append("Find in TABLES section LTYPE 2 \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+									if (line1==2 and line2=="STYLE" and line2.length()==5)
+									{
+
+										Log_1.append("Start reading table STYLE\n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_style[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														Log_1.append("End reading table STYLE\n");
+
+														DXF_main_base[0].DXF_table_style_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_style_100=0;
+															count_table_style_1000=0;
+															count_table_style_1001=0;
+															count_table_style_1002=0;
+															count_table_style_1070=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_style[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2:
+
+																		if(sw_table_style[2]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_2=line6;
+																			sw_table_style[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 3:
+
+																		if(sw_table_style[3]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_3=line6;
+																			sw_table_style[3]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 4:
+
+																		if(sw_table_style[4]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_4=line6;
+																			sw_table_style[4]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_style[5]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_5=line6;
+																			sw_table_style[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 40 :
+
+																		if(sw_table_style[40]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_40=line6.toDouble();
+																			sw_table_style[40]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 41 :
+
+																		if(sw_table_style[41]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_41=line6.toDouble();
+																			sw_table_style[41]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 42 :
+
+																		if(sw_table_style[42]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_42=line6.toDouble();
+																			sw_table_style[42]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 50 :
+																		if(sw_table_style[50]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_50=line6.toDouble();
+																			sw_table_style[50]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+																		if(sw_table_style[70]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_70=line6.toInt();
+																			sw_table_style[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 71 :
+
+																		if(sw_table_style[71]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_71=line6.toInt();
+																			sw_table_style[71]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_style_100>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_100[count_table_style_100]=line6;
+																			count_table_style_100=count_table_style_100+1;
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_style[330]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_330=line6;
+																			sw_table_style[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1000:
+
+																		if (count_table_style_1000>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_1000[count_table_style_1000]=line6;
+																			count_table_style_1000=count_table_style_1000+1;
+																		}
+																		break;
+
+																	case 1001:
+
+																		if (count_table_style_1001>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_1001[count_table_style_1001]=line6;
+																			count_table_style_1001=count_table_style_1001+1;
+																		}
+																		break;
+
+																	case 1002:
+
+																		if (count_table_style_1002>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_1002[count_table_style_1002]=line6;
+																			count_table_style_100=count_table_style_1002+1;
+																		}
+																		break;
+
+																	case 1070:
+
+																		if (count_table_style_1070>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_1070[count_table_style_1070]=line6.toInt();
+																			count_table_style_1070=count_table_style_1070+1;
+																		}
+																		break;
+
+																	case 1071 :
+
+																		if(sw_table_style[1071]==0)
+																		{
+																			DXF_input_table_style[tables_count3].dxf_table_style_code_1071=line6.toInt();
+																			sw_table_style[1071]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																default:
+																	Log_1.append("Find in table section TYPE code split\n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables TYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables TYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables TYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables STYLE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables TYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables TYPE code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												default:
+													Log_1.append("Find in TABLES section TYPE \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+
+									if (line1==2 and line2=="UCS" and line2.length()==3)
+									{
+
+										Log_1.append("Start reading table UCS \n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_ucs[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														Log_1.append("End reading table UCS \n");
+
+														DXF_main_base[0].DXF_table_ucs_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_ucs_100=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_ucs[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+
+
+																	case 5 :
+
+																		if(sw_table_ucs[5]==0)
+																		{
+																			DXF_input_table_ucs[tables_count3].dxf_table_ucs_code_5=line6;
+																			sw_table_ucs[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 70 :
+
+																		if(sw_table_ucs[70]==0)
+																		{
+																			DXF_input_table_ucs[tables_count3].dxf_table_ucs_code_70=line6.toInt();
+																			sw_table_ucs[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_ucs_100>1)
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_ucs[tables_count3].dxf_table_ucs_code_100[count_table_ucs_100]=line6;
+																			count_table_ucs_100=count_table_ucs_100+1;
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_ucs[330]==0)
+																		{
+																			DXF_input_table_ucs[tables_count3].dxf_table_ucs_code_330=line6;
+																			sw_table_ucs[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table TYPE code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																default:
+																	Log_1.append("FIND in table section UCS \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables UCS code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												default:
+													Log_1.append("Find in TABLES section UCS \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+
+									if (line1==2 and line2=="VIEW" and line2.length()==4)
+									{
+
+										Log_1.append("Start reading table VIEW \n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_view[sw_cleaner]=0;
+
+										}
+
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														Log_1.append("End reading table VIEW \n");
+
+														DXF_main_base[0].DXF_table_view_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_view_100=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_view[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+
+																	case 2 :
+
+																		if(sw_table_view[2]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_2=line6;
+																			sw_table_view[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_view[5]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_5=line6;
+																			sw_table_view[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 11 :
+
+																		if(sw_table_view[11]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_11=line6.toDouble();
+																			sw_table_view[11]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 12 :
+
+																		if(sw_table_view[12]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_12=line6.toDouble();
+																			sw_table_view[12]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 13 :
+
+																		if(sw_table_view[13]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_13=line6.toDouble();
+																			sw_table_view[13]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 14 :
+
+																		if(sw_table_view[14]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_14=line6.toDouble();
+																			sw_table_view[14]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 15 :
+
+																		if(sw_table_view[15]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_15=line6.toDouble();
+																			sw_table_view[15]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 16 :
+
+																		if(sw_table_view[16]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_16=line6.toDouble();
+																			sw_table_view[16]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 17 :
+
+																		if(sw_table_view[17]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_17=line6.toDouble();
+																			sw_table_view[17]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 21 :
+
+																		if(sw_table_view[21]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_11=line6.toDouble();
+																			sw_table_view[21]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 22 :
+
+																		if(sw_table_view[22]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_12=line6.toDouble();
+																			sw_table_view[22]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 23 :
+
+																		if(sw_table_view[23]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_13=line6.toDouble();
+																			sw_table_view[23]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 24 :
+
+																		if(sw_table_view[24]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_14=line6.toDouble();
+																			sw_table_view[24]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 25 :
+
+																		if(sw_table_view[25]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_15=line6.toDouble();
+																			sw_table_view[25]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 26 :
+
+																		if(sw_table_view[26]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_16=line6.toDouble();
+																			sw_table_view[26]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 27 :
+
+																		if(sw_table_view[27]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_17=line6.toDouble();
+																			sw_table_view[27]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 70 :
+
+																		if(sw_table_view[70]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_70=line6.toInt();
+																			sw_table_view[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_view_100>1)
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_100[count_table_view_100]=line6;
+																			count_table_view_100=count_table_view_100+1;
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_view[330]==0)
+																		{
+																			DXF_input_table_view[tables_count3].dxf_table_view_code_330=line6;
+																			sw_table_view[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VIEW code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																default:
+																	Log_1.append("Error in table section VIEW 1 \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_340>1)
+													{
+														Log_1.append("Find in tables VIEW code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_340]=line4;
+														count_tables_340=count_tables_340+1;
+													}
+													break;
+
+												default:
+													Log_1.append("FIND in TABLES section VIEW \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+
+
+									if (line1==2 and line2=="VPORT" and line2.length()==5)
+									{
+
+										Log_1.append("Start reading table VPORT \n");
+
+										for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+										{
+											sw_tables[sw_cleaner]=0;
+											sw_table_vport[sw_cleaner]=0;
+
+										}
+
+										tables_st3=0;
+										tables_count3=0;
+										count_tables_100=0;
+										count_tables_102=0;
+
+										while (tables_st3==0 and tables_count3<19)
+										{
+											for_count1=for_count1+2;
+
+											line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+											line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+											switch (line3)
+											{
+												case 0:
+
+													if (line4=="ENDTAB" and line4.length()==6)
+													{
+														//tables_st2=1;
+														tables_st3=1;
+
+														for_count1=for_count1-2;
+														tables_count2=tables_count2+1;
+
+														tables_count1=tables_count1+1;
+
+														Log_1.append("End reading table VPORT \n");
+
+														DXF_main_base[0].DXF_table_vport_count=tables_count3;
+
+													}
+													else
+													{
+														if(line4=="ENDSEC" and line4.length()==6)
+														{
+															tables_st2=1;
+
+															for_count1=for_count1-2;
+														}
+														else
+														{
+															tables_st4=0;
+															tables_count4=0;
+															count_table_vport_100=0;
+															count_table_vport_102=0;
+
+															for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+															{
+																sw_table_vport[sw_cleaner]=0;
+															}
+
+															while (tables_st4==0 and tables_count4<99)
+															{
+																for_count1=for_count1+2;
+
+																line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+																line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+																switch (line5)
+																{
+																	case 0:
+
+																		tables_st4=1;
+																		for_count1=for_count1-2;
+																		tables_count4=0;
+																		tables_count3=tables_count3+1;
+
+
+																	break;
+
+																	case 2 :
+
+																		if(sw_table_vport[2]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_2=line6;
+																			sw_table_vport[2]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 5 :
+
+																		if(sw_table_vport[5]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_5=line6;
+																			sw_table_vport[5]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 10 :
+
+																		if(sw_table_vport[10]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_10=line6.toDouble();
+																			sw_table_vport[10]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 11 :
+
+																		if(sw_table_vport[11]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_11=line6.toDouble();
+																			sw_table_vport[11]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 12 :
+
+																		if(sw_table_vport[12]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_12=line6.toDouble();
+																			sw_table_vport[12]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 13 :
+
+																		if(sw_table_vport[13]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_13=line6.toDouble();
+																			sw_table_vport[13]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 14 :
+
+																		if(sw_table_vport[14]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_14=line6.toDouble();
+																			sw_table_vport[14]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 15 :
+
+																		if(sw_table_vport[15]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_15=line6.toDouble();
+																			sw_table_vport[15]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 16 :
+
+																		if(sw_table_vport[16]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_16=line6.toDouble();
+																			sw_table_vport[16]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 17 :
+
+																		if(sw_table_vport[17]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_17=line6.toDouble();
+																			sw_table_vport[17]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 20 :
+
+																		if(sw_table_vport[20]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_20=line6.toDouble();
+																			sw_table_vport[20]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 21 :
+
+																		if(sw_table_vport[21]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_21=line6.toDouble();
+																			sw_table_vport[21]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 22 :
+
+																		if(sw_table_vport[22]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_22=line6.toDouble();
+																			sw_table_vport[22]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 23 :
+
+																		if(sw_table_vport[23]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_23=line6.toDouble();
+																			sw_table_vport[23]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 24 :
+
+																		if(sw_table_vport[24]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_24=line6.toDouble();
+																			sw_table_vport[24]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 25 :
+
+																		if(sw_table_vport[25]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_25=line6.toDouble();
+																			sw_table_vport[25]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 26 :
+
+																		if(sw_table_vport[26]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_26=line6.toDouble();
+																			sw_table_vport[26]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 27 :
+
+																		if(sw_table_vport[27]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_27=line6.toDouble();
+																			sw_table_vport[27]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+
+																	case 30 :
+
+																		if(sw_table_vport[30]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_30=line6.toDouble();
+																			sw_table_vport[30]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+																	case 31 :
+
+																		if(sw_table_vport[31]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_31=line6.toDouble();
+																			sw_table_vport[31]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 32 :
+
+																		if(sw_table_vport[32]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_32=line6.toDouble();
+																			sw_table_vport[32]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 33 :
+
+																		if(sw_table_vport[33]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_33=line6.toDouble();
+																			sw_table_vport[33]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 34 :
+
+																		if(sw_table_vport[34]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_34=line6.toDouble();
+																			sw_table_vport[34]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 35 :
+																		if(sw_table_vport[35]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_35=line6.toDouble();
+																			sw_table_vport[35]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 36 :
+
+																		if(sw_table_vport[36]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_36=line6.toDouble();
+																			sw_table_vport[36]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 37 :
+
+																		if(sw_table_vport[37]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_37=line6.toDouble();
+																			sw_table_vport[37]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 40 :
+
+																		if(sw_table_vport[40]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_40=line6.toDouble();
+																			sw_table_vport[40]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 41 :
+
+																		if(sw_table_vport[41]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_41=line6.toDouble();
+																			sw_table_vport[41]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 42 :
+
+																		if(sw_table_vport[42]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_42=line6.toDouble();
+																			sw_table_vport[42]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 43 :
+
+																		if(sw_table_vport[43]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_44=line6.toDouble();
+																			sw_table_vport[43]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 44 :
+
+																		if(sw_table_vport[44]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_33=line6.toDouble();
+																			sw_table_vport[44]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 50 :
+																		if(sw_table_vport[50]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_50=line6.toDouble();
+																			sw_table_vport[50]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 51 :
+
+																		if(sw_table_vport[51]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_51=line6.toDouble();
+																			sw_table_vport[51]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 60:
+
+																		if(sw_table_vport[60]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_60=line6.toInt();
+																			sw_table_vport[60]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 61:
+
+																		if(sw_table_vport[61]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_61=line6.toInt();
+																			sw_table_vport[61]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 63:
+
+																		if(sw_table_vport[63]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_63=line6.toInt();
+																			sw_table_vport[63]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 65:
+
+																		if(sw_table_vport[65]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_65=line6.toInt();
+																			sw_table_vport[65]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 70 :
+
+																		if(sw_table_vport[70]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_70=line6.toInt();
+																			sw_table_vport[70]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 71 :
+
+																		if(sw_table_vport[71]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_71=line6.toInt();
+																			sw_table_vport[71]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 72 :
+
+																		if(sw_table_vport[72]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_72=line6.toInt();
+																			sw_table_vport[72]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 73 :
+
+																		if(sw_table_vport[73]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_73=line6.toInt();
+																			sw_table_vport[73]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 74 :
+
+																		if(sw_table_vport[74]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_74=line6.toInt();
+																			sw_table_vport[74]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 75 :
+
+																		if(sw_table_vport[75]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_75=line6.toInt();
+																			sw_table_vport[75]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 76 :
+
+																		if(sw_table_vport[76]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_76=line6.toInt();
+																			sw_table_vport[76]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 77 :
+
+																		if(sw_table_vport[77]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_77=line6.toInt();
+																			sw_table_vport[77]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 78 :
+
+																		if(sw_table_vport[78]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_78=line6.toInt();
+																			sw_table_vport[78]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 79 :
+
+																		if(sw_table_vport[79]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_79=line6.toInt();
+																			sw_table_vport[79]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 100:
+
+																		if (count_table_vport_100>1)
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		else
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_100[count_table_vport_100]=line6;
+																			count_table_vport_100=count_table_vport_100+1;
+																		}
+																		break;
+
+																	case 110 :
+
+																		if(sw_table_vport[110]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_110=line6.toDouble();
+																			sw_table_vport[110]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 111 :
+
+																		if(sw_table_vport[111]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_111=line6.toDouble();
+																			sw_table_vport[111]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 112 :
+
+																		if(sw_table_vport[112]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_112=line6.toDouble();
+																			sw_table_vport[112]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 120 :
+
+																		if(sw_table_vport[120]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_120=line6.toDouble();
+																			sw_table_vport[120]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 121 :
+
+																		if(sw_table_vport[121]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_121=line6.toDouble();
+																			sw_table_vport[121]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 122 :
+
+																		if(sw_table_vport[122]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_122=line6.toDouble();
+																			sw_table_vport[122]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 130 :
+
+																		if(sw_table_vport[130]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_130=line6.toDouble();
+																			sw_table_vport[130]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 131 :
+
+																		if(sw_table_vport[131]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_131=line6.toDouble();
+																			sw_table_vport[131]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 132 :
+
+																		if(sw_table_vport[132]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_132=line6.toDouble();
+																			sw_table_vport[132]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 141 :
+
+																		if(sw_table_vport[141]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_141=line6.toDouble();
+																			sw_table_vport[141]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 142 :
+
+																		if(sw_table_vport[142]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_142=line6.toDouble();
+																			sw_table_vport[142]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 146 :
+
+																		if(sw_table_vport[146]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_146=line6.toDouble();
+																			sw_table_vport[146]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 281 :
+
+																		if(sw_table_vport[281]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_281=line6.toInt();
+																			sw_table_vport[281]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 282 :
+
+																		if(sw_table_vport[282]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_282=line6.toInt();
+																			sw_table_vport[282]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 292 :
+
+																		if(sw_table_vport[292]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_77=line6.toInt();
+																			sw_table_vport[292]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 330 :
+
+																		if(sw_table_vport[330]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_330=line6;
+																			sw_table_vport[330]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 348 :
+
+																		if(sw_table_vport[348]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_330=line6;
+																			sw_table_vport[348]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 421 :
+
+																		if(sw_table_vport[421]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_421=line6.toInt();
+																			sw_table_vport[421]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1001 :
+
+																		if(sw_table_vport[1001]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_1001=line6;
+																			sw_table_vport[1001]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+																	case 1070 :
+
+																		if(sw_table_vport[1070]==0)
+																		{
+																			DXF_input_table_vport[tables_count3].dxf_table_vport_code_1070=line6.toInt();
+																			sw_table_vport[1070]=1;
+																		}
+																		else
+																		{
+																			Log_1.append("Find in table VPORT code split\n");
+																			Log_1.append("Line :" );
+																			Log_1.append(QString::number( for_count1));
+																			Log_1.append(" ");
+																			Log_1.append("Code :" );
+																			Log_1.append(QString::number( line5));
+																			Log_1.append(" : ");
+																			Log_1.append(line6);
+																			Log_1.append(" ");
+																			Log_1.append("\n");
+																		}
+																		break;
+
+
+
+																default:
+																	Log_1.append("Find in table section VPORT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line5));
+																	Log_1.append(" : ");
+																	Log_1.append(line6);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+
+															}
+														}
+													}
+
+													break;
+
+												case 5:
+
+													if(sw_tables[5]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_5=line4;
+														sw_tables[5]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 70:
+
+													if(sw_tables[70]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_70=line4.toInt();
+														sw_tables[70]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 71:
+
+													if(sw_tables[71]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_71=line4.toInt();
+														sw_tables[71]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 100:
+
+													if (count_tables_100>1)
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_100[count_tables_100]=line4;
+														count_tables_100=count_tables_100+1;
+													}
+													break;
+
+												case 102:
+
+													if (count_tables_102>1)
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_102[count_tables_102]=line4;
+														count_tables_102=count_tables_102+1;
+													}
+													break;
+
+												case 330:
+
+													if(sw_tables[330]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[330]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												case 340:
+
+													if (count_tables_340>1)
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													else
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_340[count_tables_340]=line4;
+														count_tables_340=count_tables_340+1;
+													}
+													break;
+
+												case 360:
+
+													if(sw_tables[360]==0)
+													{
+														DXF_input_tables[tables_count2].dxf_tables_code_330=line4;
+														sw_tables[360]=1;
+													}
+													else
+													{
+														Log_1.append("Find in tables VPORT code split\n");
+														Log_1.append("Line :" );
+														Log_1.append(QString::number( for_count1));
+														Log_1.append(" ");
+														Log_1.append("Code :" );
+														Log_1.append(QString::number( line3));
+														Log_1.append(" : ");
+														Log_1.append(line4);
+														Log_1.append(" ");
+														Log_1.append("\n");
+													}
+													break;
+
+												default:
+													Log_1.append("Find in TABLES section VPORT \n");
+													Log_1.append("Line :" );
+													Log_1.append(QString::number( for_count1));
+													Log_1.append(" ");
+													Log_1.append("Code :" );
+													Log_1.append(QString::number( line3));
+													Log_1.append(" : ");
+													Log_1.append(line4);
+													Log_1.append(" ");
+													Log_1.append("\n");
+											}
+										}
+									}
+
+
+
+									if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+									{
+										Log_1.append("End reading section : TABLES \n");
+										tables_st2=1;
+										for_count1=for_count1-2;
+									}
+									else
+									{
+
+									}
+
+								}
+							}
+
+
+							if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+							{
+								Log_1.append("End section TABLES \n");
+								tables_st1=1;
+								for_count1=for_count1-2;
+								section_count=section_count+1;
+
+							}
+							else
+							{
+								//for_count1=for_count1+2;
+							}
+
+
+
+
+
+						}
+
+						DXF_main_base[0].dxf_tables_item_count=tables_count1;
+					}
+
+
+	//section block
+					if (line1==2 and line2.contains("BLOCKS") and line2.length()==6)
+					{
+
+						for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+						{
+							sw_block[sw_cleaner]=0;
+							sw_end_block[sw_cleaner]=0;
+						}
+
+						Log_1.append("Start reading section BLOCKS \n");
+						block_st1=0;
+						block_count1=0;
+
+						count_block_100=0;
+						count_block_102=0;
+
+						while (block_st1==0 and block_count1<99)
+						{
+							for_count1=for_count1+2;
+
+							line1=DXF_main_base[0].dxf_input[for_count1].toInt();
+							line2=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+							block_st2=0;
+							block_count2=0;
+
+							block_line_count=0;
+							block_lwpolyline_count=0;
+							block_text_count=0;
+							block_solid_count=0;
+
+							count_block_100=0;
+							count_block_102=0;
+
+							for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+							{
+								sw_block[sw_cleaner]=0;
+								sw_end_block[sw_cleaner]=0;
+							}
+
+							if (line1==0 and line2=="BLOCK" and line2.length()==5)
+							{
+
+								while (block_st2==0)
+								{
+
+									for_count1=for_count1+2;
+
+									line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+									count_end_block_100=0;
+
+									block_line_count=0;
+									block_lwpolyline_count=0;
+									block_text_count=0;
+
+									switch (line3)
+									{
+										case 0:
+
+											if (line4=="ENDBLK" and line4.length()==6)
+											{
+
+												block_st2=1;
+												block_st3=0;
+
+
+												for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+												{
+													sw_end_block[sw_cleaner]=0;
+
+												}
+
+												while (block_st3==0 and block_count1<99)
+												{
+													for_count1=for_count1+2;
+													line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+													line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+													switch (line5)
+													{
+
+														case 0:
+															for_count1=for_count1-2;
+															block_st3=1;
+															block_count1=block_count1+1;
+
+
+														case 5:
+
+															if(sw_end_block[5]==0)
+															{
+																DXF_input_end_block[block_count1].DXF_end_block_code_5=line6;
+																sw_end_block[5]=1;
+															}
+															else
+															{
+																Log_1.append("Find in END BLOCK code \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line5));
+																Log_1.append(" : ");
+																Log_1.append(line6);
+																Log_1.append(" ");
+																Log_1.append("\n");
+															}
+															break;
+
+														case 8:
+
+															if(sw_end_block[8]==0)
+															{
+																DXF_input_end_block[block_count1].DXF_end_block_code_8=line6;
+																sw_end_block[8]=1;
+															}
+															else
+															{
+																Log_1.append("Find in END BLOCK code \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line5));
+																Log_1.append(" : ");
+																Log_1.append(line6);
+																Log_1.append(" ");
+																Log_1.append("\n");
+															}
+															break;
+
+														case 67:
+
+															if(sw_end_block[67]==0)
+															{
+																DXF_input_end_block[block_count1].DXF_end_block_code_67=line6.toInt();
+																sw_end_block[67]=1;
+															}
+															else
+															{
+																Log_1.append("Find in END BLOCK code \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line5));
+																Log_1.append(" : ");
+																Log_1.append(line6);
+																Log_1.append(" ");
+																Log_1.append("\n");
+															}
+															break;
+
+														case 100:
+
+															if (count_end_block_100>1)
+															{
+																Log_1.append("Find in END BLOCK code\n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line5));
+																Log_1.append(" : ");
+																Log_1.append(line6);
+																Log_1.append(" ");
+																Log_1.append("\n");
+															}
+															else
+															{
+																DXF_input_end_block[block_count1].DXF_end_block_code_100[count_end_block_100]=line6;
+																count_end_block_100=count_end_block_100+1;
+															}
+															break;
+
+														case 330:
+
+															if(sw_end_block[330]==0)
+															{
+																DXF_input_end_block[block_count1].DXF_end_block_code_330=line6;
+																sw_end_block[330]=1;
+															}
+															else
+															{
+																Log_1.append("Find in END BLOCK code \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line5));
+																Log_1.append(" : ");
+																Log_1.append(line6);
+																Log_1.append(" ");
+																Log_1.append("\n");
+															}
+															break;
+
+														default:
+															Log_1.append("Find in END BLOCK section \n");
+															Log_1.append("Line :" );
+															Log_1.append(QString::number( for_count1));
+															Log_1.append(" ");
+															Log_1.append("Code :" );
+															Log_1.append(QString::number( line5));
+															Log_1.append(" : ");
+															Log_1.append(line6);
+															Log_1.append(" ");
+															Log_1.append("\n");
+
+													}
+
+												}
+
+
+
+											}
+											else
+											{
+
+												if (line4=="3DFACE" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code 3DFACE \n");
+
+													block_st5=0;
+													block_count5=0;
+													block_line_count=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code 3DFACE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code 3DFACE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="3DSOLID" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code 3DSOLID \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code 3DSOLID \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code 3DSOLID \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="ACAD_PROXY_ENTITY" and  line4.length()==17)
+												{
+													Log_1.append("Start reading BLOCK code ACAD_PROXY_ENTITY \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code ACAD_PROXY_ENTITY \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code ACAD_PROXY_ENTITY \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="ARC" and  line4.length()==3)
+												{
+													Log_1.append("Start reading BLOCK code ARC \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code ARC \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code ARC \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="ATTDEF" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code ATTDEF \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code ATTDEF \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code ATTDEF \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="ATTRIB" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code ATTRIB \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code ATTRIB \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code ATTRIB \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="BODY" and  line4.length()==4)
+												{
+													Log_1.append("Start reading BLOCK code BODY \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code BODY \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code BODY \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="CIRCLE" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code CIRCLE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code CIRCLE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code CIRCLE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="DIMENSION" and  line4.length()==9)
+												{
+													Log_1.append("Start reading BLOCK code DIMENSION \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code DIMENSION \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code DIMENSION \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="ELLIPSE" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code ELLIPSE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code ELLIPSE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code ELLIPSE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="HATCH" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code HATCH \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code HATCH \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code HATCH \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="HELIX" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code HELIX \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code HELIX \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code HELIX \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="IMAGE" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code IMAGE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code IMAGE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code IMAGE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="INSERT" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code INSERT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code INSERT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code INSERT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="LEADER" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code LEADER \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code LEADER \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code LEADER \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="LIGHT" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code LIGHT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code LIGHT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code LIGHT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="LINE" and  line4.length()==4)
+												{
+													Log_1.append("Start reading BLOCK code LINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+													{
+														sw_block_line[sw_cleaner]=0;
+
+													}
+
+													count_block_line_100=0;
+
+													while (block_st5==0 and block_count5<49)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+
+																DXF_main_base[0].DXF_block_line_count[block_count1]=block_line_count;
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+																block_line_count=block_line_count+1;
+
+																Log_1.append("End reading BLOCK code LINE \n");
+
+																break;
+
+															case 5:
+
+																if(sw_block_line[5]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_5=line8;
+																	sw_block_line[5]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 6:
+
+																if(sw_block_line[6]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_6=line8;
+																	sw_block_line[6]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 8:
+
+																if(sw_block_line[8]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_8=line8;
+																	sw_block_line[8]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 10:
+
+																if(sw_block_line[10]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_10=line8.toDouble();
+																	sw_block_line[10]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 11:
+
+																if(sw_block_line[11]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_11=line8.toDouble();
+																	sw_block_line[11]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 20:
+
+																if(sw_block_line[20]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_20=line8.toDouble();
+																	sw_block_line[20]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 21:
+
+																if(sw_block_line[21]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_21=line8.toDouble();
+																	sw_block_line[21]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 30:
+
+																if(sw_block_line[30]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_30=line8.toDouble();
+																	sw_block_line[30]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 31:
+
+																if(sw_block_line[31]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_31=line8.toDouble();
+																	sw_block_line[31]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 62:
+
+																if(sw_block_line[62]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_62=line8.toInt();
+																	sw_block_line[62]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 100:
+
+																if (count_block_line_100>1)
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+																else
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_100[count_block_line_100]=line8;
+																	count_block_line_100=count_block_line_100+1;
+																}
+																break;
+
+															case 330:
+
+																if(sw_block_line[330]==0)
+																{
+																	DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_330=line8;
+																	sw_block_line[330]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code LINE \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+																break;
+
+															default:
+																Log_1.append("Find in BLOCK code LINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="LWPOLYLINE" and  line4.length()==10)
+												{
+													Log_1.append("Start reading BLOCK code LWPOLYLINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<49)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																DXF_main_base[0].DXF_block_lwpolyline_count[block_count1]=block_lwpolyline_count;
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+																block_lwpolyline_count=block_lwpolyline_count+1;
+
+																Log_1.append("End reading BLOCK code LWPOLYLINE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code LWPOLYLINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="MESH" and  line4.length()==4)
+												{
+													Log_1.append("Start reading BLOCK code MESH \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code MESH \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code MESH \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="MLINE" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code MLINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code MLINE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code MLINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="MLEADERSTYLE" and  line4.length()==12)
+												{
+													Log_1.append("Start reading BLOCK code MLEADERSTYLE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code MLEADERSTYLE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code MLEADERSTYLE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="MLEADER" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code MLEADER \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code MLEADER \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code MLEADER \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="MTEXT" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code MTEXT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code MTEXT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code MTEXT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="OLEFRAME" and  line4.length()==8)
+												{
+													Log_1.append("Start reading BLOCK code OLEFRAME \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code OLEFRAME \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code OLEFRAME \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="OLE2FRAME" and  line4.length()==9)
+												{
+													Log_1.append("Start reading BLOCK code OLE2FRAME \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code OLE2FRAME \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code OLE2FRAME \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="POINT" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code POINT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code POINT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code POINT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="POLYLINE" and  line4.length()==8)
+												{
+													Log_1.append("Start reading BLOCK code POLYLINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code POLYLINE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code POLYLINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="RAY" and  line4.length()==3)
+												{
+													Log_1.append("Start reading BLOCK code RAY \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code RAY \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code RAY \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="REGION" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code REGION \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code REGION \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code REGION \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SECTION" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code SECTION \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SECTION \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SECTION \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SEQEND" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code SEQEND \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SEQEND \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SEQEND \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SHAPE" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code SHAPE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SHAPE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SHAPE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SOLID" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code SOLID \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+													{
+														sw_block_line[sw_cleaner]=0;
+
+													}
+
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+																block_solid_count=block_solid_count+1;
+
+																Log_1.append("End reading BLOCK code SOLID \n");
+
+
+															break;
+															case 6:
+
+																if(sw_block_line[6]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_6=line8;
+																	sw_block_line[6]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 8:
+
+																if(sw_block_line[8]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_8=line8;
+																	sw_block_line[8]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 10:
+
+																if(sw_block_line[10]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_10=line8.toDouble();
+																	sw_block_line[10]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 11:
+
+																if(sw_block_line[11]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_11=line8.toDouble();
+																	sw_block_line[11]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 12:
+
+																if(sw_block_line[12]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_12=line8.toDouble();
+																	sw_block_line[12]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 13:
+
+																if(sw_block_line[13]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_13=line8.toDouble();
+																	sw_block_line[13]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 20:
+
+																if(sw_block_line[20]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_20=line8.toDouble();
+																	sw_block_line[20]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 21:
+
+																if(sw_block_line[21]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_21=line8.toDouble();
+																	sw_block_line[21]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 22:
+
+																if(sw_block_line[22]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_22=line8.toDouble();
+																	sw_block_line[22]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 23:
+
+																if(sw_block_line[23]==0)
+																{
+																	DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_23=line8.toDouble();
+																	sw_block_line[23]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code SOLID \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															default:
+																Log_1.append("Find in BLOCK code SOLID \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SPLINE" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code SPLINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SPLINE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SPLINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SUN" and  line4.length()==3)
+												{
+													Log_1.append("Start reading BLOCK code SUN\n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SUN \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SUN \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="SURFACE" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code SURFACE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code SURFACE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code SURFACE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="TABLE" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code TABLE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code TABLE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code TABLE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="TEXT" and  line4.length()==4)
+												{
+													Log_1.append("Start reading BLOCK code TEXT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+													{
+														sw_block_line[sw_cleaner]=0;
+
+													}
+
+
+													while (block_st5==0 and block_count5<49)
+													{
+
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+
+																DXF_main_base[0].DXF_block_text_count[block_count1]=block_text_count;
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+																block_text_count=block_text_count+1;
+
+																Log_1.append("End reading BLOCK code TEXT \n");
+
+
+															break;
+
+															case 1:
+
+																if(sw_block_line[1]==0)
+																{
+																	DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_1=line8;
+																	sw_block_line[1]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 5:
+
+																if(sw_block_line[5]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_5=line8;
+																	sw_block_line[5]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 6:
+
+																if(sw_block_line[6]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_6=line8;
+																	sw_block_line[6]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 8:
+
+																if(sw_block_line[8]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_8=line8;
+																	sw_block_line[8]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 10:
+
+																if(sw_block_line[10]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_10=line8.toDouble();
+																	sw_block_line[10]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 11:
+
+																if(sw_block_line[11]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_11=line8.toDouble();
+																	sw_block_line[11]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 20:
+
+																if(sw_block_line[20]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_20=line8.toDouble();
+																	sw_block_line[20]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 21:
+
+																if(sw_block_line[21]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_21=line8.toDouble();
+																	sw_block_line[21]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 40:
+
+																if(sw_block_line[40]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_40=line8.toDouble();
+																	sw_block_line[40]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+
+															case 50:
+
+																if(sw_block_line[50]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_50=line8.toDouble();
+																	sw_block_line[50]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															case 72:
+
+																if(sw_block_line[72]==0)
+																{
+																	DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_72=line8.toDouble();
+																	sw_block_line[72]=1;
+																}
+																else
+																{
+																	Log_1.append("Find in BLOCK code TEXT \n");
+																	Log_1.append("Line :" );
+																	Log_1.append(QString::number( for_count1));
+																	Log_1.append(" ");
+																	Log_1.append("Code :" );
+																	Log_1.append(QString::number( line7));
+																	Log_1.append(" : ");
+																	Log_1.append(line8);
+																	Log_1.append(" ");
+																	Log_1.append("\n");
+																}
+
+																break;
+
+															default:
+																Log_1.append("Find in BLOCK code TEXT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="TOLERANCE" and  line4.length()==9)
+												{
+													Log_1.append("Start reading BLOCK code TOLERANCE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code TOLERANCE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code TOLERANCE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="TRACE" and  line4.length()==5)
+												{
+													Log_1.append("Start reading BLOCK code TRACE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code TRACE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code TRACE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="UNDERLAY" and  line4.length()==8)
+												{
+													Log_1.append("Start reading BLOCK code UNDERLAY \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code UNDERLAY \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code UNDERLAY \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="VERTEX" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code VERTEX \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code VERTEX \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code VERTEX \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="VIEWPORT" and  line4.length()==8)
+												{
+													Log_1.append("Start reading BLOCK codeVIEWPORT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code VIEWPORT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code VIEWPORT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="WIPEOUT" and  line4.length()==7)
+												{
+													Log_1.append("Start reading BLOCK code WIPEOUT \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code WIPEOUT \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code WIPEOUT \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if (line4=="XLINE" and  line4.length()==6)
+												{
+													Log_1.append("Start reading BLOCK code XLINE \n");
+
+													block_st5=0;
+													block_count5=0;
+
+													while (block_st5==0 and block_count5<999)
+													{
+
+														for_count1=for_count1+2;
+														line7=DXF_main_base[0].dxf_input[for_count1].toInt();
+														line8=DXF_main_base[0].dxf_input[for_count1+1];
+
+														switch (line7)
+														{
+															case 0:
+																block_st5=1;
+																for_count1=for_count1-2;
+																block_count5=block_count5+1;
+
+																Log_1.append("End reading BLOCK code XLINE \n");
+
+
+															break;
+
+															default:
+																Log_1.append("Find in BLOCK code XLINE \n");
+																Log_1.append("Line :" );
+																Log_1.append(QString::number( for_count1));
+																Log_1.append(" ");
+																Log_1.append("Code :" );
+																Log_1.append(QString::number( line7));
+																Log_1.append(" : ");
+																Log_1.append(line8);
+																Log_1.append(" ");
+																Log_1.append("\n");
+														}
+
+
+													}
+												}
+
+												if(line4=="ENDSEC" and line4.length()==6)
+												{
+													block_st2=1;
+
+													for_count1=for_count1-2;
+												}
+
+											}
+
+										case 1:
+
+											if(sw_block[1]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_1=line4;
+												sw_block[1]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 2:
+
+											if(sw_block[2]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_2=line4;
+												sw_block[2]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 3:
+
+											if(sw_block[3]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_3=line4;
+												sw_block[3]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 4:
+
+											if(sw_block[4]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_4=line4;
+												sw_block[4]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 5:
+
+											if(sw_block[5]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_5=line4;
+												sw_block[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 6:
+
+											if(sw_block[6]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_6=line4;
+												sw_block[6]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 8:
+
+											if(sw_block[8]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_8=line4;
+												sw_block[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 10:
+
+											if(sw_block[10]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_10=line4.toDouble();
+												sw_block[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+
+										case 20:
+
+											if(sw_block[20]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_20=line4.toDouble();
+												sw_block[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 30:
+
+											if(sw_block[30]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_30=line4.toDouble();
+												sw_block[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 62:
+
+											if(sw_block[62]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_62=line4.toInt();
+												sw_block[62]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 67:
+
+											if(sw_block[67]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_67=line4.toInt();
+												sw_block[67]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 70:
+
+											if(sw_block[70]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_70=line4.toInt();
+												sw_block[70]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+										case 100:
+
+											if (count_block_100>1)
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											else
+											{
+												DXF_input_block[block_count1].DXF_block_code_100[count_block_100]=line4;
+												count_block_100=count_block_100+1;
+											}
+											break;
+
+										case 102:
+
+											if (count_block_102>1)
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											else
+											{
+												DXF_input_block[block_count1].DXF_block_code_102[count_block_102]=line4;
+												count_block_102=count_block_102+1;
+											}
+											break;
+
+										case 330:
+
+											if(sw_block[330]==0)
+											{
+												DXF_input_block[block_count1].DXF_block_code_330=line4;
+												sw_block[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in BLOCK code \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line3));
+												Log_1.append(" : ");
+												Log_1.append(line4);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											break;
+
+
+										default:
+											Log_1.append("Find in BLOCK section \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line3));
+											Log_1.append(" : ");
+											Log_1.append(line4);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+
+
+
+
+								}
+							}
+
+
+							if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+							{
+								Log_1.append("End reading section BLOCKS \n");
+								block_st1=1;
+								for_count1=for_count1-2;
+								section_count=section_count+1;
+							}
+							else
+							{
+
+							}
+
+
+
+
+
+
+						}
+
+						DXF_main_base[0].dxf_block_item_count=block_count1;
+					}
+
+	//section entities
+					if (line1==2 and line2.contains("ENTITIES") and line2.length()==8)
+					{
+
+						for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+						{
+							sw_entities[sw_cleaner]=0;
+
+						}
+
+						Log_1.append("Start reading section ENTITIES \n");
+						entities_st1=0;
+						entities_count1=0;
+
+						entities_3DFACE_count2=0;
+						entities_3DSOLID_count2=0;
+						entities_ACAD_PROXY_ENTITY_count2=0;
+						entities_ARC_count2=0;
+						entities_ATTDEF_count2=0;
+						entities_ATTRIB_count2=0;
+						entities_BODY_count2=0;
+						entities_CIRCLE_count2=0;
+						entities_DIMENSION_count2=0;
+						entities_ELLIPSE_count2=0;
+						entities_HATCH_count2=0;
+						entities_HELIX_count2=0;
+						entities_IMAGE_count2=0;
+						entities_INSERT_count2=0;
+						entities_LEADER_count2=0;
+						entities_LIGHT_count2=0;
+						entities_LINE_count2=0;
+						entities_LWPOLYLINE_count2=0;
+						entities_MESH_count2=0;
+						entities_MLINE_count2=0;
+						entities_MLEADERSTYLE_count2=0;
+						entities_MLEADER_count2=0;
+						entities_MTEXT_count2=0;
+						entities_OLEFRAME_count2=0;
+						entities_OLE2FRAME_count2=0;
+						entities_POINT_count2=0;
+						entities_POLYLINE_count2=0;
+						entities_RAY_count2=0;
+						entities_REGION_count2=0;
+						entities_SECTION_count2=0;
+						entities_SEQEND_count2=0;
+						entities_SHAPE_count2=0;
+						entities_SOLID_count2=0;
+						entities_SPLINE_count2=0;
+						entities_SUN_count2=0;
+						entities_SURFACE_count2=0;
+						entities_TABLE_count2=0;
+						entities_TEXT_count2=0;
+						entities_TOLERANCE_count2=0;
+						entities_TRACE_count2=0;
+						entities_UNDERLAY_count2=0;
+						entities_VERTEX_count2=0;
+						entities_VIEWPORT_count2=0;
+						entities_WIPEOUT_count2=0;
+						entities_XLINE_count2=0;
+
+
+
+
+
+
+						while (entities_st1==0 and entities_count1<99999)
+						{
+							for_count1=for_count1+2;
+
+							line3=DXF_main_base[0].dxf_input[for_count1].toInt();
+							line4=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+							//entities_count1=entities_count1+1;
+							entities_st2=0;
+							entities_count2=0;
+
+
+
+							if (line3==0 and line4=="3DFACE" and  line4.length()==6)
+							{
+								entities_3DFACE_count2=entities_3DFACE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_3DFACE_count2));
+								Log_1.append(" 3DFACE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_3dface[sw_cleaner]=0;
+
+								}
+
+								entities_3DFACE_count2_100=0;
+
+								while (entities_st2==0 and entities_3DFACE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_3DFACE_count2));
+											Log_1.append(" 3DFACE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_3dface[5]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_5=line6;
+												sw_entities_3dface[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_3dface[8]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_8=line6;
+												sw_entities_3dface[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_3dface[10]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_10=line6.toDouble();
+												sw_entities_3dface[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_3dface[20]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_20=line6.toDouble();
+												sw_entities_3dface[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_3dface[30]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_30=line6.toDouble();
+												sw_entities_3dface[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_3DFACE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_100[entities_3DFACE_count2_100]=line6.toInt();
+												 entities_3DFACE_count2_100=entities_3DFACE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_3dface[330]==0)
+											{
+												DXF_input_entities_3dface[entities_3DFACE_count2].DXF_entities_3dface_code_330=line6;
+												sw_entities_3dface[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DFACE_count2));
+												Log_1.append(" 3DFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities 3DFACE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="3DSOLID" and  line4.length()==7)
+							{
+								entities_3DSOLID_count2=entities_3DSOLID_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_3DSOLID_count2));
+								Log_1.append(" 3DSOLID \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_3dsolid[sw_cleaner]=0;
+
+								}
+
+								entities_3DSOLID_count2_100=0;
+
+								while (entities_st2==0 and entities_3DSOLID_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_3DSOLID_count2));
+											Log_1.append(" 3DSOLID \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_3dsolid[5]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_5=line6;
+												sw_entities_3dsolid[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_3dsolid[8]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_8=line6;
+												sw_entities_3dsolid[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_3dsolid[10]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_10=line6.toDouble();
+												sw_entities_3dsolid[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_3dsolid[20]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_20=line6.toDouble();
+												sw_entities_3dsolid[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_3dsolid[30]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_30=line6.toDouble();
+												sw_entities_3dsolid[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_3DSOLID_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_100[entities_3DSOLID_count2_100]=line6.toInt();
+												 entities_3DSOLID_count2_100=entities_3DSOLID_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_3dsolid[330]==0)
+											{
+												DXF_input_entities_3dsolid[entities_3DSOLID_count2].DXF_entities_3dsolid_code_330=line6;
+												sw_entities_3dsolid[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_3DSOLID_count2));
+												Log_1.append(" 3DSOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities 3DSOLID \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="ACAD_PROXY_ENTITY" and  line4.length()==17)
+							{
+								entities_ACAD_PROXY_ENTITY_count2=entities_ACAD_PROXY_ENTITY_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+								Log_1.append(" ACAD_PROXY_ENTITY \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_acad_proxy_entity[sw_cleaner]=0;
+
+								}
+
+								entities_ACAD_PROXY_ENTITY_count2_100=0;
+
+								while (entities_st2==0 and entities_ACAD_PROXY_ENTITY_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+											Log_1.append(" ACAD_PROXY_ENTITY \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_acad_proxy_entity[5]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_5=line6;
+												sw_entities_acad_proxy_entity[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_acad_proxy_entity[8]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_8=line6;
+												sw_entities_acad_proxy_entity[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_acad_proxy_entity[10]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_10=line6.toDouble();
+												sw_entities_acad_proxy_entity[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_acad_proxy_entity[20]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_20=line6.toDouble();
+												sw_entities_acad_proxy_entity[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_acad_proxy_entity[30]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_30=line6.toDouble();
+												sw_entities_acad_proxy_entity[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_ACAD_PROXY_ENTITY_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_100[entities_ACAD_PROXY_ENTITY_count2_100]=line6.toInt();
+												 entities_ACAD_PROXY_ENTITY_count2_100=entities_ACAD_PROXY_ENTITY_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_acad_proxy_entity[330]==0)
+											{
+												DXF_input_entities_acad_proxy_entity[entities_ACAD_PROXY_ENTITY_count2].DXF_entities_acad_proxy_entity_code_330=line6;
+												sw_entities_acad_proxy_entity[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ACAD_PROXY_ENTITY_count2));
+												Log_1.append(" ACAD_PROXY_ENTITY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities ACAD_PROXY_ENTITY \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="ARC" and  line4.length()==3)
+							{
+
+								entities_ARC_count2=entities_ARC_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_ARC_count2));
+								Log_1.append(" ARC \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_arc[sw_cleaner]=0;
+
+								}
+
+								entities_ARC_count2_100=0;
+
+								while (entities_st2==0 and entities_ARC_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_ARC_count2));
+											Log_1.append(" ARC \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_arc[5]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_5=line6;
+												sw_entities_arc[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_arc[8]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_8=line6;
+												sw_entities_arc[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_arc[10]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_10=line6.toDouble();
+												sw_entities_arc[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_arc[20]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_20=line6.toDouble();
+												sw_entities_arc[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_arc[30]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_30=line6.toDouble();
+												sw_entities_arc[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 40:
+
+											if(sw_entities_arc[40]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_40=line6.toDouble();
+												sw_entities_arc[40]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 50:
+
+											if(sw_entities_arc[50]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_50=line6.toDouble();
+												sw_entities_arc[50]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 51:
+
+											if(sw_entities_arc[51]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_51=line6.toDouble();
+												sw_entities_arc[51]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 100:
+
+											if (entities_ARC_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_100[entities_ARC_count2_100]=line6.toInt();
+												 entities_ARC_count2_100=entities_ARC_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_arc[330]==0)
+											{
+												DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_330=line6;
+												sw_entities_arc[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ARC_count2));
+												Log_1.append(" ARC \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities ARC \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+							}
+
+							if (line3==0 and line4=="ATTDEF" and  line4.length()==6)
+							{
+
+								entities_ATTDEF_count2=entities_ATTDEF_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_ATTDEF_count2));
+								Log_1.append(" ATTDEF \n");
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_attdef[sw_cleaner]=0;
+
+								}
+
+								entities_ATTDEF_count2_100=0;
+
+								while (entities_st2==0 and entities_ATTDEF_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+
+									switch (line5)
+									{
+										case 0:
+
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_ATTDEF_count2));
+											Log_1.append(" ATTDEF \n");
+
+											break;
+
+										case 1:
+
+											if(sw_entities_attdef[1]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_1=line6;
+												sw_entities_attdef[1]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 2:
+
+											if(sw_entities_attdef[2]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_2=line6;
+												sw_entities_attdef[2]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 3:
+
+											if(sw_entities_attdef[3]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_3=line6;
+												sw_entities_attdef[3]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 5:
+
+											if(sw_entities_attdef[5]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_5=line6;
+												sw_entities_attdef[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 6:
+
+											if(sw_entities_attdef[6]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_6=line6;
+												sw_entities_attdef[6]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_attdef[8]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_8=line6;
+												sw_entities_attdef[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_attdef[10]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_10=line6.toDouble();
+												sw_entities_attdef[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_attdef[20]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_20=line6.toDouble();
+												sw_entities_attdef[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_attdef[30]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_30=line6.toDouble();
+												sw_entities_attdef[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 40:
+
+											if(sw_entities_attdef[40]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_40=line6.toDouble();
+												sw_entities_attdef[40]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 70:
+
+											if(sw_entities_attdef[70]==0)
+											{
+												DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_70=line6.toInt();
+												sw_entities_attdef[70]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTDEF_count2));
+												Log_1.append(" ATTDEF \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										   case 100:
+
+											   if (entities_ATTDEF_count2_100>2)
+											   {
+												   Log_1.append("Find in ENTITIES code ");
+												   Log_1.append(QString::number(entities_ATTDEF_count2));
+												   Log_1.append(" ATTDEF \n");
+												   Log_1.append("Line :" );
+												   Log_1.append(QString::number( for_count1));
+												   Log_1.append(" ");
+												   Log_1.append("Code :" );
+												   Log_1.append(QString::number( line5));
+												   Log_1.append(" : ");
+												   Log_1.append(line6);
+												   Log_1.append(" ");
+												   Log_1.append("\n");
+												}
+											   else
+												{
+													DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_100[entities_ATTDEF_count2_100]=line6.toInt();
+													entities_ATTDEF_count2_100=entities_ATTDEF_count2_100+1;
+												}
+
+											   break;
+
+										   case 330:
+
+											   if(sw_entities_attdef[330]==0)
+											   {
+												   DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_330=line6;
+												   sw_entities_attdef[330]=1;
+											   }
+											   else
+											   {
+												   Log_1.append("Find in ENTITIES code ");
+												   Log_1.append(QString::number(entities_ATTDEF_count2));
+												   Log_1.append(" ATTDEF \n");
+												   Log_1.append("Line :" );
+												   Log_1.append(QString::number( for_count1));
+												   Log_1.append(" ");
+												   Log_1.append("Code :" );
+												   Log_1.append(QString::number( line5));
+												   Log_1.append(" : ");
+												   Log_1.append(line6);
+												   Log_1.append(" ");
+												   Log_1.append("\n");
+											   }
+
+											   break;
+
+										default:
+											Log_1.append("Find in ENTITIES code ");
+											Log_1.append(QString::number(entities_ATTDEF_count2));
+											Log_1.append(" ATTDEF \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+							}
+
+							if (line3==0 and line4=="ATTRIB" and  line4.length()==6)
+							{
+								entities_ATTRIB_count2=entities_ATTRIB_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_ATTRIB_count2));
+								Log_1.append(" ATTRIB \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_attrib[sw_cleaner]=0;
+
+								}
+
+								entities_ATTRIB_count2_100=0;
+
+								while (entities_st2==0 and entities_ATTRIB_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_ATTRIB_count2));
+											Log_1.append(" ATTRIB \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_attrib[5]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_5=line6;
+												sw_entities_attrib[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_attrib[8]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_8=line6;
+												sw_entities_attrib[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_attrib[10]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_10=line6.toDouble();
+												sw_entities_attrib[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_attrib[20]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_20=line6.toDouble();
+												sw_entities_attrib[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_attrib[30]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_30=line6.toDouble();
+												sw_entities_attrib[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_ATTRIB_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_100[entities_ATTRIB_count2_100]=line6.toInt();
+												 entities_ATTRIB_count2_100=entities_ATTRIB_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_attrib[330]==0)
+											{
+												DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_330=line6;
+												sw_entities_attrib[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ATTRIB_count2));
+												Log_1.append(" ATTRIB \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities ATTRIB \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="BODY" and  line4.length()==4)
+							{
+								entities_BODY_count2=entities_BODY_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_BODY_count2));
+								Log_1.append(" BODY \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_body[sw_cleaner]=0;
+
+								}
+
+								entities_BODY_count2_100=0;
+
+								while (entities_st2==0 and entities_BODY_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_BODY_count2));
+											Log_1.append(" BODY \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_body[5]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_5=line6;
+												sw_entities_body[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_body[8]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_8=line6;
+												sw_entities_body[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_body[10]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_10=line6.toDouble();
+												sw_entities_body[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_body[20]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_20=line6.toDouble();
+												sw_entities_body[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_body[30]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_30=line6.toDouble();
+												sw_entities_body[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_BODY_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_100[entities_BODY_count2_100]=line6.toInt();
+												 entities_BODY_count2_100=entities_BODY_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_body[330]==0)
+											{
+												DXF_input_entities_body[entities_BODY_count2].DXF_entities_body_code_330=line6;
+												sw_entities_body[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_BODY_count2));
+												Log_1.append(" BODY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities BODY \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+							}
+
+							if (line3==0 and line4=="CIRCLE" and  line4.length()==6)
+							{
+								entities_CIRCLE_count2=entities_CIRCLE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_CIRCLE_count2));
+								Log_1.append(" CIRCLE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_circle[sw_cleaner]=0;
+
+								}
+
+								entities_CIRCLE_count2_100=0;
+
+								while (entities_st2==0 and entities_CIRCLE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_CIRCLE_count2));
+											Log_1.append(" CIRCLE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_circle[5]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_5=line6;
+												sw_entities_circle[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_circle[8]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_8=line6;
+												sw_entities_circle[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_circle[10]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_10=line6.toDouble();
+												sw_entities_circle[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_circle[20]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_20=line6.toDouble();
+												sw_entities_circle[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_circle[30]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_30=line6.toDouble();
+												sw_entities_circle[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_CIRCLE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_100[entities_CIRCLE_count2_100]=line6.toInt();
+												 entities_CIRCLE_count2_100=entities_CIRCLE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_circle[330]==0)
+											{
+												DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_330=line6;
+												sw_entities_circle[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_CIRCLE_count2));
+												Log_1.append(" CIRCLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities CIRCLE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="DIMENSION" and  line4.length()==9)
+							{
+								entities_DIMENSION_count2=entities_DIMENSION_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_DIMENSION_count2));
+								Log_1.append(" DIMENSION \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_dimension[sw_cleaner]=0;
+
+								}
+
+								entities_DIMENSION_count2_100=0;
+
+								while (entities_st2==0 and entities_DIMENSION_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_DIMENSION_count2));
+											Log_1.append(" DIMENSION \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_dimension[5]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_5=line6;
+												sw_entities_dimension[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_dimension[8]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_8=line6;
+												sw_entities_dimension[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_dimension[10]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_10=line6.toDouble();
+												sw_entities_dimension[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_dimension[20]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_20=line6.toDouble();
+												sw_entities_dimension[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_dimension[30]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_30=line6.toDouble();
+												sw_entities_dimension[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_DIMENSION_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_100[entities_DIMENSION_count2_100]=line6.toInt();
+												 entities_DIMENSION_count2_100=entities_DIMENSION_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_dimension[330]==0)
+											{
+												DXF_input_entities_dimension[entities_DIMENSION_count2].DXF_entities_dimension_code_330=line6;
+												sw_entities_dimension[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_DIMENSION_count2));
+												Log_1.append(" DIMENSION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities DIMENSION \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+							}
+
+							if (line3==0 and line4=="ELLIPSE" and  line4.length()==7)
+							{
+								entities_ELLIPSE_count2=entities_ELLIPSE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_ELLIPSE_count2));
+								Log_1.append(" ELLIPSE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_ellipse[sw_cleaner]=0;
+
+								}
+
+								entities_ELLIPSE_count2_100=0;
+
+								while (entities_st2==0 and entities_ELLIPSE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_ELLIPSE_count2));
+											Log_1.append(" ELLIPSE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_ellipse[5]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_5=line6;
+												sw_entities_ellipse[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_ellipse[8]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_8=line6;
+												sw_entities_ellipse[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_ellipse[10]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_10=line6.toDouble();
+												sw_entities_ellipse[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 11:
+
+											if(sw_entities_ellipse[11]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_11=line6.toDouble();
+												sw_entities_ellipse[11]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_ellipse[20]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_20=line6.toDouble();
+												sw_entities_ellipse[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 21:
+
+											if(sw_entities_ellipse[21]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_21=line6.toDouble();
+												sw_entities_ellipse[21]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_ellipse[30]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_30=line6.toDouble();
+												sw_entities_ellipse[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 31:
+
+											if(sw_entities_ellipse[31]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_31=line6.toDouble();
+												sw_entities_ellipse[31]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 40:
+
+											if(sw_entities_ellipse[40]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_40=line6.toDouble();
+												sw_entities_ellipse[40]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 41:
+
+											if(sw_entities_ellipse[41]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_41=line6.toDouble();
+												sw_entities_ellipse[41]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 42:
+
+											if(sw_entities_ellipse[42]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_42=line6.toDouble();
+												sw_entities_ellipse[42]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 100:
+
+											if (entities_ELLIPSE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_100[entities_ELLIPSE_count2_100]=line6.toInt();
+												 entities_ELLIPSE_count2_100=entities_ELLIPSE_count2_100+1;
+											 }
+
+											break;
+
+										case 210:
+
+											if(sw_entities_ellipse[210]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_210=line6.toDouble();
+												sw_entities_ellipse[210]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 220:
+
+											if(sw_entities_ellipse[220]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_220=line6.toDouble();
+												sw_entities_ellipse[220]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 230:
+
+											if(sw_entities_ellipse[230]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_230=line6.toDouble();
+												sw_entities_ellipse[230]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 330:
+
+											if(sw_entities_ellipse[330]==0)
+											{
+												DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_330=line6;
+												sw_entities_ellipse[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_ELLIPSE_count2));
+												Log_1.append(" ELLIPSE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities ELLIPSE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="HATCH" and  line4.length()==5)
+							{
+								entities_HATCH_count2=entities_HATCH_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_HATCH_count2));
+								Log_1.append(" HATCH \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_hatch[sw_cleaner]=0;
+
+								}
+
+								entities_HATCH_count2_100=0;
+
+								while (entities_st2==0 and entities_HATCH_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_HATCH_count2));
+											Log_1.append(" HATCH \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_hatch[5]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_5=line6;
+												sw_entities_hatch[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_hatch[8]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_8=line6;
+												sw_entities_hatch[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_hatch[10]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_10=line6.toDouble();
+												sw_entities_hatch[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_hatch[20]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_20=line6.toDouble();
+												sw_entities_hatch[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_hatch[30]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_30=line6.toDouble();
+												sw_entities_hatch[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_HATCH_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_100[entities_HATCH_count2_100]=line6.toInt();
+												 entities_HATCH_count2_100=entities_HATCH_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_hatch[330]==0)
+											{
+												DXF_input_entities_hatch[entities_HATCH_count2].DXF_entities_hatch_code_330=line6;
+												sw_entities_hatch[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HATCH_count2));
+												Log_1.append(" HATCH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities HATCH \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="HELIX" and  line4.length()==5)
+							{
+								entities_HELIX_count2=entities_HELIX_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_HELIX_count2));
+								Log_1.append(" HELIX \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_helix[sw_cleaner]=0;
+
+								}
+
+								entities_HELIX_count2_100=0;
+
+								while (entities_st2==0 and entities_HELIX_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_HELIX_count2));
+											Log_1.append(" HELIX \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_helix[5]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_5=line6;
+												sw_entities_helix[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_helix[8]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_8=line6;
+												sw_entities_helix[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_helix[10]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_10=line6.toDouble();
+												sw_entities_helix[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_helix[20]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_20=line6.toDouble();
+												sw_entities_helix[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_helix[30]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_30=line6.toDouble();
+												sw_entities_helix[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_HELIX_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_100[entities_HELIX_count2_100]=line6.toInt();
+												 entities_HELIX_count2_100=entities_HELIX_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_helix[330]==0)
+											{
+												DXF_input_entities_helix[entities_HELIX_count2].DXF_entities_helix_code_330=line6;
+												sw_entities_helix[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_HELIX_count2));
+												Log_1.append(" HELIX \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities HELIX \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="IMAGE" and  line4.length()==5)
+							{
+								entities_IMAGE_count2=entities_IMAGE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_IMAGE_count2));
+								Log_1.append(" IMAGE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_image[sw_cleaner]=0;
+
+								}
+
+								entities_IMAGE_count2_100=0;
+
+								while (entities_st2==0 and entities_IMAGE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_IMAGE_count2));
+											Log_1.append(" IMAGE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_image[5]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_5=line6;
+												sw_entities_image[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_image[8]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_8=line6;
+												sw_entities_image[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_image[10]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_10=line6.toDouble();
+												sw_entities_image[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_image[20]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_20=line6.toDouble();
+												sw_entities_image[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_image[30]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_30=line6.toDouble();
+												sw_entities_image[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_IMAGE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_100[entities_IMAGE_count2_100]=line6.toInt();
+												 entities_IMAGE_count2_100=entities_IMAGE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_image[330]==0)
+											{
+												DXF_input_entities_image[entities_IMAGE_count2].DXF_entities_image_code_330=line6;
+												sw_entities_image[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_IMAGE_count2));
+												Log_1.append(" IMAGE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities IMAGE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="INSERT" and  line4.length()==5)
+							{
+								entities_INSERT_count2=entities_INSERT_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_INSERT_count2));
+								Log_1.append(" INSERT \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_insert[sw_cleaner]=0;
+
+								}
+
+								entities_INSERT_count2_100=0;
+
+								while (entities_st2==0 and entities_INSERT_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_INSERT_count2));
+											Log_1.append(" INSERT \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_insert[5]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_5=line6;
+												sw_entities_insert[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_insert[8]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_8=line6;
+												sw_entities_insert[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_insert[10]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_10=line6.toDouble();
+												sw_entities_insert[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_insert[20]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_20=line6.toDouble();
+												sw_entities_insert[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_insert[30]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_30=line6.toDouble();
+												sw_entities_insert[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_INSERT_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_100[entities_INSERT_count2_100]=line6.toInt();
+												 entities_INSERT_count2_100=entities_INSERT_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_insert[330]==0)
+											{
+												DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_330=line6;
+												sw_entities_insert[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_INSERT_count2));
+												Log_1.append(" INSERT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities INSERT \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="LEADER" and  line4.length()==6)
+							{
+								entities_LEADER_count2=entities_LEADER_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_LEADER_count2));
+								Log_1.append(" LEADER \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_leader[sw_cleaner]=0;
+
+								}
+
+								entities_LEADER_count2_100=0;
+
+								while (entities_st2==0 and entities_LEADER_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_LEADER_count2));
+											Log_1.append(" LEADER \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_leader[5]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_5=line6;
+												sw_entities_leader[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_leader[8]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_8=line6;
+												sw_entities_leader[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_leader[10]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_10=line6.toDouble();
+												sw_entities_leader[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_leader[20]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_20=line6.toDouble();
+												sw_entities_leader[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_leader[30]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_30=line6.toDouble();
+												sw_entities_leader[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_LEADER_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_100[entities_LEADER_count2_100]=line6.toInt();
+												 entities_LEADER_count2_100=entities_LEADER_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_leader[330]==0)
+											{
+												DXF_input_entities_leader[entities_LEADER_count2].DXF_entities_leader_code_330=line6;
+												sw_entities_leader[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LEADER_count2));
+												Log_1.append(" LEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities LEADER \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="LIGHT" and  line4.length()==5)
+							{
+								entities_LIGHT_count2=entities_LIGHT_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_LIGHT_count2));
+								Log_1.append(" LIGHT \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_light[sw_cleaner]=0;
+
+								}
+
+								entities_LIGHT_count2_100=0;
+
+								while (entities_st2==0 and entities_LIGHT_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_LIGHT_count2));
+											Log_1.append(" LIGHT \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_light[5]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_5=line6;
+												sw_entities_light[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_light[8]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_8=line6;
+												sw_entities_light[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_light[10]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_10=line6.toDouble();
+												sw_entities_light[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_light[20]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_20=line6.toDouble();
+												sw_entities_light[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_light[30]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_30=line6.toDouble();
+												sw_entities_light[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_LIGHT_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_100[entities_LIGHT_count2_100]=line6.toInt();
+												 entities_LIGHT_count2_100=entities_LIGHT_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_light[330]==0)
+											{
+												DXF_input_entities_light[entities_LIGHT_count2].DXF_entities_light_code_330=line6;
+												sw_entities_light[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LIGHT_count2));
+												Log_1.append(" LIGHT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities LIGHT \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="LINE" and  line4.length()==4)
+							{
+
+								entities_LINE_count2=entities_LINE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_LINE_count2));
+								Log_1.append(" LINE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_line[sw_cleaner]=0;
+
+								}
+
+								entities_LINE_count2_100=0;
+
+								while (entities_st2==0 and entities_LINE_count2<99999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_LINE_count2));
+											Log_1.append(" LINE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_line[5]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_5=line6;
+												sw_entities_line[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 6:
+
+											if(sw_entities_line[6]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_6=line6;
+												sw_entities_line[6]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_line[8]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_8=line6;
+												sw_entities_line[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_line[10]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_10=line6.toDouble();
+												sw_entities_line[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 11:
+
+											if(sw_entities_line[11]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_11=line6.toDouble();
+												sw_entities_line[11]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_line[20]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_20=line6.toDouble();
+												sw_entities_line[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 21:
+
+											if(sw_entities_line[21]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_21=line6.toDouble();
+												sw_entities_line[21]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_line[30]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_30=line6.toDouble();
+												sw_entities_line[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 31:
+
+											if(sw_entities_line[31]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_31=line6.toDouble();
+												sw_entities_line[31]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 62:
+
+											if(sw_entities_line[62]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_62=line6.toDouble();
+												sw_entities_line[62]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_LINE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_100[entities_LINE_count2_100]=line6.toInt();
+												 entities_LINE_count2_100=entities_LINE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_line[330]==0)
+											{
+												DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_330=line6;
+												sw_entities_line[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LINE_count2));
+												Log_1.append(" LINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities LINE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="LWPOLYLINE" and  line4.length()==10)
+							{
+								entities_LWPOLYLINE_count2=entities_LWPOLYLINE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+								Log_1.append(" LWPOLYLINE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_lwpolyline[sw_cleaner]=0;
+
+								}
+
+								entities_LWPOLYLINE_count2_10=0;
+								entities_LWPOLYLINE_count2_20=0;
+								entities_LWPOLYLINE_count2_100=0;
+
+								while (entities_st2==0 and entities_LWPOLYLINE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+											Log_1.append(" LWPOLYLINE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_lwpolyline[5]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_5=line6;
+												sw_entities_lwpolyline[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_lwpolyline[8]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_8=line6;
+												sw_entities_lwpolyline[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if (entities_LWPOLYLINE_count2_10>49)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											else
+											{
+
+
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_10[entities_LWPOLYLINE_count2_10]=line6.toDouble();
+												entities_LWPOLYLINE_count2_10=entities_LWPOLYLINE_count2_10+1;
+											}
+
+											break;
+
+										case 20:
+
+
+											if (entities_LWPOLYLINE_count2_20>49)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+											else
+											{
+
+
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_20[entities_LWPOLYLINE_count2_20]=line6.toDouble();
+												entities_LWPOLYLINE_count2_20=entities_LWPOLYLINE_count2_20+1;
+											}
+
+											break;
+
+
+										case 30:
+
+											if(sw_entities_lwpolyline[30]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_30=line6.toDouble();
+												sw_entities_lwpolyline[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+										case 43:
+
+											if(sw_entities_lwpolyline[43]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_43=line6.toDouble();
+												sw_entities_lwpolyline[43]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 70:
+
+											if(sw_entities_lwpolyline[70]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_70=line6.toInt();
+												sw_entities_lwpolyline[70]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 90:
+
+											if(sw_entities_lwpolyline[90]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_90=line6.toInt();
+												sw_entities_lwpolyline[90]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 100:
+
+											if (entities_LWPOLYLINE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_100[entities_LWPOLYLINE_count2_100]=line6.toInt();
+												 entities_LWPOLYLINE_count2_100=entities_LWPOLYLINE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_lwpolyline[330]==0)
+											{
+												DXF_input_entities_lwpolyline[entities_LWPOLYLINE_count2].DXF_entities_lwpolyline_code_330=line6;
+												sw_entities_lwpolyline[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_LWPOLYLINE_count2));
+												Log_1.append(" LWPOLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities LWPOLYLINE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="MESH" and  line4.length()==4)
+							{
+								entities_MESH_count2=entities_MESH_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_MESH_count2));
+								Log_1.append(" MESH \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_mesh[sw_cleaner]=0;
+
+								}
+
+								entities_MESH_count2_100=0;
+
+								while (entities_st2==0 and entities_MESH_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_MESH_count2));
+											Log_1.append(" MESH \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_mesh[5]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_5=line6;
+												sw_entities_mesh[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_mesh[8]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_8=line6;
+												sw_entities_mesh[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_mesh[10]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_10=line6.toDouble();
+												sw_entities_mesh[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_mesh[20]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_20=line6.toDouble();
+												sw_entities_mesh[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_mesh[30]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_30=line6.toDouble();
+												sw_entities_mesh[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_MESH_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_100[entities_MESH_count2_100]=line6.toInt();
+												 entities_MESH_count2_100=entities_MESH_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_mesh[330]==0)
+											{
+												DXF_input_entities_mesh[entities_MESH_count2].DXF_entities_mesh_code_330=line6;
+												sw_entities_mesh[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MESH_count2));
+												Log_1.append(" MESH \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities MESH \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="MLINE" and  line4.length()==5)
+							{
+								entities_MLINE_count2=entities_MLINE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_MLINE_count2));
+								Log_1.append(" MLINE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_mline[sw_cleaner]=0;
+
+								}
+
+								entities_MLINE_count2_100=0;
+
+								while (entities_st2==0 and entities_MLINE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_MLINE_count2));
+											Log_1.append(" MLINE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_mline[5]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_5=line6;
+												sw_entities_mline[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_mline[8]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_8=line6;
+												sw_entities_mline[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_mline[10]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_10=line6.toDouble();
+												sw_entities_mline[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_mline[20]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_20=line6.toDouble();
+												sw_entities_mline[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_mline[30]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_30=line6.toDouble();
+												sw_entities_mline[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_MLINE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_100[entities_MLINE_count2_100]=line6.toInt();
+												 entities_MLINE_count2_100=entities_MLINE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_mline[330]==0)
+											{
+												DXF_input_entities_mline[entities_MLINE_count2].DXF_entities_mline_code_330=line6;
+												sw_entities_mline[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLINE_count2));
+												Log_1.append(" MLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities MLINE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="MLEADERSTYLE" and  line4.length()==12)
+							{
+								entities_MLEADERSTYLE_count2=entities_MLEADERSTYLE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+								Log_1.append(" MLEADERSTYLE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_mleaderstyle[sw_cleaner]=0;
+
+								}
+
+								entities_MLEADERSTYLE_count2_100=0;
+
+								while (entities_st2==0 and entities_MLEADERSTYLE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+											Log_1.append(" MLEADERSTYLE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_mleaderstyle[5]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_5=line6;
+												sw_entities_mleaderstyle[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_mleaderstyle[8]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_8=line6;
+												sw_entities_mleaderstyle[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_mleaderstyle[10]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_10=line6.toDouble();
+												sw_entities_mleaderstyle[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_mleaderstyle[20]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_20=line6.toDouble();
+												sw_entities_mleaderstyle[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_mleaderstyle[30]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_30=line6.toDouble();
+												sw_entities_mleaderstyle[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_MLEADERSTYLE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_100[entities_MLEADERSTYLE_count2_100]=line6.toInt();
+												 entities_MLEADERSTYLE_count2_100=entities_MLEADERSTYLE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_mleaderstyle[330]==0)
+											{
+												DXF_input_entities_mleaderstyle[entities_MLEADERSTYLE_count2].DXF_entities_mleaderstyle_code_330=line6;
+												sw_entities_mleaderstyle[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADERSTYLE_count2));
+												Log_1.append(" MLEADERSTYLE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities MLEADERSTYLE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="MLEADER" and  line4.length()==7)
+							{
+								entities_MLEADER_count2=entities_MLEADER_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_MLEADER_count2));
+								Log_1.append(" MLEADER \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_mleader[sw_cleaner]=0;
+
+								}
+
+								entities_MLEADER_count2_100=0;
+
+								while (entities_st2==0 and entities_MLEADER_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_MLEADER_count2));
+											Log_1.append(" MLEADER \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_mleader[5]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_5=line6;
+												sw_entities_mleader[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_mleader[8]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_8=line6;
+												sw_entities_mleader[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_mleader[10]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_10=line6.toDouble();
+												sw_entities_mleader[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_mleader[20]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_20=line6.toDouble();
+												sw_entities_mleader[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_mleader[30]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_30=line6.toDouble();
+												sw_entities_mleader[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_MLEADER_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_100[entities_MLEADER_count2_100]=line6.toInt();
+												 entities_MLEADER_count2_100=entities_MLEADER_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_mleader[330]==0)
+											{
+												DXF_input_entities_mleader[entities_MLEADER_count2].DXF_entities_mleader_code_330=line6;
+												sw_entities_mleader[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MLEADER_count2));
+												Log_1.append(" MLEADER \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities MLEADER \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="MTEXT" and  line4.length()==5)
+							{
+								entities_MTEXT_count2=entities_MTEXT_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_MTEXT_count2));
+								Log_1.append(" MTEXT \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_mtext[sw_cleaner]=0;
+
+								}
+
+								entities_MTEXT_count2_100=0;
+
+								while (entities_st2==0 and entities_MTEXT_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_MTEXT_count2));
+											Log_1.append(" MTEXT \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_mtext[5]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_5=line6;
+												sw_entities_mtext[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_mtext[8]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_8=line6;
+												sw_entities_mtext[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_mtext[10]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_10=line6.toDouble();
+												sw_entities_mtext[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_mtext[20]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_20=line6.toDouble();
+												sw_entities_mtext[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_mtext[30]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_30=line6.toDouble();
+												sw_entities_mtext[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_MTEXT_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_100[entities_MTEXT_count2_100]=line6.toInt();
+												 entities_MTEXT_count2_100=entities_MTEXT_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_mtext[330]==0)
+											{
+												DXF_input_entities_mtext[entities_MTEXT_count2].DXF_entities_mtext_code_330=line6;
+												sw_entities_mtext[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_MTEXT_count2));
+												Log_1.append(" MTEXT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities MTEXT \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="OLEFRAME" and  line4.length()==8)
+							{
+								entities_OLEFRAME_count2=entities_OLEFRAME_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_OLEFRAME_count2));
+								Log_1.append(" OLEFRAME \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_oleframe[sw_cleaner]=0;
+
+								}
+
+								entities_OLEFRAME_count2_100=0;
+
+								while (entities_st2==0 and entities_OLEFRAME_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_OLEFRAME_count2));
+											Log_1.append(" OLEFRAME \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_oleframe[5]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_5=line6;
+												sw_entities_oleframe[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_oleframe[8]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_8=line6;
+												sw_entities_oleframe[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_oleframe[10]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_10=line6.toDouble();
+												sw_entities_oleframe[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_oleframe[20]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_20=line6.toDouble();
+												sw_entities_oleframe[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_oleframe[30]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_30=line6.toDouble();
+												sw_entities_oleframe[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_OLEFRAME_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_100[entities_OLEFRAME_count2_100]=line6.toInt();
+												 entities_OLEFRAME_count2_100=entities_OLEFRAME_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_oleframe[330]==0)
+											{
+												DXF_input_entities_oleframe[entities_OLEFRAME_count2].DXF_entities_oleframe_code_330=line6;
+												sw_entities_oleframe[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLEFRAME_count2));
+												Log_1.append(" OLEFRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities OLEFRAME \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="OLE2FRAME" and  line4.length()==9)
+							{
+								entities_OLE2FRAME_count2=entities_OLE2FRAME_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_OLE2FRAME_count2));
+								Log_1.append(" OLE2FRAME \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_ole2frame[sw_cleaner]=0;
+
+								}
+
+								entities_OLE2FRAME_count2_100=0;
+
+								while (entities_st2==0 and entities_OLE2FRAME_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_OLE2FRAME_count2));
+											Log_1.append(" OLE2FRAME \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_ole2frame[5]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_5=line6;
+												sw_entities_ole2frame[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_ole2frame[8]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_8=line6;
+												sw_entities_ole2frame[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_ole2frame[10]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_10=line6.toDouble();
+												sw_entities_ole2frame[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_ole2frame[20]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_20=line6.toDouble();
+												sw_entities_ole2frame[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_ole2frame[30]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_30=line6.toDouble();
+												sw_entities_ole2frame[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_OLE2FRAME_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_100[entities_OLE2FRAME_count2_100]=line6.toInt();
+												 entities_OLE2FRAME_count2_100=entities_OLE2FRAME_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_ole2frame[330]==0)
+											{
+												DXF_input_entities_ole2frame[entities_OLE2FRAME_count2].DXF_entities_ole2frame_code_330=line6;
+												sw_entities_ole2frame[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_OLE2FRAME_count2));
+												Log_1.append(" OLE2FRAME \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities OLE2FRAME \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="POINT" and  line4.length()==5)
+							{
+								entities_POINT_count2=entities_POINT_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_POINT_count2));
+								Log_1.append(" POINT \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_point[sw_cleaner]=0;
+
+								}
+
+								entities_POINT_count2_100=0;
+
+								while (entities_st2==0 and entities_POINT_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_POINT_count2));
+											Log_1.append(" POINT \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_point[5]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_5=line6;
+												sw_entities_point[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 6:
+
+											if(sw_entities_point[6]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_6=line6;
+												sw_entities_point[6]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_point[8]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_8=line6;
+												sw_entities_point[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_point[10]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_10=line6.toDouble();
+												sw_entities_point[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_point[20]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_20=line6.toDouble();
+												sw_entities_point[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_point[30]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_30=line6.toDouble();
+												sw_entities_point[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+										case 62:
+
+											if(sw_entities_point[62]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_62=line6.toInt();
+												sw_entities_point[62]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 100:
+
+											if (entities_POINT_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_100[entities_POINT_count2_100]=line6.toInt();
+												 entities_POINT_count2_100=entities_POINT_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_point[330]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_330=line6;
+												sw_entities_point[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 370:
+
+											if(sw_entities_point[370]==0)
+											{
+												DXF_input_entities_point[entities_POINT_count2].DXF_entities_point_code_370=line6.toInt();
+												sw_entities_point[370]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POINT_count2));
+												Log_1.append(" POINT \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities POINT \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="POLYLINE" and  line4.length()==8)
+							{
+								entities_POLYLINE_count2=entities_POLYLINE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_POLYLINE_count2));
+								Log_1.append(" POLYLINE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_polyline[sw_cleaner]=0;
+
+								}
+
+								entities_POLYLINE_count2_100=0;
+
+								while (entities_st2==0 and entities_POLYLINE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_POLYLINE_count2));
+											Log_1.append(" POLYLINE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_polyline[5]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_5=line6;
+												sw_entities_polyline[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_polyline[8]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_8=line6;
+												sw_entities_polyline[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_polyline[10]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_10=line6.toDouble();
+												sw_entities_polyline[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_polyline[20]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_20=line6.toDouble();
+												sw_entities_polyline[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_polyline[30]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_30=line6.toDouble();
+												sw_entities_polyline[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_POLYLINE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_100[entities_POLYLINE_count2_100]=line6.toInt();
+												 entities_POLYLINE_count2_100=entities_POLYLINE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_polyline[330]==0)
+											{
+												DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_330=line6;
+												sw_entities_polyline[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_POLYLINE_count2));
+												Log_1.append(" POLYLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities POLYLINE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="RAY" and  line4.length()==3)
+							{
+								entities_RAY_count2=entities_RAY_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_RAY_count2));
+								Log_1.append(" RAY \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_ray[sw_cleaner]=0;
+
+								}
+
+								entities_RAY_count2_100=0;
+
+								while (entities_st2==0 and entities_RAY_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_RAY_count2));
+											Log_1.append(" RAY \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_ray[5]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_5=line6;
+												sw_entities_ray[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_ray[8]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_8=line6;
+												sw_entities_ray[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_ray[10]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_10=line6.toDouble();
+												sw_entities_ray[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_ray[20]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_20=line6.toDouble();
+												sw_entities_ray[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_ray[30]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_30=line6.toDouble();
+												sw_entities_ray[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_RAY_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_100[entities_RAY_count2_100]=line6.toInt();
+												 entities_RAY_count2_100=entities_RAY_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_ray[330]==0)
+											{
+												DXF_input_entities_ray[entities_RAY_count2].DXF_entities_ray_code_330=line6;
+												sw_entities_ray[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_RAY_count2));
+												Log_1.append(" RAY \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities RAY \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+							}
+
+							if (line3==0 and line4=="REGION" and  line4.length()==6)
+							{
+								entities_REGION_count2=entities_REGION_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_REGION_count2));
+								Log_1.append(" REGION \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_region[sw_cleaner]=0;
+
+								}
+
+								entities_REGION_count2_100=0;
+
+								while (entities_st2==0 and entities_REGION_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_REGION_count2));
+											Log_1.append(" REGION \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_region[5]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_5=line6;
+												sw_entities_region[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_region[8]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_8=line6;
+												sw_entities_region[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_region[10]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_10=line6.toDouble();
+												sw_entities_region[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_region[20]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_20=line6.toDouble();
+												sw_entities_region[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_region[30]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_30=line6.toDouble();
+												sw_entities_region[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_REGION_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_100[entities_REGION_count2_100]=line6.toInt();
+												 entities_REGION_count2_100=entities_REGION_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_region[330]==0)
+											{
+												DXF_input_entities_region[entities_REGION_count2].DXF_entities_region_code_330=line6;
+												sw_entities_region[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_REGION_count2));
+												Log_1.append(" REGION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities REGION \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SECTION" and  line4.length()==7)
+							{
+								entities_SECTION_count2=entities_SECTION_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SECTION_count2));
+								Log_1.append(" SECTION \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_section[sw_cleaner]=0;
+
+								}
+
+								entities_SECTION_count2_100=0;
+
+								while (entities_st2==0 and entities_SECTION_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SECTION_count2));
+											Log_1.append(" SECTION \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_section[5]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_5=line6;
+												sw_entities_section[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_section[8]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_8=line6;
+												sw_entities_section[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_section[10]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_10=line6.toDouble();
+												sw_entities_section[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_section[20]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_20=line6.toDouble();
+												sw_entities_section[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_section[30]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_30=line6.toDouble();
+												sw_entities_section[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SECTION_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_100[entities_SECTION_count2_100]=line6.toInt();
+												 entities_SECTION_count2_100=entities_SECTION_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_section[330]==0)
+											{
+												DXF_input_entities_section[entities_SECTION_count2].DXF_entities_section_code_330=line6;
+												sw_entities_section[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SECTION_count2));
+												Log_1.append(" SECTION \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SECTION \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SEQEND" and  line4.length()==6)
+							{
+								entities_SEQEND_count2=entities_SEQEND_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SEQEND_count2));
+								Log_1.append(" SEQEND \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_seqend[sw_cleaner]=0;
+
+								}
+
+								entities_SEQEND_count2_100=0;
+
+								while (entities_st2==0 and entities_SEQEND_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SEQEND_count2));
+											Log_1.append(" SEQEND \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_seqend[5]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_5=line6;
+												sw_entities_seqend[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_seqend[8]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_8=line6;
+												sw_entities_seqend[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_seqend[10]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_10=line6.toDouble();
+												sw_entities_seqend[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_seqend[20]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_20=line6.toDouble();
+												sw_entities_seqend[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_seqend[30]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_30=line6.toDouble();
+												sw_entities_seqend[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SEQEND_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_100[entities_SEQEND_count2_100]=line6.toInt();
+												 entities_SEQEND_count2_100=entities_SEQEND_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_seqend[330]==0)
+											{
+												DXF_input_entities_seqend[entities_SEQEND_count2].DXF_entities_seqend_code_330=line6;
+												sw_entities_seqend[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SEQEND_count2));
+												Log_1.append(" SEQEND \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SEQEND \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SHAPE" and  line4.length()==5)
+							{
+								entities_SHAPE_count2=entities_SHAPE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SHAPE_count2));
+								Log_1.append(" SHAPE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_shape[sw_cleaner]=0;
+
+								}
+
+								entities_SHAPE_count2_100=0;
+
+								while (entities_st2==0 and entities_SHAPE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SHAPE_count2));
+											Log_1.append(" SHAPE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_shape[5]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_5=line6;
+												sw_entities_shape[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_shape[8]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_8=line6;
+												sw_entities_shape[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_shape[10]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_10=line6.toDouble();
+												sw_entities_shape[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_shape[20]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_20=line6.toDouble();
+												sw_entities_shape[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_shape[30]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_30=line6.toDouble();
+												sw_entities_shape[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SHAPE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_100[entities_SHAPE_count2_100]=line6.toInt();
+												 entities_SHAPE_count2_100=entities_SHAPE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_shape[330]==0)
+											{
+												DXF_input_entities_shape[entities_SHAPE_count2].DXF_entities_shape_code_330=line6;
+												sw_entities_shape[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SHAPE_count2));
+												Log_1.append(" SHAPE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SHAPE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SOLID" and  line4.length()==5)
+							{
+								entities_SOLID_count2=entities_SOLID_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SOLID_count2));
+								Log_1.append(" SOLID \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_solid[sw_cleaner]=0;
+
+								}
+
+								entities_SOLID_count2_100=0;
+
+								while (entities_st2==0 and entities_SOLID_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SOLID_count2));
+											Log_1.append(" SOLID \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_solid[5]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_5=line6;
+												sw_entities_solid[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_solid[8]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_8=line6;
+												sw_entities_solid[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_solid[10]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_10=line6.toDouble();
+												sw_entities_solid[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_solid[20]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_20=line6.toDouble();
+												sw_entities_solid[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_solid[30]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_30=line6.toDouble();
+												sw_entities_solid[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SOLID_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_100[entities_SOLID_count2_100]=line6.toInt();
+												 entities_SOLID_count2_100=entities_SOLID_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_solid[330]==0)
+											{
+												DXF_input_entities_solid[entities_SOLID_count2].DXF_entities_solid_code_330=line6;
+												sw_entities_solid[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SOLID_count2));
+												Log_1.append(" SOLID \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SOLID \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SPLINE" and  line4.length()==6)
+							{
+								entities_SPLINE_count2=entities_SPLINE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SPLINE_count2));
+								Log_1.append(" SPLINE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_spline[sw_cleaner]=0;
+
+								}
+
+								entities_SPLINE_count2_100=0;
+
+								while (entities_st2==0 and entities_SPLINE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SPLINE_count2));
+											Log_1.append(" SPLINE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_spline[5]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_5=line6;
+												sw_entities_spline[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_spline[8]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_8=line6;
+												sw_entities_spline[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_spline[10]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_10=line6.toDouble();
+												sw_entities_spline[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_spline[20]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_20=line6.toDouble();
+												sw_entities_spline[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_spline[30]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_30=line6.toDouble();
+												sw_entities_spline[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SPLINE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_100[entities_SPLINE_count2_100]=line6.toInt();
+												 entities_SPLINE_count2_100=entities_SPLINE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_spline[330]==0)
+											{
+												DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_330=line6;
+												sw_entities_spline[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SPLINE_count2));
+												Log_1.append(" SPLINE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SPLINE \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SUN" and  line4.length()==3)
+							{
+								entities_SUN_count2=entities_SUN_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SUN_count2));
+								Log_1.append(" SUN \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_sun[sw_cleaner]=0;
+
+								}
+
+								entities_SUN_count2_100=0;
+
+								while (entities_st2==0 and entities_SUN_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SUN_count2));
+											Log_1.append(" SUN \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_sun[5]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_5=line6;
+												sw_entities_sun[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_sun[8]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_8=line6;
+												sw_entities_sun[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_sun[10]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_10=line6.toDouble();
+												sw_entities_sun[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_sun[20]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_20=line6.toDouble();
+												sw_entities_sun[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_sun[30]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_30=line6.toDouble();
+												sw_entities_sun[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SUN_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_100[entities_SUN_count2_100]=line6.toInt();
+												 entities_SUN_count2_100=entities_SUN_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_sun[330]==0)
+											{
+												DXF_input_entities_sun[entities_SUN_count2].DXF_entities_sun_code_330=line6;
+												sw_entities_sun[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SUN_count2));
+												Log_1.append(" SUN \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SUN \n");
+											Log_1.append("Line :" );
+											Log_1.append(QString::number( for_count1));
+											Log_1.append(" ");
+											Log_1.append("Code :" );
+											Log_1.append(QString::number( line5));
+											Log_1.append(" : ");
+											Log_1.append(line6);
+											Log_1.append(" ");
+											Log_1.append("\n");
+									}
+								}
+
+							}
+
+							if (line3==0 and line4=="SURFACE" and  line4.length()==7)
+							{
+								entities_SURFACE_count2=entities_SURFACE_count2+1;
+
+								Log_1.append("Start reading entities ");
+								Log_1.append(QString::number(entities_SURFACE_count2));
+								Log_1.append(" SURFACE \n");
+
+
+
+								for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+								{
+									sw_entities_surface[sw_cleaner]=0;
+
+								}
+
+								entities_SURFACE_count2_100=0;
+
+								while (entities_st2==0 and entities_SURFACE_count2<999)
+								{
+									for_count1=for_count1+2;
+
+									line5=DXF_main_base[0].dxf_input[for_count1].toInt();
+									line6=DXF_main_base[0].dxf_input[for_count1+1];
+
+
+									switch (line5)
+									{
+										case 0:
+											entities_count1=entities_count1+1;
+											entities_st2=1;
+											for_count1=for_count1-2;
+											Log_1.append("End reading entities ");
+											Log_1.append(QString::number(entities_SURFACE_count2));
+											Log_1.append(" SURFACE \n");
+
+											break;
+
+										case 5:
+
+											if(sw_entities_surface[5]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_5=line6;
+												sw_entities_surface[5]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 8:
+
+											if(sw_entities_surface[8]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_8=line6;
+												sw_entities_surface[8]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 10:
+
+											if(sw_entities_surface[10]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_10=line6.toDouble();
+												sw_entities_surface[10]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 20:
+
+											if(sw_entities_surface[20]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_20=line6.toDouble();
+												sw_entities_surface[20]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										case 30:
+
+											if(sw_entities_surface[30]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_30=line6.toDouble();
+												sw_entities_surface[30]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+
+
+										case 100:
+
+											if (entities_SURFACE_count2_100>2)
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											 }
+											else
+											 {
+												 DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_100[entities_SURFACE_count2_100]=line6.toInt();
+												 entities_SURFACE_count2_100=entities_SURFACE_count2_100+1;
+											 }
+
+											break;
+
+										case 330:
+
+											if(sw_entities_surface[330]==0)
+											{
+												DXF_input_entities_surface[entities_SURFACE_count2].DXF_entities_surface_code_330=line6;
+												sw_entities_surface[330]=1;
+											}
+											else
+											{
+												Log_1.append("Find in ENTITIES code ");
+												Log_1.append(QString::number(entities_SURFACE_count2));
+												Log_1.append(" SURFACE \n");
+												Log_1.append("Line :" );
+												Log_1.append(QString::number( for_count1));
+												Log_1.append(" ");
+												Log_1.append("Code :" );
+												Log_1.append(QString::number( line5));
+												Log_1.append(" : ");
+												Log_1.append(line6);
+												Log_1.append(" ");
+												Log_1.append("\n");
+											}
+
+											break;
+
+										default:
+											Log_1.append("Find in entities SURFACE \n");
+											Log_1