[qet] [4310] Merge dxftoelmt branch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4310
Author: scorpio810
Date: 2016-01-07 21:48:03 +0100 (Thu, 07 Jan 2016)
Log Message:
-----------
Merge dxftoelmt branch
Modified Paths:
--------------
branches/Qetdxf/qelectrotech.pro
Added Paths:
-----------
branches/Qetdxf/sources/dxftoqet2/
branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.cpp
branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.h
branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.cpp
branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.h
branches/Qetdxf/sources/dxftoqet2/dxftoqet2.pri
branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.cpp
branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.h
branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.ui
branches/Qetdxf/sources/dxftoqet2/icon/
branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.png
branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.xcf
branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.png
branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.xcf
branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.png
branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.xcf
branches/Qetdxf/sources/dxftoqet2/icon/document-save-as.png
branches/Qetdxf/sources/dxftoqet2/main.cpp
branches/Qetdxf/sources/dxftoqet2/src/
branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.cpp
branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.h
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/.directory
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_data.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_data.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_load.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_load.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_ltype_control.h
branches/Qetdxf/sources/dxftoqet2/src/dxf_split.cpp
branches/Qetdxf/sources/dxftoqet2/src/dxf_split.h
branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/
branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.cpp
branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.h
branches/Qetdxf/sources/dxftoqet2/src/split_csv.cpp
branches/Qetdxf/sources/dxftoqet2/src/split_csv.h
Modified: branches/Qetdxf/qelectrotech.pro
===================================================================
--- branches/Qetdxf/qelectrotech.pro 2016-01-07 20:40:16 UTC (rev 4309)
+++ branches/Qetdxf/qelectrotech.pro 2016-01-07 20:48:03 UTC (rev 4310)
@@ -64,6 +64,7 @@
include(sources/PropertiesEditor/PropertiesEditor.pri)
include(sources/QetGraphicsItemModeler/QetGraphicsItemModeler.pri)
include(sources/QPropertyUndoCommand/QPropertyUndoCommand.pri)
+include(sources/dxftoqet2/dxftoqet2.pri)
TEMPLATE = app
DEPENDPATH += .
@@ -79,23 +80,40 @@
sources/editor/graphicspart \
sources/undocommand \
sources/diagramevent \
- sources/ElementsCollection
+ sources/ElementsCollection \
+ sources/dxftoqet2 \
+ sources/dxftoqet2/src \
+ sources/dxftoqet2/src/dxf_base_types \
+ sources/dxftoqet2/src/qet_base_types \
+ sources/dxftoqet2/src/dxf_control
+ sources/dxftoqet2/src/dxf
# Fichiers sources
HEADERS += $$files(sources/*.h) $$files(sources/ui/*.h) $$files(sources/editor/*.h) $$files(sources/titleblock/*.h) $$files(sources/richtext/*.h) $$files(sources/qetgraphicsitem/*.h) $$files(sources/factory/*.h) \
$$files(sources/properties/*.h) \
- $$files(sources/editor/ui/*.h) \
+# $$files(sources/dxftoqet2/*.h) \
+# $$files(sources/dxftoqet2/src/dxf_base_types/*.h) \
+# $$files(sources/dxftoqet2/src/qet_base_types/*.h) \
+# $$files(sources/dxftoqet2/src/dxf_control/*.h) \
+# $$files(sources/dxftoqet2/src/dxf/*.h) \
+ $$files(sources/editor/ui/*.h) \
$$files(sources/editor/esevent/*.h) \
- $$files(sources/editor/graphicspart/*.h) \
+ $$files(sources/editor/graphicspart/*.h) \
$$files(sources/dvevent/*.h) \
$$files(sources/undocommand/*.h) \
$$files(sources/diagramevent/*.h) \
$$files(sources/ElementsCollection/*.h)
SOURCES += $$files(sources/*.cpp) $$files(sources/editor/*.cpp) $$files(sources/titleblock/*.cpp) $$files(sources/richtext/*.cpp) $$files(sources/ui/*.cpp) $$files(sources/qetgraphicsitem/*.cpp) $$files(sources/factory/*.cpp) \
- $$files(sources/properties/*.cpp) \
- $$files(sources/editor/ui/*.cpp) \
+ $$files(sources/properties/dxf_base_types/*.cpp) \
+# $$files(sources/dxftoqet2/*.cpp) \
+# $$files(sources/dxftoqet2/src/*.cpp) \
+# $$files(sources/dxftoqet2/src/qet_base_types/*.cpp) \
+# $$files(sources/dxftoqet2/src/dxf_base_types/*.cpp) \
+# $$files(sources/dxftoqet2/src/dxf_control/*.cpp) \
+# $$files(sources/dxftoqet2/src/dxf/*.cpp) \
+ $$files(sources/editor/ui/*.cpp) \
$$files(sources/editor/esevent/*.cpp) \
$$files(sources/editor/graphicspart/*.cpp) \
$$files(sources/dvevent/*.cpp) \
@@ -118,6 +136,7 @@
# UI DESIGNER FILES AND GENERATION SOURCES FILES
FORMS += $$files(sources/richtext/*.ui) \
$$files(sources/ui/*.ui) \
+# $$files(sources/dxftoqet2/*.ui) \
$$files(sources/editor/ui/*.ui)
UI_SOURCES_DIR = sources/ui/
Added: branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,448 @@
+#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;
+ Header_background=DXF_main_base[0].csv_header_background;
+
+ Count_lines=Start_Line;
+
+ Row_pos=0;
+
+ while (sw1==0)
+ {
+
+ Create_ELMT.ELMT_definition_height="100";
+ Create_ELMT.ELMT_definition_width="500";
+
+ // calculate with and height
+
+ elmt_height=0;
+ elmt_width=0;
+
+ elmt_height=Row_height=DXF_main_base[0].csv_table_settings[1][1].toDouble()*Split_Line;
+ Create_ELMT.ELMT_definition_height=QString::number(elmt_height,'f',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)
+ {
+
+ elmt_width=elmt_width+Col_width;
+
+
+ }
+
+ }
+
+ Create_ELMT.ELMT_definition_width=QString::number(elmt_width,'f',0);
+
+
+
+ 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
+
+ Header_background="none";
+
+ 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;
+ db_rect.dxf_rect_filling=Header_background;
+
+ 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/Qetdxf/sources/dxftoqet2/csv_create_elmt.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/csv_create_elmt.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,96 @@
+#ifndef CSV_CREATE_ELMT_H
+#define CSV_CREATE_ELMT_H
+
+//#include <QMainWindow>
+#include "src/dxf_data.h"
+#include "src/qet_base_types/baseelmt.h"
+#include "src/dxf_control/dxf_text_control.h"
+
+#include "src/dxf/dxf_point.h"
+#include "src/dxf/dxf_attdef.h"
+#include "src/dxf/dxf_rect.h"
+#include "src/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 elmt_height;
+ double elmt_width;
+
+
+ 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;
+ QString Header_background;
+
+ // 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/Qetdxf/sources/dxftoqet2/dxf_create_elmt.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,1236 @@
+#include "dxf_create_elmt.h"
+
+extern struct DXF_base DXF_main_base[1];
+extern struct DXF_header DXF_input_header[500];
+extern struct DXF_table_block_record DXF_input_table_block_record[500];
+
+extern struct DXF_entities_arc DXF_input_entities_arc[1000];
+extern struct DXF_entities_line DXF_input_entities_line[100000];
+extern struct DXF_entities_attdef DXF_input_entities_attdef[1000];
+extern struct DXF_entities_attrib DXF_input_entities_attrib[1000];
+extern struct DXF_entities_circle DXF_input_entities_circle[1000];
+extern struct DXF_entities_point DXF_input_entities_point[1000];
+extern struct DXF_entities_text DXF_input_entities_text[1000];
+extern struct DXF_entities_ellipse DXF_input_entities_ellipse[1000];
+extern struct DXF_entities_insert DXF_input_entities_insert[1000];
+extern struct DXF_entities_polyline DXF_input_entities_polyline[1000];
+extern struct DXF_entities_seqend DXF_input_entities_seqend[1000];
+extern struct DXF_entities_vertex DXF_input_entities_vertex[5000];
+extern struct DXF_entities_lwpolyline DXF_input_entities_lwpolyline[1000];
+
+extern struct DXF_block_line DXF_input_block_line[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_circle DXF_input_block_circle[100][50];
+extern struct DXF_block_ellipse DXF_input_block_ellipse[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_lwpolyline DXF_input_block_lwpolyline[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_seqend DXF_input_block_seqend[100][50];
+extern struct DXF_block_text DXF_input_block_text[100][50];
+extern struct DXF_block_vertex DXF_input_block_vertex[100][500];
+
+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=QString::number(DXF_LIMMAX_x+DXF_LIMMIN_x,'f',1);
+ Create_ELMT.ELMT_definition_hotspot_y=QString::number(DXF_LIMMAX_y+DXF_LIMMIN_y,'f',1);
+
+ 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());
+
+ /* ATTDEF */
+
+ Count_entitie_attdef=DXF_main_base[0].DXF_entities_attdef_count;
+
+ Result.append(Make_ATTDEF());
+
+ /* ATTR */
+
+ Count_entitie_attr=DXF_main_base[0].DXF_entities_attrib_count;
+
+ Result.append(Make_ATTR());
+
+ /* CIRCLE */
+
+ Count_entitie_circle=DXF_main_base[0].DXF_entities_circle_count;
+
+ Result.append(Make_CIRCLE());
+
+
+
+ /* POINT */
+
+ Count_entitie_point=DXF_main_base[0].DXF_entities_point_count;
+
+ Result.append(Make_POINT());
+
+ /* TEXT */
+
+ Count_entitie_text=DXF_main_base[0].DXF_entities_text_count;
+ Result.append(Make_TEXT());
+
+ /* ELLIPSE */
+
+ Count_entitie_ellipse=DXF_main_base[0].DXF_entities_ellipse_count;
+ Result.append(Make_ELLIPSE());
+
+ /* POLYLINE */
+
+ Count_entitie_polyline=DXF_main_base[0].DXF_entities_polyline_count;
+ Result.append(Make_POLYLINE());
+
+ /* INSERT */
+
+ Count_entitie_insert=DXF_main_base[0].DXF_entities_insert_count;
+ Result.append(Make_INSERT());
+
+ /* LWPOLYLINE */
+ Count_entitie_lwpolyline=DXF_main_base[0].DXF_entities_lwpolyline_count;
+ Result.append(Make_LWPOLYLINE());
+
+ /* Close elmt description */
+
+ 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;
+ dxb_line.color="black";
+
+
+ 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";
+ db_input.rotation=0;
+
+ 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;
+
+ }
+
+ QString DXF_create_elmt::Make_ATTDEF()
+ {
+
+ dxf_attdef dxb_attdef2;
+ DXF_Text_control db_txt_check;
+
+ Result_attdef ="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_attdef)
+ {
+
+ dxb_attdef2.x=DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_10;
+ dxb_attdef2.y=-DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_20;
+ dxb_attdef2.rotation=DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_50;
+ dxb_attdef2.size=DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_40;
+ dxb_attdef2.tag="label"; //DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_2;
+ dxb_attdef2.rotate="true";
+
+ db_txt_check.TextToCheck=DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_1;
+
+ dxb_attdef2.text=db_txt_check.Text_control();
+
+ Result_attdef.append(dxb_attdef2.Create_ATTDEF());
+
+ Count_lines=Count_lines+1;
+
+
+ }
+
+ return Result_attdef;
+ }
+
+ QString DXF_create_elmt::Make_ATTR()
+ {
+
+ dxf_attdef dxb_attr;
+ DXF_Text_control db_txt_check2;
+
+ Result_attr ="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_attr)
+ {
+
+ dxb_attr.x=DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_10; // x start
+ dxb_attr.y=-DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_20; // y start
+ dxb_attr.rotation=DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_50; //text rotation
+ dxb_attr.size=DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_40; //text height
+ dxb_attr.tag="label"; //DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_2; // tag
+ dxb_attr.rotate="true";
+
+ db_txt_check2.TextToCheck=DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_1; // value
+
+ dxb_attr.text=db_txt_check2.Text_control();
+
+ Result_attr.append(dxb_attr.Create_ATTDEF());
+
+ Count_lines=Count_lines+1;
+
+
+ }
+
+ return Result_attr;
+
+ }
+
+ QString DXF_create_elmt::Make_CIRCLE()
+{
+ dxf_circle db_circle;
+
+ Result_circle="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_circle)
+ {
+
+ db_circle.x=DXF_input_entities_circle[Count_lines].DXF_entities_circle_code_10;
+ db_circle.y=-DXF_input_entities_circle[Count_lines].DXF_entities_circle_code_20;
+ db_circle.diameter=DXF_input_entities_circle[Count_lines].DXF_entities_circle_code_40*2;
+
+
+ db_circle.layer=DXF_input_entities_circle[Count_lines].DXF_entities_circle_code_8;
+ db_circle.ltype=DXF_input_entities_circle[Count_lines].DXF_entities_circle_code_6;
+ db_circle.color="black";
+ db_circle.antialias="true";
+ db_circle.line_weight="thin";
+ db_circle.filling="none";
+
+
+ Result_circle.append(db_circle.Create_CIRCLE());
+
+ Count_lines=Count_lines+1;
+
+
+ }
+
+
+ return Result_circle;
+
+}
+
+ QString DXF_create_elmt::Make_POINT()
+{
+ Result_point="";
+
+ dxf_point db_point;
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_point)
+ {
+
+ db_point.x1=DXF_input_entities_point[Count_lines].DXF_entities_point_code_10;
+ db_point.y1=-DXF_input_entities_point[Count_lines].DXF_entities_point_code_20;
+ db_point.orientation="n";
+
+ Result_point.append(db_point.Create_POINT());
+
+ Count_lines=Count_lines+1;
+ }
+
+ return Result_point;
+}
+
+ QString DXF_create_elmt::Make_TEXT()
+ {
+
+ dxf_text db_text;
+ DXF_Text_control db_txt_check;
+
+ Result_text="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_text)
+ {
+
+ db_text.QET_x=DXF_input_entities_text[Count_lines].DXF_entities_text_code_10;
+ db_text.QET_y=-DXF_input_entities_text[Count_lines].DXF_entities_text_code_20;
+ db_text.QET_rotation=DXF_input_entities_text[Count_lines].DXF_entities_text_code_50;
+ db_text.QET_size=DXF_input_entities_text[Count_lines].DXF_entities_text_code_40;
+
+
+
+ db_txt_check.TextToCheck=DXF_input_entities_text[Count_lines].DXF_entities_text_code_1;
+
+ db_text.QET_text=db_txt_check.Text_control();
+
+ Result_text.append(db_text.Create_Text());
+
+ Count_lines=Count_lines+1;
+
+
+ }
+
+ return Result_text;
+ }
+
+ QString DXF_create_elmt::Make_ELLIPSE()
+ {
+
+ dxf_ellipse db_ellipse;
+
+
+ Result_ellipse2="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_ellipse)
+ {
+
+ db_ellipse.center_x=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_10;
+ db_ellipse.center_y=-DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_20;
+ db_ellipse.major_radius_x=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_11;
+ db_ellipse.major_radius_y=-DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_21;
+ db_ellipse.ratio_of_minor=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_40;
+ db_ellipse.start=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_41;
+ db_ellipse.end2=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_42;
+ db_ellipse.LineTypeOFLine=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_6;
+ db_ellipse.LayerNameOFLine=DXF_input_entities_ellipse[Count_lines].DXF_entities_ellipse_code_8;
+ db_ellipse.Color="blue";
+ db_ellipse.Line_weight="thin";
+ db_ellipse.Filling="none";
+
+
+
+ Result_ellipse2.append(db_ellipse.Create_ELLIPSE());
+
+ Count_lines=Count_lines+1;
+
+
+ }
+
+ return Result_ellipse2;
+ }
+
+ QString DXF_create_elmt::Make_POLYLINE()
+ {
+
+ dxf_polyline db_polyline;
+
+ Polyline_vertex=DXF_main_base[0].DXF_entities_vertex_count;
+
+ Result_polyline="";
+
+ Count_lines=0;
+ count_vertex=1;
+
+ while (Count_lines<Count_entitie_polyline)
+ {
+
+ for(counter_x=0;counter_x<Polyline_vertex;counter_x++)
+ {
+
+ if (DXF_input_entities_vertex[counter_x].Master_handle_id==DXF_input_entities_polyline[Count_lines].DXF_entities_polyline_code_5)
+ {
+ db_polyline.x_vector[count_vertex]=DXF_input_entities_vertex[counter_x].DXF_entities_vertex_code_10;
+ db_polyline.y_vector[count_vertex]=-DXF_input_entities_vertex[counter_x].DXF_entities_vertex_code_20;
+ count_vertex=count_vertex+1;
+ }
+ if (count_vertex>499)
+ {
+ counter_x=Polyline_vertex+1;
+ }
+ if (count_vertex>Polyline_vertex)
+ {
+ counter_x=Polyline_vertex+1;
+ }
+
+ }
+
+ db_polyline.vector_count=count_vertex-1;
+
+ db_polyline.antialias="false";
+ db_polyline.line_style="normal";
+ db_polyline.line_weight="thin";
+ db_polyline.filling="none";
+ db_polyline.color="magenta";
+ db_polyline.closed=DXF_input_entities_polyline[Count_lines].DXF_entities_polyline_code_70;
+
+
+ db_polyline.ltype=DXF_input_entities_polyline[Count_lines].DXF_entities_polyline_code_6;
+ db_polyline.layer=DXF_input_entities_polyline[Count_lines].DXF_entities_polyline_code_8;
+
+
+
+
+ Result_polyline.append(db_polyline.Create_POLYLINE());
+
+ Count_lines=Count_lines+1;
+ count_vertex=1;
+ counter_x=0;
+
+
+
+
+ }
+
+ return Result_polyline;
+ }
+
+ QString DXF_create_elmt::Make_LWPOLYLINE()
+ {
+
+ dxf_lwpolyline db_lwpolyline;
+
+
+ Result_lwpolyline="";
+
+ Count_lines=0;
+ count_vertex=1;
+
+ while (Count_lines<=Count_entitie_lwpolyline)
+ {
+ vector_max=DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_90;
+
+ if(vector_max>0)
+ {
+ //vector_max=vector_max+1;
+
+
+ for(counter_x=0;counter_x<vector_max;counter_x++)
+ {
+
+
+ db_lwpolyline.x_vector[count_vertex]=DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_10[counter_x];
+ db_lwpolyline.y_vector[count_vertex]=-DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_20[counter_x];
+ count_vertex=count_vertex+1;
+
+ if (count_vertex>49)
+ {
+ counter_x=vector_max+2;
+ }
+ if (count_vertex>vector_max+1)
+ {
+ counter_x=vector_max+2;
+ }
+
+ }
+
+ db_lwpolyline.vector_count=vector_max;
+
+ db_lwpolyline.antialias="false";
+ db_lwpolyline.line_style="normal";
+ db_lwpolyline.line_weight="thin";
+ db_lwpolyline.filling="none";
+ db_lwpolyline.color="orange";
+ db_lwpolyline.closed=DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_70;
+
+
+ db_lwpolyline.ltype=DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_6;
+ db_lwpolyline.layer=DXF_input_entities_lwpolyline[Count_lines].DXF_entities_lwpolyline_code_8;
+
+
+
+
+ Result_lwpolyline.append(db_lwpolyline.Create_LWPOLYLINE());
+
+ Count_lines=Count_lines+1;
+ count_vertex=1;
+ counter_x=0;
+
+ }
+ else
+ {
+ Count_lines=Count_lines+1;
+ }
+
+
+
+ }
+
+ return Result_lwpolyline;
+ }
+
+ QString DXF_create_elmt::Make_INSERT()
+ {
+ Result_insert="";
+
+ Count_lines=0;
+
+ while (Count_lines<=Count_entitie_insert)
+ {
+
+ if (DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_2 == "")
+ {
+ Count_lines=Count_lines+1;
+
+ }
+ else
+ {
+
+ x_insert=0;
+ y_insert=0;
+ x_insert_scale=1;
+ y_insert_scale=1;
+
+
+ Insert_block_nr=Count_lines;
+
+ x_insert=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_10;
+ y_insert=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_20;
+ x_insert_scale=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_41;
+ y_insert_scale=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_42;
+
+ xy_rotation=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_50;
+ Name_insert=DXF_input_entities_insert[Count_lines].DXF_entities_insert_code_2;
+
+ for (Block_counter=0;Block_counter<=Count_entitie_insert;Block_counter++)
+ {
+ if(Name_insert==DXF_input_table_block_record[Block_counter].dxf_table_block_record_code_2)
+ {
+ Insert_block_nr=Block_counter;
+ Block_counter=Count_entitie_insert+1;
+ }
+
+
+ }
+
+
+
+ /* Block LINES */
+
+ Result_insert.append(Make_Block_LINES());
+
+ /* Block ARC */
+
+ Result_insert.append(Make_Block_ARC());
+
+ /* Block CIRCLE */
+
+ Result_insert.append(Make_Block_CIRCLE());
+
+ /* Block ELLIPSE */
+
+ Result_insert.append(Make_block_ELLIPSE());
+
+ /* Block POLYLINE */
+
+ Result_insert.append(Make_Block_POLYLINE());
+
+ /* Block POLYLINE */
+
+ Result_insert.append(Make_Block_LWPOLYLINE());
+
+ /* Block ATTDEF */
+
+ Result_insert.append(Make_Block_ATTDEF());
+
+ /* Block ATTRIB*/
+
+ Result_insert.append(Make_Block_ATTR());
+
+ /* Block TEXT*/
+
+ Result_insert.append(Make_Block_TEXT());
+
+ /* end of block */
+
+ Count_lines=Count_lines+1;
+
+ }
+
+
+
+ }
+
+ return Result_insert;
+ }
+
+ QString DXF_create_elmt::Make_Block_LINES()
+ {
+ Result_Block_Lines="";
+ Count_lines_block2=0;
+
+ DXF_LINE dxb_line;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_line_count[Insert_block_nr])
+ {
+
+
+ dxb_line.x1=x_insert+((DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_10)*x_insert_scale);
+ dxb_line.x2=x_insert+((DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_11)*x_insert_scale);
+ dxb_line.y1=(-y_insert)+(-(DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_20*y_insert_scale));
+ dxb_line.y2=(-y_insert)+(-(DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_21*y_insert_scale));
+ dxb_line.ltype=DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_6;
+ dxb_line.layer=DXF_input_block_line[Insert_block_nr][Count_lines_block2].DXF_block_line_code_8;
+ dxb_line.color="red";
+
+
+ Result_Block_Lines.append(dxb_line.Create_LINE());
+
+
+ Count_lines_block2=Count_lines_block2+1;
+
+ }
+
+
+ return Result_Block_Lines;
+ }
+
+ QString DXF_create_elmt::Make_Block_ARC()
+ {
+ Result_Block_Arc="";
+ Count_lines_block2=0;
+
+ dxf_arc dxb_arc;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_arc_count[Insert_block_nr])
+ {
+
+ dxb_arc.center_x=x_insert+(DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_10*x_insert_scale);
+ dxb_arc.center_y=(-y_insert)+(-(DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_20*y_insert_scale));
+ dxb_arc.radius=(DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_40*x_insert_scale);
+
+ dxb_arc.start_angle=DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_50;
+ dxb_arc.end_angle=DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_51;
+
+ dxb_arc.layer=DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_8;
+ dxb_arc.ltype=DXF_input_block_arc[Insert_block_nr][Count_lines_block2].DXF_block_arc_code_6;
+ dxb_arc.color_dxf=-1;
+ dxb_arc.color="red";
+
+
+
+ Result_Block_Arc.append(dxb_arc.Create_ARC());
+
+
+ Count_lines_block2=Count_lines_block2+1;
+
+ }
+
+
+ return Result_Block_Arc;
+ }
+
+ QString DXF_create_elmt::Make_Block_CIRCLE()
+ {
+ Result_Block_Circle="";
+ Count_lines_block2=0;
+
+ dxf_circle dxb_circle2;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_circle_count[Insert_block_nr])
+ {
+
+ dxb_circle2.x=x_insert+(DXF_input_block_circle[Insert_block_nr][Count_lines_block2].DXF_block_circle_code_10*x_insert_scale);
+ dxb_circle2.y=(-y_insert)+(-(DXF_input_block_circle[Insert_block_nr][Count_lines_block2].DXF_block_circle_code_20*y_insert_scale));
+ dxb_circle2.diameter=((DXF_input_block_circle[Insert_block_nr][Count_lines_block2].DXF_block_circle_code_40*2)*x_insert_scale);
+
+ dxb_circle2.layer=DXF_input_block_circle[Insert_block_nr][Count_lines_block2].DXF_block_circle_code_8;
+ dxb_circle2.ltype=DXF_input_block_circle[Insert_block_nr][Count_lines_block2].DXF_block_circle_code_6;
+ dxb_circle2.color="red";
+ dxb_circle2.antialias="true";
+ dxb_circle2.line_weight="thin";
+ dxb_circle2.filling="none";
+
+
+
+ Result_Block_Circle.append(dxb_circle2.Create_CIRCLE());
+
+
+ Count_lines_block2=Count_lines_block2+1;
+
+ }
+
+
+ return Result_Block_Circle;
+ }
+
+ QString DXF_create_elmt::Make_block_ELLIPSE()
+ {
+ Result_Block_ellipse="";
+ Count_lines_block2=0;
+
+ dxf_ellipse dxb_ellipse2;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_ellipse_count[Insert_block_nr])
+ {
+
+ dxb_ellipse2.center_x=x_insert+DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_10;
+ dxb_ellipse2.center_y=(-y_insert)+(-DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_20);
+ dxb_ellipse2.major_radius_x=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_11;
+ dxb_ellipse2.major_radius_y=-DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_21;
+ dxb_ellipse2.ratio_of_minor=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_40;
+ dxb_ellipse2.start=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_41;
+ dxb_ellipse2.end2=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_42;
+ dxb_ellipse2.LineTypeOFLine=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_6;
+ dxb_ellipse2.LayerNameOFLine=DXF_input_block_ellipse[Insert_block_nr][Count_lines].DXF_block_ellipse_code_8;
+ dxb_ellipse2.Color="red";
+ dxb_ellipse2.Line_weight="thin";
+ dxb_ellipse2.Filling="none";
+
+
+ Result_Block_ellipse.append(dxb_ellipse2.Create_ELLIPSE());
+
+
+ Count_lines_block2=Count_lines_block2+1;
+
+ }
+
+
+ return Result_Block_ellipse;
+
+
+ }
+
+ QString DXF_create_elmt::Make_Block_POLYLINE()
+ {
+ Result_Block_polyline="";
+ Count_lines_block2=0;
+ Polyline_vertex=DXF_main_base[0].DXF_block_vertex_count[Insert_block_nr];
+
+ dxf_polyline dxb_polyline2;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_polyline_count[Insert_block_nr])
+ {
+
+ Count_lines2=0;
+ count_vertex2=1;
+
+ Count_block_polyline=DXF_main_base[0].DXF_block_polyline_count[Insert_block_nr];
+
+ while (Count_lines2<=Count_block_polyline)
+ {
+
+ for(counter_x=0;counter_x<Polyline_vertex;counter_x++)
+ {
+
+ if (DXF_input_block_vertex[Insert_block_nr][counter_x].Master_block_handle_id==DXF_input_block_polyline[Insert_block_nr][Count_lines2].DXF_block_polyline_code_5)
+ {
+ dxb_polyline2.x_vector[count_vertex2]=x_insert+DXF_input_block_vertex[Insert_block_nr][counter_x].DXF_block_vertex_code_10;
+ dxb_polyline2.y_vector[count_vertex2]=(-y_insert)+(-DXF_input_block_vertex[Insert_block_nr][counter_x].DXF_block_vertex_code_20);
+ count_vertex2=count_vertex2+1;
+ }
+ if (count_vertex2>49)
+ {
+ counter_x=Polyline_vertex+1;
+ }
+ if (count_vertex2>Polyline_vertex)
+ {
+ counter_x=Polyline_vertex+1;
+ }
+
+ }
+
+ dxb_polyline2.vector_count=count_vertex;
+
+ dxb_polyline2.antialias="false";
+ dxb_polyline2.line_style="normal";
+ dxb_polyline2.line_weight="thin";
+ dxb_polyline2.filling="none";
+ dxb_polyline2.color="green";
+ dxb_polyline2.closed=DXF_input_block_polyline[Insert_block_nr][Count_lines2].DXF_block_polyline_code_70;
+
+
+ dxb_polyline2.ltype=DXF_input_block_polyline[Insert_block_nr][Count_lines2].DXF_block_polyline_code_6;
+ dxb_polyline2.layer=DXF_input_block_polyline[Insert_block_nr][Count_lines2].DXF_block_polyline_code_8;
+
+
+
+
+ Result_Block_polyline.append(dxb_polyline2.Create_POLYLINE());
+
+ Count_lines2=Count_lines2+1;
+ count_vertex2=1;
+ counter_x=0;
+
+
+
+
+
+ }
+ Count_lines_block2=Count_lines_block2+1;
+
+ }
+
+
+
+ return Result_Block_polyline;
+ }
+
+ QString DXF_create_elmt::Make_Block_LWPOLYLINE()
+ {
+ dxf_lwpolyline dxb_lwpolyline;
+
+ Count_lines_block2=0;
+ Count_lines2=0;
+
+ Result_Block_lwpolyline="";
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_lwpolyline_count[Insert_block_nr])
+ {
+
+
+ Count_block_lwpolyline2=DXF_main_base[0].DXF_block_lwpolyline_count[Insert_block_nr];
+
+ while (Count_lines2<Count_block_lwpolyline2)
+ {
+ vector_max=DXF_input_block_lwpolyline[Insert_block_nr][Count_lines2].DXF_block_lwpolyline_code_90;
+
+ if(vector_max>0)
+ {
+ //vector_max=vector_max+1;
+
+
+ for(counter_x=0;counter_x<vector_max;counter_x++)
+ {
+
+
+ dxb_lwpolyline.x_vector[count_vertex]=x_insert+DXF_input_block_lwpolyline[Insert_block_nr][Count_lines_block2].DXF_block_lwpolyline_code_10[counter_x];
+ dxb_lwpolyline.y_vector[count_vertex]=(-y_insert)+(-DXF_input_block_lwpolyline[Insert_block_nr][Count_lines_block2].DXF_block_lwpolyline_code_20[counter_x]);
+ count_vertex=count_vertex+1;
+
+ if (count_vertex>49)
+ {
+ counter_x=vector_max+2;
+ }
+ if (count_vertex>vector_max+1)
+ {
+ counter_x=vector_max+2;
+ }
+
+ }
+
+ dxb_lwpolyline.vector_count=vector_max;
+
+ dxb_lwpolyline.antialias="false";
+ dxb_lwpolyline.line_style="normal";
+ dxb_lwpolyline.line_weight="thin";
+ dxb_lwpolyline.filling="none";
+ dxb_lwpolyline.color="purple";
+ dxb_lwpolyline.closed=DXF_input_block_lwpolyline[Insert_block_nr][Count_lines_block2].DXF_block_lwpolyline_code_70;
+
+
+ dxb_lwpolyline.ltype=DXF_input_block_lwpolyline[Insert_block_nr][Count_lines_block2].DXF_block_lwpolyline_code_6;
+ dxb_lwpolyline.layer=DXF_input_block_lwpolyline[Insert_block_nr][Count_lines_block2].DXF_block_lwpolyline_code_8;
+
+
+
+
+ Result_Block_lwpolyline.append(dxb_lwpolyline.Create_LWPOLYLINE());
+
+ Count_lines_block2=Count_lines_block2+1;
+ count_vertex=1;
+ counter_x=0;
+ Count_lines2=Count_lines2+1;
+
+ }
+ else
+ {
+ Count_lines2=Count_lines2+1;
+ }
+
+
+
+ }
+
+
+
+
+ }
+
+
+
+ return Result_Block_lwpolyline;
+ }
+
+ QString DXF_create_elmt::Make_Block_ATTDEF()
+ {
+
+ Count_lines_block2=0;
+ Result_Block_attdef="";
+
+ dxf_attdef dxb_attdef3;
+ DXF_Text_control db_txt_check4;
+
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_attdef_count[Insert_block_nr])
+ {
+
+ dxb_attdef3.x=DXF_input_block_attdef[Insert_block_nr][Count_lines_block2].DXF_block_attdef_code_10;
+ dxb_attdef3.y=-DXF_input_block_attdef[Insert_block_nr][Count_lines_block2].DXF_block_attdef_code_20;
+ dxb_attdef3.rotation=DXF_input_block_attdef[Insert_block_nr][Count_lines_block2].DXF_block_attdef_code_50;
+ dxb_attdef3.size=DXF_input_block_attdef[Insert_block_nr][Count_lines_block2].DXF_block_attdef_code_40*((x_insert_scale+y_insert_scale)/2);
+ dxb_attdef3.tag="label"; //DXF_input_entities_attdef[Count_lines].DXF_entities_attdef_code_2;
+ dxb_attdef3.rotate="true";
+ dxb_attdef3.color_attdef="blue";
+
+ db_txt_check4.TextToCheck=DXF_input_block_attdef[Insert_block_nr][Count_lines_block2].DXF_block_attdef_code_1;
+
+ dxb_attdef3.text=db_txt_check4.Text_control();
+
+ Result_Block_attdef.append(dxb_attdef3.Create_ATTDEF());
+
+ Count_lines_block2=Count_lines_block2+1;
+
+
+ }
+
+ return Result_Block_attdef;
+ }
+
+ QString DXF_create_elmt::Make_Block_ATTR()
+ {
+
+ Count_lines_block2=0;
+
+ Result_Block_attr="";
+
+ dxf_attr dxb_attr2;
+ DXF_Text_control db_txt_check3;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_attrib_count[Insert_block_nr])
+ {
+
+ dxb_attr2.x=DXF_input_block_attrib[Insert_block_nr][Count_lines_block2].DXF_block_attrib_code_10; // x start
+ dxb_attr2.y=-DXF_input_block_attrib[Insert_block_nr][Count_lines_block2].DXF_block_attrib_code_20; // y start
+ dxb_attr2.rotation=DXF_input_block_attrib[Insert_block_nr][Count_lines_block2].DXF_block_attrib_code_50; //text rotation
+ dxb_attr2.size=DXF_input_block_attrib[Insert_block_nr][Count_lines_block2].DXF_block_attrib_code_40*((x_insert_scale+y_insert_scale)/2); //text height
+ dxb_attr2.tag="label"; //DXF_input_entities_attrib[Count_lines].DXF_entities_attrib_code_2; // tag
+ dxb_attr2.rotate="true";
+ dxb_attr2.color_attrib="red";
+
+ db_txt_check3.TextToCheck=DXF_input_block_attrib[Insert_block_nr][Count_lines].DXF_block_attrib_code_1; // value
+
+ dxb_attr2.text=db_txt_check3.Text_control();
+
+ Result_Block_attr.append(dxb_attr2.Create_ATTR());
+
+ Count_lines_block2=Count_lines_block2+1;
+ }
+
+ return Result_Block_attr;
+ }
+
+ QString DXF_create_elmt::Make_Block_TEXT()
+ {
+ Count_lines_block2=0;
+ Result_Block_Text="";
+
+ dxf_text db_text_block;
+ DXF_Text_control db_txt_check_block;
+
+ while(Count_lines_block2<DXF_main_base[0].DXF_block_text_count[Insert_block_nr])
+ {
+ db_text_block.QET_x=DXF_input_block_text[Insert_block_nr][Count_lines_block2].DXF_block_text_code_10;
+ db_text_block.QET_y=-DXF_input_block_text[Insert_block_nr][Count_lines_block2].DXF_block_text_code_20;
+ db_text_block.QET_rotation=DXF_input_block_text[Insert_block_nr][Count_lines_block2].DXF_block_text_code_50;
+ db_text_block.QET_size=DXF_input_block_text[Insert_block_nr][Count_lines_block2].DXF_block_text_code_40*((x_insert_scale+y_insert_scale)/2);
+
+
+
+ db_txt_check_block.TextToCheck=DXF_input_block_text[Insert_block_nr][Count_lines_block2].DXF_block_text_code_1;
+
+ db_text_block.QET_text=db_txt_check_block.Text_control();
+
+ Result_Block_Text.append(db_text_block.Create_Text());
+
+ Count_lines_block2=Count_lines_block2+1;
+ }
+ return Result_Block_Text;
+ }
Added: branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxf_create_elmt.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,142 @@
+#ifndef DXF_CREATE_ELMT_H
+#define DXF_CREATE_ELMT_H
+
+//#include <QMainWindow>
+#include "dxftoqet2/src/dxf_data.h"
+#include "dxftoqet2/src/qet_base_types/baseelmt.h"
+#include "dxftoqet_mainwindow.h"
+#include "ui_dxftoqet_mainwindow.h"
+
+#include "dxftoqet2/src/dxf/dxf_line.h"
+#include "dxftoqet2/src/dxf/dxf_point.h"
+#include "dxftoqet2/src/dxf/dxf_attdef.h"
+#include "dxftoqet2/src/dxf/dxf_arc.h"
+#include "dxftoqet2/src/dxf/dxf_circle.h"
+#include "dxftoqet2/src/dxf/dxf_attr.h"
+#include "dxftoqet2/src/dxf/dxf_text.h"
+#include "dxftoqet2/src/dxf/dxf_ellipse.h"
+#include "dxftoqet2/src/dxf/dxf_polyline.h"
+#include "dxftoqet2/src/dxf/dxf_lwpolyline.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 Make_ATTDEF();
+ QString Make_ATTR();
+ QString Make_CIRCLE();
+ QString Make_POINT();
+ QString Make_TEXT();
+ QString Make_ELLIPSE();
+ QString Make_INSERT();
+ QString Make_POLYLINE();
+ QString Make_LWPOLYLINE();
+
+ QString Make_Block_LINES();
+ QString Make_Block_ARC();
+ QString Make_Block_ATTDEF();
+ QString Make_Block_ATTR();
+ QString Make_Block_CIRCLE();
+ QString Make_Block_POINT();
+ QString Make_block_TEXT();
+ QString Make_block_ELLIPSE();
+ QString Make_Block_INSERT();
+ QString Make_Block_POLYLINE();
+ QString Make_Block_LWPOLYLINE();
+ QString Make_Block_TEXT();
+
+ QString Result;
+ QString Result_line;
+ QString Result_arc;
+ QString Result_input;
+ QString Result_terminal;
+ QString Result_attdef;
+ QString Result_attr;
+ QString Result_circle;
+ QString Result_point;
+ QString Result_text;
+ QString Result_ellipse;
+ QString Result_ellipse2;
+ QString Result_insert;
+ QString Result_polyline;
+ QString Result_lwpolyline;
+
+ QString Result_Block_Lines;
+ QString Result_Block_Arc;
+ QString Result_Block_attdef;
+ QString Result_Block_attr;
+ QString Result_Block_Circle;
+ QString Result_Block_ellipse;
+ QString Result_Block_polyline;
+ QString Result_Block_lwpolyline;
+ QString Result_Block_Text;
+
+ 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 counter_x;
+ int count_vertex;
+ int vector_max;
+
+ int count_vertex2;
+ int vector_max2;
+ int Count_lines2;
+
+ int Count_block_polyline;
+ int Count_block_lwpolyline2;
+
+ int Count_entitie_line;
+ int Count_entitie_arc;
+ int Count_entitie_attdef;
+ int Count_entitie_attr;
+ int Count_entitie_circle;
+ int Count_entitie_point;
+ int Count_entitie_text;
+ int Count_entitie_ellipse;
+ int Count_entitie_insert;
+ int Count_entitie_polyline;
+ int Count_entitie_lwpolyline;
+
+ int Count_lines;
+ int Count_lines_block;
+ int Count_lines_block2;
+ int Count_for;
+
+ int Insert_block_nr;
+ int Block_counter;
+
+ int32_t Polyline_vertex;
+ int Block_Polyline_vertex;
+
+
+ double x_insert;
+ double y_insert;
+
+ double x_insert_scale;
+ double y_insert_scale;
+
+ double xy_rotation;
+
+ QString Name_insert;
+
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_CREATE_ELMT_H
Added: branches/Qetdxf/sources/dxftoqet2/dxftoqet2.pri
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxftoqet2.pri (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxftoqet2.pri 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,70 @@
+ SOURCES += \
+ $$PWD/dxftoqet_mainwindow.cpp \
+ $$PWD/src/dxf_data.cpp \
+ $$PWD/src/dxf_load.cpp \
+ $$PWD/src/dxf_split.cpp \
+ $$PWD/src/split_csv.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_line.cpp \
+ $$PWD/src/qet_base_types/baseelmt.cpp \
+ $$PWD/dxf_create_elmt.cpp \
+ $$PWD/src/csv_build_table.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_terminal.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_input.cpp \
+ $$PWD/src/dxf/dxf_line.cpp \
+ $$PWD/src/dxf/dxf_point.cpp \
+ $$PWD/src/dxf/dxf_arc.cpp \
+ $$PWD/src/dxf/dxf_circle.cpp \
+ $$PWD/src/dxf/dxf_attdef.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_arc.cpp \
+ $$PWD/src/dxf_control/dxf_ltype_control.cpp \
+ $$PWD/src/dxf_control/dxf_text_control.cpp \
+ $$PWD/src/dxf_control/dxf_layer_control.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_circle.cpp \
+ $$PWD/csv_create_elmt.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_rectangel.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_text.cpp \
+ $$PWD/src/dxf/dxf_text.cpp \
+ $$PWD/src/dxf/dxf_rect.cpp \
+ $$PWD/src/dxf/dxf_attr.cpp \
+ $$PWD/src/dxf/dxf_ellipse.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_ellipse.cpp \
+ $$PWD/src/dxf_base_types/dxf_base_polyline.cpp \
+ $$PWD/src/dxf/dxf_polyline.cpp \
+ $$PWD/src/dxf/dxf_lwpolyline.cpp
+
+HEADERS += \
+ $$PWD/dxftoqet_mainwindow.h \
+ $$PWD/src/dxf_data.h \
+ $$PWD/src/dxf_load.h \
+ $$PWD/src/dxf_split.h \
+ $$PWD/src/split_csv.h \
+ $$PWD/src/dxf_base_types/dxf_base_line.h \
+ $$PWD/src/qet_base_types/baseelmt.h \
+ $$PWD/dxf_create_elmt.h \
+ $$PWD/src/csv_build_table.h \
+ $$PWD/src/dxf_base_types/dxf_base_terminal.h \
+ $$PWD/src/dxf_base_types/dxf_base_input.h \
+ $$PWD/src/dxf/dxf_line.h \
+ $$PWD/src/dxf/dxf_point.h \
+ $$PWD/src/dxf/dxf_arc.h \
+ $$PWD/src/dxf/dxf_circle.h \
+ $$PWD/src/dxf/dxf_attdef.h \
+ $$PWD/src/dxf_base_types/dxf_base_arc.h \
+ $$PWD/src/dxf_ltype_control.h \
+ $$PWD/src/dxf_control/dxf_ltype_control.h \
+ $$PWD/src/dxf_control/dxf_text_control.h \
+ $$PWD/src/dxf_control/dxf_layer_control.h \
+ $$PWD/src/dxf_base_types/dxf_base_circle.h \
+ $$PWD/csv_create_elmt.h \
+ $$PWD/src/dxf_base_types/dxf_base_rectangel.h \
+ $$PWD/src/dxf_base_types/dxf_base_text.h \
+ $$PWD/src/dxf/dxf_text.h \
+ $$PWD/src/dxf/dxf_rect.h \
+ $$PWD/src/dxf/dxf_attr.h \
+ $$PWD/src/dxf/dxf_ellipse.h \
+ $$PWD/src/dxf_base_types/dxf_base_ellipse.h \
+ $$PWD/src/dxf_base_types/dxf_base_polyline.h \
+ $$PWD/src/dxf/dxf_polyline.h \
+ $$PWD/src/dxf/dxf_lwpolyline.h
+
+FORMS += $$PWD/dxftoqet_mainwindow.ui
Added: branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,1558 @@
+#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][500];
+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[5000];
+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);
+
+ on_Open_config_file_clicked();
+
+ ui->csv_header_bask_color->addItem("none");
+ ui->csv_header_bask_color->addItem("black");
+ ui->csv_header_bask_color->addItem("white");
+ ui->csv_header_bask_color->addItem("red");
+ ui->csv_header_bask_color->addItem("green");
+ ui->csv_header_bask_color->addItem("blue");
+ ui->csv_header_bask_color->addItem("gray");
+ ui->csv_header_bask_color->addItem("cyan");
+ ui->csv_header_bask_color->addItem("orange");
+ ui->csv_header_bask_color->addItem("purple");
+ ui->csv_header_bask_color->addItem("magenta");
+ ui->csv_header_bask_color->addItem("brun");
+ ui->csv_header_bask_color->addItem("yello");
+ ui->csv_header_bask_color->addItem("lightgray");
+
+ ui->Block_color->addItem("none");
+ ui->Block_color->addItem("black");
+ ui->Block_color->addItem("white");
+ ui->Block_color->addItem("red");
+ ui->Block_color->addItem("green");
+ ui->Block_color->addItem("blue");
+ ui->Block_color->addItem("gray");
+ ui->Block_color->addItem("cyan");
+ ui->Block_color->addItem("orange");
+ ui->Block_color->addItem("purple");
+ ui->Block_color->addItem("magenta");
+ ui->Block_color->addItem("brun");
+ ui->Block_color->addItem("yello");
+ ui->Block_color->addItem("lightgray");
+
+ ui->Entitie_color->addItem("none");
+ ui->Entitie_color->addItem("black");
+ ui->Entitie_color->addItem("white");
+ ui->Entitie_color->addItem("red");
+ ui->Entitie_color->addItem("green");
+ ui->Entitie_color->addItem("blue");
+ ui->Entitie_color->addItem("gray");
+ ui->Entitie_color->addItem("cyan");
+ ui->Entitie_color->addItem("orange");
+ ui->Entitie_color->addItem("purple");
+ ui->Entitie_color->addItem("magenta");
+ ui->Entitie_color->addItem("brun");
+ ui->Entitie_color->addItem("yello");
+ ui->Entitie_color->addItem("lightgray");
+
+}
+
+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();
+ DXF_main_base[0].dxf_savepath=Config_QET_User_Symbols;//"../.qet/elements"; //DXF_main_base[0].dxf_dir;
+
+ ui->dxf_file_path_save->setText(DXF_main_base[0].dxf_savepath);
+
+
+ FileType=DXF_main_base[0].dxf_openfile.split(".").last();
+ FileName=DXF_main_base[0].dxf_openfile.split(".").first().toLower();
+
+ Filename2=FileName.remove(QRegExp("[+-/#_=<>]"));
+
+ DXF_main_base[0].dxf_openfile=Filename2.toLower();
+ 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;
+ DXF_main_base[0].DXF_ELMT_Name_text_fr=FileName;
+
+ ui->elmt_lang_en->setText(FileName);
+ ui->elmt_lang_fr->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);
+
+ status1="file read ";
+ status1.append(FileName);
+ status1.append(" into program");
+ ui->statusBar->showMessage(status1);
+
+ QTextStream in(&file);
+ DXF_main_base[0].dxf_text_all = in.readAll();
+
+ file.close();
+
+ 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;
+ main_sw3=0;
+ 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;
+ main_sw2=0;
+ 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()
+{
+
+ //DXF_main_base[0].dxf_openfile=ui->dxf_open_file->text();
+ if (main_sw3==1)
+ {
+ QFile file(DXF_main_base[0].dxf_savepath + "/" + 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_savepath + "/" + 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_count));
+
+ if (DXF_main_base[0].DXF_entities_underlay_count>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>4999)
+ {
+
+ 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);
+
+ status1="file ";
+ status1.append(FileName);
+ status1.append(" into table");
+ ui->statusBar->showMessage(status1);
+
+ DXF_Block_table();
+
+}
+
+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);
+
+ ui->dxf_log->setPlainText(log_file);
+
+ CSV_Load_QTable();
+
+ status1="CSV file ";
+ status1.append(FileName);
+ status1.append(" into table");
+ ui->statusBar->showMessage(status1);
+
+
+ }
+ else
+ {
+ log_file.append("not a CSV file, load other file or try a other option \n");
+ }
+
+}
+
+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");
+
+
+ ui->csv_header_bask_color->addItem("none");
+ ui->csv_header_bask_color->addItem("black");
+ ui->csv_header_bask_color->addItem("white");
+ ui->csv_header_bask_color->addItem("red");
+ ui->csv_header_bask_color->addItem("green");
+ ui->csv_header_bask_color->addItem("blue");
+ ui->csv_header_bask_color->addItem("gray");
+ ui->csv_header_bask_color->addItem("cyan");
+ ui->csv_header_bask_color->addItem("orange");
+ ui->csv_header_bask_color->addItem("purple");
+ ui->csv_header_bask_color->addItem("magenta");
+ ui->csv_header_bask_color->addItem("brun");
+ ui->csv_header_bask_color->addItem("yello");
+ ui->csv_header_bask_color->addItem("lightgray");
+
+
+ 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(6,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");
+
+ index = model2->index(5,col,QModelIndex());
+ model2->setData(index,"none");
+
+ 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");
+
+ index = model2->index(5,0,QModelIndex());
+ model2->setData(index,"Background color");
+
+
+ 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<6;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();
+
+ DXF_main_base[0].csv_header_background=ui->csv_header_bask_color->currentText();
+
+ }
+
+ Result4=NewCSV.Make_ELMT();
+
+ ui->ELMT_result->setPlainText(Result4);
+
+ status1="CSV file ";
+ status1.append(FileName);
+ status1.append(" created as ELMT");
+ ui->statusBar->showMessage(status1);
+
+
+}
+
+void DXFtoQET_MainWindow::on_CSV_create_qet_clicked()
+{
+
+}
+
+void DXFtoQET_MainWindow::on_create_elmt_clicked()
+{
+ Result ="";
+
+
+ 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);
+
+ status1="file ";
+ status1.append(FileName);
+ status1.append(" created as ELMT");
+ ui->statusBar->showMessage(status1);
+ }
+ 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();
+
+}
+
+void DXFtoQET_MainWindow::on_savepath_clicked()
+{
+ DXF_main_base[0].dxf_savepath = QFileDialog::getExistingDirectory(this, tr("Open Directory"),DXF_main_base[0].dxf_dir ,QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
+
+ ui->dxf_file_path_save->setText(DXF_main_base[0].dxf_savepath);
+
+
+
+
+}
+
+void DXFtoQET_MainWindow::DXF_Block_table()
+{
+
+ model3=new QStandardItemModel(100,46,this);
+ ui->Block_Items_2->setModel(model3);
+
+ List3.append("Block n°");
+
+ List3.append("3dface");
+ List3.append("3dsolid");
+ List3.append("acad_proxy_entity");
+ List3.append("arc");
+ List3.append("attdef");
+ List3.append("attr");
+ List3.append("body");
+ List3.append("circle");
+ List3.append("dimension");
+ List3.append("ellipse");
+ List3.append("hatch");
+ List3.append("helix");
+ List3.append("image");
+ List3.append("insert");
+ List3.append("leader");
+ List3.append("light");
+ List3.append("line");
+ List3.append("lwpolyline");
+ List3.append("mesh");
+ List3.append("mline");
+ List3.append("mleaderstyle");
+ List3.append("mleader");
+ List3.append("mtext");
+ List3.append("oleframe");
+ List3.append("oleframe2");
+ List3.append("point");
+ List3.append("polyline");
+ List3.append("ray");
+ List3.append("region");
+ List3.append("section");
+ List3.append("seqend");
+ List3.append("shape");
+ List3.append("solid");
+ List3.append("spline");
+ List3.append("sun");
+ List3.append("surface");
+ List3.append("table");
+ List3.append("text");
+ List3.append("tolerance");
+ List3.append("trace");
+ List3.append("underlay");
+ List3.append("vertex");
+ List3.append("viewport");
+ List3.append("wipeout");
+ List3.append("xline");
+
+
+ /*for (int xcol=1;xcol<46;xcol++)
+ {
+ List3.append(QString::number(xcol));
+
+ }*/
+
+ model3->setHorizontalHeaderLabels(List3);
+
+
+ int blockcount =0;
+
+ for (int row2=0; row2<99;row2++)
+ {
+
+ QModelIndex index = model3->index(row2,0,QModelIndex());
+ model3->setData(index,DXF_input_table_block_record[row2].dxf_table_block_record_code_2.remove(QRegExp("[$*+-/\_=#<>]")));
+
+ blockcount=blockcount+1;
+
+ index = model3->index(row2,1,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_3dface_count[row2]));
+
+ index = model3->index(row2,2,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_3dsolid_count[row2]));
+
+ index = model3->index(row2,3,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_acad_proxy_entity_count[row2]));
+
+ index = model3->index(row2,4,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_arc_count[row2]));
+
+ index = model3->index(row2,5,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_attdef_count[row2]));
+
+ index = model3->index(row2,6,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_attrib_count[row2]));
+
+ index = model3->index(row2,7,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_body_count[row2]));
+
+ index = model3->index(row2,8,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_circle_count[row2]));
+
+ index = model3->index(row2,9,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_dimension_count[row2]));
+
+ index = model3->index(row2,10,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_ellipse_count[row2]));
+
+ index = model3->index(row2,11,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_hatch_count[row2]));
+
+ index = model3->index(row2,12,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_helix_count[row2]));
+
+ index = model3->index(row2,13,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_image_count[row2]));
+
+ index = model3->index(row2,14,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_insert_count[row2]));
+
+ index = model3->index(row2,15,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_leader_count[row2]));
+
+ index = model3->index(row2,16,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_light_count[row2]));
+
+ index = model3->index(row2,17,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_line_count[row2]));
+
+ index = model3->index(row2,18,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_lwpolyline_count[row2]));
+
+ index = model3->index(row2,19,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_mesh_count[row2]));
+
+ index = model3->index(row2,20,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_mleaderstyle_count[row2]));
+
+ index = model3->index(row2,21,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_mleader_count[row2]));
+
+ index = model3->index(row2,22,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_mline_count[row2]));
+
+ index = model3->index(row2,23,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_mtext_count[row2]));
+
+ index = model3->index(row2,24,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_ole2frame_count[row2]));
+
+ index = model3->index(row2,25,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_oleframe_count[row2]));
+
+ index = model3->index(row2,26,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_point_count[row2]));
+
+ index = model3->index(row2,27,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_polyline_count[row2]));
+
+ index = model3->index(row2,28,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_ray_count[row2]));
+
+ index = model3->index(row2,29,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_region_count[row2]));
+
+
+
+ index = model3->index(row2,30,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_section_count[row2]));
+
+ index = model3->index(row2,31,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_seqend_count[row2]));
+
+ index = model3->index(row2,32,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_shape_count[row2]));
+
+ index = model3->index(row2,33,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_solid_count[row2]));
+
+ index = model3->index(row2,34,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_spline_count[row2]));
+
+ index = model3->index(row2,35,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_sun_count[row2]));
+
+ index = model3->index(row2,36,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_surface_count[row2]));
+
+ index = model3->index(row2,37,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_table_count[row2]));
+
+ index = model3->index(row2,38,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_text_count[row2]));
+
+ index = model3->index(row2,39,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_tolerance_count[row2]));
+
+ index = model3->index(row2,40,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_trace_count[row2]));
+
+ index = model3->index(row2,41,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_underlay_count[row2]));
+
+ index = model3->index(row2,42,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_vertex_count[row2]));
+
+ index = model3->index(row2,43,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_viewport_count[row2]));
+
+ index = model3->index(row2,44,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_wipeout_count[row2]));
+
+ index = model3->index(row2,45,QModelIndex());
+ model3->setData(index,QString::number(DXF_main_base[0].DXF_block_xline_count[row2]));
+ }
+
+ ui->Block_Items_2->resizeColumnsToContents();
+
+
+
+ ui->Block_Items_2->show();
+
+
+
+
+}
+
+void DXFtoQET_MainWindow::on_savepath_2_clicked()
+{
+ Config_QET_User_Symbols = QFileDialog::getExistingDirectory(this, tr("Open Directory"),DXF_main_base[0].dxf_dir ,QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
+
+ ui->QET_user_symbole_path_save->setText(Config_QET_User_Symbols);
+
+ DXF_main_base[0].dxf_savepath=Config_QET_User_Symbols;
+
+
+}
+
+void DXFtoQET_MainWindow::on_Save_config_file_clicked()
+{
+ Config_save_to_file="";
+
+ Config_save_to_file.append(Config_QET_User_Symbols);
+ Config_save_to_file.append("\n");
+
+ QFile file( "..//DXFtoQET.cfg");
+
+ if (!file.open(QFile::WriteOnly | QFile::Text)) {
+ QMessageBox::warning(this, tr("Application"),
+ tr("Cannot write file %1:\n%2.")
+ .arg("DXFtoQET.cfg")
+ .arg(file.errorString()));
+ return;
+ }
+
+ QTextStream out(&file);
+ out << Config_save_to_file;
+
+ file.close();
+
+ DXF_main_base[0].dxf_savepath=Config_QET_User_Symbols;
+ ui->dxf_file_path_save->setText(DXF_main_base[0].dxf_savepath);
+ ui->dxf_file_path_save->show();
+
+}
+
+void DXFtoQET_MainWindow::on_Open_config_file_clicked()
+{
+ QFile file( "..//DXFtoQET.cfg");
+
+ if (!file.open(QFile::ReadOnly | QFile::Text))
+ {
+ QMessageBox::warning(this, tr("Application"),
+ tr("Cannot read file %1:\n%2.")
+ .arg("DXFtoQET.cfg")
+ .arg(file.errorString()));
+ }
+
+ QTextStream in(&file);
+
+ Config_in_read_all=in.readAll();
+
+ file.close();
+
+
+ Config_list=Config_in_read_all.split("\n");
+ Config_save_to_file=Config_list[0];
+ Config_QET_User_Symbols=Config_list[0];
+
+ DXF_main_base[0].dxf_savepath=Config_QET_User_Symbols;
+ ui->QET_user_symbole_path_save->setText(Config_QET_User_Symbols);
+ ui->dxf_file_path_save->setText(Config_list[0]);
+ ui->dxf_file_path_save->show();
+
+ ui->QET_user_symbole_path_save->show();
+
+}
+
Added: branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,127 @@
+#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 status1;
+
+ QString FileType;
+ QString FileName;
+ QString Filename2;
+ QString Config_QET_User_Symbols;
+ QString Config_DXF_Block_color;
+ QString Config_DXF_Entities_color;
+ QString Config_save_to_file;
+ QString Config_in_read_all;
+ QStringList Config_list;
+
+ QString Result;
+ QString Result4;
+
+ QStandardItemModel *model;
+ QStandardItemModel *model2;
+ QStandardItemModel *model3;
+ QAbstractItemModel *model4;
+
+ QStringList List2;
+ QStringList List3;
+
+ void CSV_Load_QTable();
+ void CSV_Load_settings();
+ void DXF_Block_table();
+
+ 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();
+
+
+
+ void on_savepath_clicked();
+
+ void on_savepath_2_clicked();
+
+ void on_Save_config_file_clicked();
+
+ void on_Open_config_file_clicked();
+
+ private:
+ Ui::DXFtoQET_MainWindow *ui;
+};
+
+#endif // DXFTOQET_MAINWINDOW_H
Added: branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.ui
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.ui (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/dxftoqet_mainwindow.ui 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,3210 @@
+<?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="Expanding" vsizetype="Expanding">
+ <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>956</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>Open path</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>
+ <layout class="QHBoxLayout" name="horizontalLayout_10">
+ <item>
+ <widget class="QLabel" name="dxf_line_counter_3">
+ <property name="text">
+ <string>Save path</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_11">
+ <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_save">
+ <property name="minimumSize">
+ <size>
+ <width>450</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="savepath">
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>20</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </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="enabled">
+ <bool>false</bool>
+ </property>
+ <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>2</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>871</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>2</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><html><head/><body><p align="center"><span style=" font-size:16pt; font-weight:600;">TABLES</span></p></body></html></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 class="QTableView" name="Block_Items_2">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>641</width>
+ <height>541</height>
+ </rect>
+ </property>
+ </widget>
+ <widget class="QPlainTextEdit" name="plainTextEdit_3">
+ <property name="geometry">
+ <rect>
+ <x>650</x>
+ <y>10</y>
+ <width>201</width>
+ <height>541</height>
+ </rect>
+ </property>
+ <property name="plainText">
+ <string>01 3dface();
+02 3dsolid();
+03 acad_proxy_entity();
+04 arc(converted);
+05 attdef(converted);
+06 attr(converted);
+07 body();
+08 circle(converted);
+09 dimension();
+10 ellipse(converted);
+11 hatch();
+12 helix();
+13 image();
+14 insert();
+15 leader();
+16 light();
+17 line(converted);
+18 lwpolyline(conver ted);
+19 mesh();
+20 mline();
+21 mleaderstyle();
+22 mleader();
+23 mtext();
+24 oleframe();
+25 oleframe2();
+26 point();
+27 polyline(converted);
+28 ray();
+29 region();
+30 section();
+31 seqend();
+32 shape();
+33 solid();
+34 spline();
+35 sun();
+36 surface();
+37 table();
+38 text(converted);
+39 tolerance();
+40 trace();
+41 underlay();
+42 vertex(converted);
+43 viewport();
+44 wipeout();
+45 xline();</string>
+ </property>
+ </widget>
+ </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>697</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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>POINT</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>TEXT</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string><html><head/><body><p align="center">VERTEX</p></body></html></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="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>POLYLINE</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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);
+border-width: 2px;
+border-color: rgb(170, 0, 0);</string>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="0">
+ <widget class="QLabel" name="label_29">
+ <property name="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>CIRCLE</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>ELLIPSE</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>ATTDEF</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>LINE</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>ARC</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="2">
+ <widget class="QLabel" name="label_39">
+ <property name="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string><html><head/><body><p align="center">LWPOLYLINE</p></body></html></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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string><html><head/><body><p align="center">INSERT</p></body></html></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="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>ATTRIB</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </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="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="8" column="6" rowspan="5" 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>
+ <item row="5" column="6" colspan="2">
+ <widget class="QLabel" name="label_81">
+ <property name="styleSheet">
+ <string notr="true">BACKGROUND:rgb(165, 198, 130)</string>
+ </property>
+ <property name="text">
+ <string>Converted</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="6" colspan="2">
+ <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="3" column="6" colspan="2">
+ <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>
+ </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>
+ <widget class="QLabel" name="label_80">
+ <property name="maximumSize">
+ <size>
+ <width>140</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Header background</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="csv_header_bask_color"/>
+ </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>
+ <widget class="QPlainTextEdit" name="plainTextEdit_2">
+ <property name="geometry">
+ <rect>
+ <x>720</x>
+ <y>410</y>
+ <width>141</width>
+ <height>191</height>
+ </rect>
+ </property>
+ <property name="plainText">
+ <string>Use colum :
+1 = use colum thise colum for conversion
+2= do not use this colum for conversion</string>
+ </property>
+ </widget>
+ <zorder>CSV_Tablesettings</zorder>
+ <zorder>layoutWidget</zorder>
+ <zorder>plainTextEdit_2</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 class="QWidget" name="tab_config">
+ <property name="toolTipDuration">
+ <number>-4</number>
+ </property>
+ <attribute name="title">
+ <string>Config</string>
+ </attribute>
+ <widget class="QPushButton" name="Save_config_file">
+ <property name="geometry">
+ <rect>
+ <x>558</x>
+ <y>10</y>
+ <width>151</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Save config file</string>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="Open_config_file">
+ <property name="geometry">
+ <rect>
+ <x>390</x>
+ <y>10</y>
+ <width>151</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Open config file</string>
+ </property>
+ </widget>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>40</x>
+ <y>50</y>
+ <width>751</width>
+ <height>29</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_11">
+ <item>
+ <widget class="QLabel" name="dxf_line_counter_4">
+ <property name="text">
+ <string>Path user symbols QET : </string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_12">
+ <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="QET_user_symbole_path_save">
+ <property name="minimumSize">
+ <size>
+ <width>450</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="savepath_2">
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>20</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>40</x>
+ <y>90</y>
+ <width>361</width>
+ <height>29</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_12">
+ <item>
+ <widget class="QLabel" name="label_82">
+ <property name="maximumSize">
+ <size>
+ <width>140</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Block color : </string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_13">
+ <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="QComboBox" name="Block_color"/>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>40</x>
+ <y>130</y>
+ <width>361</width>
+ <height>29</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_13">
+ <item>
+ <widget class="QLabel" name="label_83">
+ <property name="maximumSize">
+ <size>
+ <width>140</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Entitie color : </string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_14">
+ <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="QComboBox" name="Entitie_color"/>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ </widget>
+ </item>
+ </layout>
+ </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>25</height>
+ </rect>
+ </property>
+ <property name="nativeMenuBar">
+ <bool>false</bool>
+ </property>
+ <widget class="QMenu" name="menuFile">
+ <property name="title">
+ <string>&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="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="windowTitle">
+ <string>toolBar</string>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>35</width>
+ <height>46</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="text">
+ <string>&Open</string>
+ </property>
+ <property name="toolTip">
+ <string>Open dxf or CSV file</string>
+ </property>
+ <property name="iconVisibleInMenu">
+ <bool>true</bool>
+ </property>
+ </action>
+ <action name="actionSave_as_elmt">
+ <property name="text">
+ <string>&Save as elmt</string>
+ </property>
+ <property name="iconVisibleInMenu">
+ <bool>true</bool>
+ </property>
+ </action>
+ <action name="actionSave_as_qet">
+ <property name="text">
+ <string>Save as &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>elmt_lang_ar</sender>
+ <signal>textEdited(QString)</signal>
+ <receiver>pushButton</receiver>
+ <slot>click()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>602</x>
+ <y>380</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>415</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>450</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>485</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>520</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>555</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>590</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>625</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>660</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>602</x>
+ <y>695</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>787</x>
+ <y>394</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>
+ <connection>
+ <sender>dxf_open_file</sender>
+ <signal>returnPressed()</signal>
+ <receiver>dxf_open_file</receiver>
+ <slot>update()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>339</x>
+ <y>163</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>584</x>
+ <y>159</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.png
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.xcf
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-open dxf-csv.xcf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.png
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.xcf
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as elmt.xcf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.png
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.xcf
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as qet.xcf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as.png
===================================================================
(Binary files differ)
Property changes on: branches/Qetdxf/sources/dxftoqet2/icon/document-save-as.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/Qetdxf/sources/dxftoqet2/main.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/main.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/main.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,20 @@
+#include "dxftoqet2/dxftoqet_mainwindow.h"
+#include <QApplication>
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/csv_build_table.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/csv_build_table.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/csv_build_table.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,159 @@
+#include "dxf_arc.h"
+#include "dxftoqet2/src/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=color;
+
+ /*
+ 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/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_arc.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,76 @@
+#ifndef DXF_ARC_H
+#define DXF_ARC_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_arc.h"
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,37 @@
+#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;
+ db_attdef.QET_rotation=rotation;
+
+
+ Result_attdef.append(db_attdef.Create_input());
+
+ return Result_attdef;
+
+
+
+
+
+
+
+
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attdef.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,35 @@
+#ifndef DXF_ATTDEF_H
+#define DXF_ATTDEF_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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
+ double rotation; //50
+ int size;
+ QString rotate;
+ QString text;
+ QString tag;
+ QString color_attdef;
+
+ QString Create_ATTDEF();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_ATTDEF_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,31 @@
+#include "dxf_attr.h"
+
+dxf_attr::dxf_attr(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_attr::Create_ATTR()
+{
+
+
+ dxf_base_input db_attr;
+
+ Result_attr="";
+
+ db_attr.QET_x=x;
+ db_attr.QET_y=y;
+ db_attr.QET_size=size;
+ db_attr.QET_tag=tag;
+ db_attr.QET_text=text;
+ db_attr.QET_rotate=rotate;
+ db_attr.QET_rotation=rotation;
+ db_attr.QET_color=color_attrib;
+
+
+ Result_attr.append(db_attr.Create_input());
+
+ return Result_attr;
+
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_attr.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,35 @@
+#ifndef DXF_ATTR_H
+#define DXF_ATTR_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_input.h"
+
+class dxf_attr : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_attr(QWidget *parent = 0);
+
+ QString Result_attr;
+
+
+
+ //QET xml var
+ double x; //10
+ double y; //20
+ int size;
+ QString rotate;
+ QString text;
+ QString tag;
+ double rotation;//50
+ QString color_attrib;
+
+ QString Create_ATTR();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_ATTR_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,33 @@
+#include "dxf_circle.h"
+
+dxf_circle::dxf_circle(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_circle::Create_CIRCLE()
+{
+ dxf_base_circle db_circle;
+ DXF_Ltype_control db_line_ltype_control;
+
+ Result_circle="";
+
+ db_line_ltype_control.FindLT=ltype;
+ db_line_ltype_control.Layer=layer;
+
+ db_circle.QET_line_style=db_line_ltype_control.Ltype_control();
+
+ db_circle.QET_x=x;
+ db_circle.QET_y=y;
+
+ db_circle.QET_antialias=antialias;
+ db_circle.QET_line_weight=line_weight;
+ db_circle.QET_filling=filling;
+ db_circle.QET_color=color;
+ db_circle.QET_diameter=diameter;
+
+
+ Result_circle.append(db_circle.Create_circle());
+
+ return Result_circle;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_circle.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,39 @@
+#ifndef DXF_CIRCLE_H
+#define DXF_CIRCLE_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_circle.h"
+#include "dxftoqet2/src/dxf_control/dxf_ltype_control.h"
+
+class dxf_circle : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_circle(QWidget *parent = 0);
+
+ QString layer; //8
+ QString ltype; //6
+
+ double x; //10
+ double y; //20
+ double diameter;
+
+ QString antialias;
+ QString style;
+ QString line_style;
+ QString line_weight;
+ QString filling;
+ QString color;
+
+ QString Result_circle;
+
+
+ QString Create_CIRCLE();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_CIRCLE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,80 @@
+#include "dxf_ellipse.h"
+
+dxf_ellipse::dxf_ellipse(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_ellipse::Create_ELLIPSE()
+{
+
+ dxf_base_ellipse db_ellipse;
+
+ Result_ellipse="";
+
+ pow_major_x= (-major_radius_x);
+ pow_major_y= (+major_radius_y);
+
+ if (major_radius_x==0)
+ {
+ major_x=1;
+ }
+ else
+ {
+ major_radius_x=major_x;
+ }
+
+ rotation=180*((major_radius_y/major_x)/3.141592654);
+
+ if (((qPow(pow_major_x,2) - qPow(pow_major_y,2)))<0)
+ {
+ width=2*(qSqrt(-(qPow(pow_major_x,2) - qPow(pow_major_y,2))));
+ }
+ else
+ {
+ width=2*(qSqrt(qPow(pow_major_x,2) - qPow(pow_major_y,2)));
+ }
+
+
+
+ //width=(qSqrt(qPow(pow_major_x,2) - qPow(pow_major_y,2)));
+
+ height=(width*ratio_of_minor);
+
+ Pstart=(180*(start/3.141592654));
+
+ Pend2=(180*(end2/3.141592654));
+
+
+ hoek2=Pstart-Pend2;
+
+ db_ellipse.QET_x=center_x-(width/2);
+ db_ellipse.QET_y=center_y-(height/2);
+ db_ellipse.QET_start=Pstart+rotation;
+ db_ellipse.QET_angle=-hoek2;
+ db_ellipse.QET_width=width;
+ db_ellipse.QET_height=height;
+ db_ellipse.QET_antialias="false";
+
+ DXF_Ltype_control db_line_ltype_control;
+
+ db_line_ltype_control.FindLT=ltype;
+ db_line_ltype_control.Layer=layer;
+
+
+ db_ellipse.QET_line_style=db_line_ltype_control.Ltype_control();
+
+ db_ellipse.QET_line_weight=Line_weight;
+ db_ellipse.QET_filling=Filling;
+ db_ellipse.QET_color=Color;
+
+
+
+ Result_ellipse.append(db_ellipse.Create_ellipse());
+
+
+
+ return Result_ellipse;
+}
+
+
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_ellipse.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,75 @@
+#ifndef DXF_ELLIPSE_H
+#define DXF_ELLIPSE_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_ellipse.h"
+#include "dxftoqet2/src/dxf_control/dxf_ltype_control.h"
+#include <QtMath>
+
+class dxf_ellipse : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_ellipse(QWidget *parent = 0);
+
+ QString Result_ellipse;
+
+ int x;
+
+ QString Lineout;
+ float x_center;
+ float y_center;
+ float breedte;
+ float hoogte;
+ QString ActiveFunction;
+ QString StatusbarMessage;
+ QString LineTypeOFLine;
+ QString LayerNameOFLine;
+ QString LineStyle;
+ float BeginHoek;
+ float Hoek2;
+
+
+ float center_x;//10
+ float center_y;//20
+ float major_radius_x;//11
+ float major_x;
+ float major_radius_y;//21
+ float ratio_of_minor;//40
+ float start;//41
+
+ float end2;//42
+
+ float width;
+ float height;
+
+ float hoek2;
+
+ float Pstart;
+ float Pend2;
+
+ float pow_major_x;
+ float pow_major_y;
+ float rotation;
+
+
+
+
+ QString ltype;
+ QString layer;
+
+ QString Color;
+ QString Line_weight;
+ QString Filling;
+
+ QString Create_ELLIPSE();
+
+
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_ELLIPSE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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=color;
+
+ Result_line.append(db_line.CreateElmt());
+
+ return Result_line;
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_line.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,47 @@
+#ifndef DXF_LINE_H
+#define DXF_LINE_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_line.h"
+#include "dxftoqet2/src/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
+
+ //QET
+
+ QString antialias;
+ QString style;
+ QString line_style;
+ QString line_weight;
+ QString filling;
+ QString color;
+
+
+
+ QString Create_LINE();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_LINE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,46 @@
+#include "dxf_lwpolyline.h"
+
+dxf_lwpolyline::dxf_lwpolyline(QWidget *parent) : QMainWindow(parent)
+{
+
+}
+
+QString dxf_lwpolyline::Create_LWPOLYLINE()
+{
+ dxf_base_polyline db_lwpolyline;
+ DXF_Ltype_control db_line_ltype_control;
+
+ Result_lwpolyline="";
+
+ db_line_ltype_control.FindLT=ltype;
+ db_line_ltype_control.Layer=layer;
+
+ db_lwpolyline.QET_line_style=db_line_ltype_control.Ltype_control();
+
+ db_lwpolyline.QET_antialias=antialias;
+ db_lwpolyline.QET_line_weight=line_weight;
+ db_lwpolyline.QET_filling=filling;
+ db_lwpolyline.QET_color=color;
+ if (closed==1)
+ {
+ db_lwpolyline.QET_closed="true";
+ }
+ else
+ {
+ db_lwpolyline.QET_closed="false";
+ }
+
+ for (count=1; count<=vector_count;count++)
+ {
+ db_lwpolyline.QET_x[count]=x_vector[count];
+ db_lwpolyline.QET_y[count]=y_vector[count];
+
+
+ }
+
+ db_lwpolyline.segments=vector_count;
+
+ Result_lwpolyline.append(db_lwpolyline.Create_polyline());
+
+ return Result_lwpolyline;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_lwpolyline.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,43 @@
+#ifndef DXF_LWPOLYLINE_H
+#define DXF_LWPOLYLINE_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_polyline.h"
+#include "dxftoqet2/src/dxf_control/dxf_ltype_control.h"
+
+class dxf_lwpolyline : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_lwpolyline(QWidget *parent = 0);
+
+ QString layer; //8
+ QString ltype; //6
+
+ QString antialias;
+ QString style;
+ QString line_style;
+ QString line_weight;
+ QString filling;
+ QString color;
+
+ int16_t closed; //70
+
+ double x_vector[500];
+ double y_vector[500];
+
+ QString Result_lwpolyline;
+
+
+ int vector_count;
+ int count;
+
+
+ QString Create_LWPOLYLINE();
+
+ signals:
+
+ public slots:
+};
+
+#endif // DXF_LWPOLYLINE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_point.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,39 @@
+#ifndef DXF_POINT_H
+#define DXF_POINT_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,46 @@
+#include "dxf_polyline.h"
+
+dxf_polyline::dxf_polyline(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_polyline::Create_POLYLINE()
+{
+ dxf_base_polyline db_polyline;
+ DXF_Ltype_control db_line_ltype_control;
+
+ Result_polyline="";
+
+ db_line_ltype_control.FindLT=ltype;
+ db_line_ltype_control.Layer=layer;
+
+ db_polyline.QET_line_style=db_line_ltype_control.Ltype_control();
+
+ db_polyline.QET_antialias=antialias;
+ db_polyline.QET_line_weight=line_weight;
+ db_polyline.QET_filling=filling;
+ db_polyline.QET_color=color;
+ if (closed==1)
+ {
+ db_polyline.QET_closed="true";
+ }
+ else
+ {
+ db_polyline.QET_closed="false";
+ }
+
+ for (count=1; count<vector_count+1;count++)
+ {
+ db_polyline.QET_x[count]=x_vector[count];
+ db_polyline.QET_y[count]=y_vector[count];
+
+
+ }
+
+ db_polyline.segments=vector_count;
+
+ Result_polyline.append(db_polyline.Create_polyline());
+
+ return Result_polyline;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_polyline.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,43 @@
+#ifndef DXF_POLYLINE_H
+#define DXF_POLYLINE_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/dxf_base_types/dxf_base_polyline.h"
+#include "dxftoqet2/src/dxf_control/dxf_ltype_control.h"
+
+class dxf_polyline : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_polyline(QWidget *parent = 0);
+
+ QString layer; //8
+ QString ltype; //6
+
+ QString antialias;
+ QString style;
+ QString line_style;
+ QString line_weight;
+ QString filling;
+ QString color;
+
+ int16_t closed; //70
+
+ double x_vector[500];
+ double y_vector[500];
+
+ QString Result_polyline;
+
+ int vector_count;
+ int count;
+
+
+ QString Create_POLYLINE();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_POLYLINE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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=dxf_rect_filling;
+ db_rect_base.QET_color="black";
+
+ return db_rect_base.Create_rectangel();
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_rect.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,32 @@
+#ifndef DXF_RECT_H
+#define DXF_RECT_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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 dxf_rect_filling;
+
+
+
+
+ QString Create_RECTANG();
+
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_RECT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,28 @@
+#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;
+ db_text_base.QET_color=QET_color;
+
+ Result_text= db_text_base.Create_text();
+
+ return Result_text;
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf/dxf_text.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,31 @@
+#ifndef DXF_TEXT_H
+#define DXF_TEXT_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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 QET_color;
+ QString Result_text;
+
+ QString Create_Text();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_TEXT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/.directory
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/.directory (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/.directory 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,4 @@
+[Dolphin]
+Timestamp=2016,1,1,21,10,12
+Version=3
+ViewMode=1
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_arc.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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');
+
+ return Result_circle;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_circle.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,75 @@
+#include "dxf_base_ellipse.h"
+
+dxf_base_ellipse::dxf_base_ellipse(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_base_ellipse::Create_ellipse()
+{
+ /* <ellipse width="38"
+ * x="-15" y="34"
+ * antialias="true"
+ * height="13"
+ * style="line-style:normal;line-weight:normal;filling:none;color:black"/>*/
+ Result_ellipse="";
+
+ Result_ellipse.append(" ");
+ Result_ellipse.append("<arc");
+
+
+ Result_ellipse.append(" width=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_width,'f',2));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" x=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_x,'f',2));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" y=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_y,'f',2));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" antialias=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QET_antialias);
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" height=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_height,'f',2));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" style=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append("line-style:");
+ Result_ellipse.append(QET_line_style);
+ Result_ellipse.append(";");
+ Result_ellipse.append("line-weight:");
+ Result_ellipse.append(QET_line_weight);
+ Result_ellipse.append(";");
+ Result_ellipse.append("filling:");
+ Result_ellipse.append(QET_filling);
+ Result_ellipse.append(";");
+ Result_ellipse.append("color:");
+ Result_ellipse.append(QET_color);
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" start=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_start,'f',0));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" angle=");
+ Result_ellipse.append(QChar(34));
+ Result_ellipse.append(QString::number(QET_angle,'f',0));
+ Result_ellipse.append(QChar(34));
+
+ Result_ellipse.append(" />");
+ Result_ellipse.append('\n');
+
+ return Result_ellipse;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_ellipse.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,45 @@
+#ifndef DXF_BASE_ELLIPSE_H
+#define DXF_BASE_ELLIPSE_H
+
+#include <QMainWindow>
+
+class dxf_base_ellipse : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_base_ellipse(QWidget *parent = 0);
+
+ QString Result_ellipse;
+ /* <ellipse width="38"
+ * x="-15" y="34"
+ * antialias="true"
+ * height="13"
+ * style="line-style:normal;line-weight:normal;filling:none;color:black"/>*/
+
+ //QET xml var
+ double QET_x; //10
+ double QET_y; //20
+ double QET_width;
+ double QET_height;
+ double QET_start;
+ double QET_angle;
+
+ //double QET_diameter;
+
+
+ QString QET_antialias;
+
+ QString QET_line_style;
+ QString QET_line_weight;
+ QString QET_filling;
+ QString QET_color;
+
+ QString Create_ellipse();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_BASE_ELLIPSE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,76 @@
+#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"/>
+ <input text="_" rotation="90" tagg="label" x="-20" y="-5" size="9" rotate="true"/>*/
+
+ 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,'f',0));
+ Result.append(QChar(34));
+
+ Result.append(" rotation=");
+ Result.append(QChar(34));
+ Result.append(QString::number(QET_rotation,'f',0));
+ Result.append(QChar(34));
+
+ Result.append(" rotate=");
+ Result.append(QChar(34));
+ Result.append(QET_rotate);
+ Result.append(QChar(34));
+
+ Result.append(" color=");
+ Result.append(QChar(34));
+ Result.append(QET_color);
+ 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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_input.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,37 @@
+#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
+ double QET_rotation; //20
+
+ int QET_size;
+ QString QET_rotate;
+ QString QET_text;
+ QString QET_tag;
+ QString QET_color;
+
+
+
+ QString Create_input();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_BASE_INPUT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_line.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,85 @@
+#include "dxf_base_polyline.h"
+
+dxf_base_polyline::dxf_base_polyline(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString dxf_base_polyline::Create_polyline()
+{
+
+ /* <polygon style="line-style:normal;
+ * line-weight:thin;filling:none;color:black"
+ * closed="false"
+ * y1="-100" y2="-90" y3="0" y4="65" y5="75" y6="-20"
+ * antialias="false"
+ * y7="-30" x1="-140" y8="15" x2="0" y9="10" x3="60"
+ * x4="15" x5="-125" x6="-125" x7="-60" x8="-60"
+ * x9="-5" y10="-75" x10="-20" y11="-75" x11="-20"/>*/
+
+ /* <polygon style="line-style:normal;
+ * line-weight:thin;filling:none;color:black"
+ * closed="false"
+ * antialias="false"
+ * x1="107" y1="-179" x2="107" y2="-179"
+ * x3="107" y3="-179" x4="107" y4="-179" /> */
+
+ Result_polyline="";
+
+ /* create qet elmt code */
+
+ Result_polyline.append(" ");
+ Result_polyline.append("<polygon");
+ Result_polyline.append(" style=");
+
+ Result_polyline.append(QChar(34));
+ Result_polyline.append("line-style:");
+ Result_polyline.append(QET_line_style);
+ Result_polyline.append(";");
+
+
+ Result_polyline.append("line-weight:");
+ Result_polyline.append(QET_line_weight);
+ Result_polyline.append(";");
+
+ Result_polyline.append("filling:");
+ Result_polyline.append(QET_filling);
+ Result_polyline.append(";");
+
+ Result_polyline.append("color:");
+ Result_polyline.append(QET_color);
+ Result_polyline.append(QChar(34));
+
+ Result_polyline.append(" closed=");
+ Result_polyline.append(QChar(34));
+ Result_polyline.append(QET_closed);
+ Result_polyline.append(QChar(34));
+
+ Result_polyline.append(" antialias=");
+ Result_polyline.append(QChar(34));
+ Result_polyline.append(QET_antialias);
+ Result_polyline.append(QChar(34));
+
+ for (count_segments=1; count_segments<=segments;count_segments++)
+ {
+ Result_polyline.append(" x");
+ Result_polyline.append(QString::number(count_segments));
+ Result_polyline.append("=");
+ Result_polyline.append(QChar(34));
+ Result_polyline.append(QString::number(QET_x[count_segments],'f',0));
+ Result_polyline.append(QChar(34));
+
+ Result_polyline.append(" y");
+ Result_polyline.append(QString::number(count_segments));
+ Result_polyline.append("=");
+ Result_polyline.append(QChar(34));
+ Result_polyline.append(QString::number(QET_y[count_segments],'f',0));
+ Result_polyline.append(QChar(34));
+ }
+
+ Result_polyline.append("/>");
+ Result_polyline.append('\n');
+
+ return Result_polyline;
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_polyline.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,36 @@
+#ifndef DXF_BASE_POLYLINE_H
+#define DXF_BASE_POLYLINE_H
+
+#include <QMainWindow>
+
+class dxf_base_polyline : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit dxf_base_polyline(QWidget *parent = 0);
+
+ QString Result_polyline;
+
+ QString QET_line_style;
+ QString QET_line_weight;
+ QString QET_filling;
+ QString QET_color;
+ QString QET_closed;
+ QString QET_antialias;
+
+ double QET_x[1000];
+ double QET_y[1000];
+
+ int count_segments;
+ int segments;
+
+
+ QString Create_polyline();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_BASE_POLYLINE_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_rectangel.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_terminal.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,56 @@
+#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(" color=");
+ Result_text.append(QChar(34));
+ Result_text.append(QET_color);
+ 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/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_base_types/dxf_base_text.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,33 @@
+#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 QET_color;
+
+
+ QString Result_text;
+
+ QString Create_text();
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // DXF_BASE_TEXT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_layer_control.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,27 @@
+#ifndef DXF_LAYER_CONTROL_H
+#define DXF_LAYER_CONTROL_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_ltype_control.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,25 @@
+#ifndef DXF_LTYPE_CONTROL_H
+#define DXF_LTYPE_CONTROL_H
+
+#include <QMainWindow>
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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("<","<");
+ }
+ if(TextToCheck.contains(">"))
+ {
+ TextToCheck.replace(">",">");
+ }
+ if(TextToCheck.contains("&"))
+ {
+ TextToCheck.replace("&","&");
+ }
+ if(TextToCheck.contains(QChar(39)))
+ {
+ TextToCheck.replace(QChar(39),"'");
+ }
+ if(TextToCheck.contains(QChar(34)))
+ {
+ TextToCheck.replace(QChar(34),""");
+ }
+
+ 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/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_control/dxf_text_control.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_data.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_data.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_data.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,10 @@
+#include "dxf_data.h"
+
+
+dxf_data::dxf_data()
+{
+
+
+}
+
+
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_data.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_data.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_data.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,4015 @@
+#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[20];
+
+ 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;
+ QString dxf_savepath;
+ QString dxf_block_color;
+ QString dxf_element_color;
+
+
+ QStringList dxf_input;
+
+ QString dxf_csv_split[10000][20];
+ int dxf_csv_line_count;
+ QString csv_table_settings[6][20];
+ QString Elmt_list[500];
+ QString csv_header_background;
+
+ 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;
+
+ int32_t DXF_block_3dface_count[100];
+ int32_t DXF_block_3dsolid_count[100];
+ int32_t DXF_block_acad_proxy_entity_count[100];
+ int32_t DXF_block_arc_count[100];
+ int32_t DXF_block_attdef_count[100];
+ int32_t DXF_block_attrib_count[100];
+ int32_t DXF_block_body_count[100];
+ int32_t DXF_block_circle_count[100];
+ int32_t DXF_block_dimension_count[100];
+ int32_t DXF_block_ellipse_count[100];
+ int32_t DXF_block_hatch_count[100];
+ int32_t DXF_block_helix_count[100];
+ int32_t DXF_block_image_count[100];
+ int32_t DXF_block_insert_count[100];
+ int32_t DXF_block_leader_count[100];
+ int32_t DXF_block_light_count[100];
+ int32_t DXF_block_line_count[100];
+ int32_t DXF_block_lwpolyline_count[100];
+ int32_t DXF_block_mesh_count[100];
+ int32_t DXF_block_mline_count[100];
+ int32_t DXF_block_mleaderstyle_count[100];
+ int32_t DXF_block_mleader_count[100];
+ int32_t DXF_block_mtext_count[100];
+ int32_t DXF_block_oleframe_count[100];
+ int32_t DXF_block_ole2frame_count[100];
+ int32_t DXF_block_point_count[100];
+ int32_t DXF_block_polyline_count[100];
+ int32_t DXF_block_ray_count[100];
+ int32_t DXF_block_region_count[100];
+ int32_t DXF_block_section_count[100];
+ int32_t DXF_block_seqend_count[100];
+ int32_t DXF_block_shape_count[100];
+ int32_t DXF_block_solid_count[100];
+ int32_t DXF_block_spline_count[100];
+ int32_t DXF_block_sun_count[100];
+ int32_t DXF_block_surface_count[100];
+ int32_t DXF_block_table_count[100];
+ int32_t DXF_block_text_count[100];
+ int32_t DXF_block_tolerance_count[100];
+ int32_t DXF_block_trace_count[100];
+ int32_t DXF_block_underlay_count[100];
+ int32_t DXF_block_vertex_count[100];
+ int32_t DXF_block_viewport_count[100];
+ int32_t DXF_block_wipeout_count[100];
+ int32_t DXF_block_xline_count[100];
+
+ int32_t DXF_entities_3dface_count ;
+ int32_t DXF_entities_3dsolid_count ;
+ int32_t DXF_entities_acad_proxy_entity_count ;
+ int32_t DXF_entities_arc_count ;
+ int32_t DXF_entities_attdef_count ;
+ int32_t DXF_entities_attrib_count ;
+ int32_t DXF_entities_body_count ;
+ int32_t DXF_entities_circle_count ;
+ int32_t DXF_entities_dimension_count ;
+ int32_t DXF_entities_ellipse_count ;
+ int32_t DXF_entities_hatch_count ;
+ int32_t DXF_entities_helix_count ;
+ int32_t DXF_entities_image_count ;
+ int32_t DXF_entities_insert_count ;
+ int32_t DXF_entities_leader_count ;
+ int32_t DXF_entities_light_count ;
+ int32_t DXF_entities_line_count ;
+ int32_t DXF_entities_lwpolyline_count ;
+ int32_t DXF_entities_mesh_count ;
+ int32_t DXF_entities_mline_count ;
+ int32_t DXF_entities_mleaderstyle_count ;
+ int32_t DXF_entities_mleader_count ;
+ int32_t DXF_entities_mtext_count ;
+ int32_t DXF_entities_oleframe_count ;
+ int32_t DXF_entities_ole2frame_count ;
+ int32_t DXF_entities_point_count ;
+ int32_t DXF_entities_polyline_count ;
+ int32_t DXF_entities_ray_count ;
+ int32_t DXF_entities_region_count ;
+ int32_t DXF_entities_section_count ;
+ int32_t DXF_entities_seqend_count ;
+ int32_t DXF_entities_shape_count ;
+ int32_t DXF_entities_solid_count ;
+ int32_t DXF_entities_spline_count ;
+ int32_t DXF_entities_sun_count ;
+ int32_t DXF_entities_surface_count ;
+ int32_t DXF_entities_table_count ;
+ int32_t DXF_entities_text_count ;
+ int32_t DXF_entities_tolerance_count ;
+ int32_t DXF_entities_trace_count ;
+ int32_t DXF_entities_underlay_count ;
+ int32_t DXF_entities_vertex_count ;
+ int32_t DXF_entities_viewport_count ;
+ int32_t DXF_entities_wipeout_count ;
+ int32_t 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
+ {
+ QString DXF_block_3dface_code_5;
+ QString DXF_block_3dface_code_6;
+ QString DXF_block_3dface_code_8;
+
+ double DXF_block_3dface_code_10;
+ double DXF_block_3dface_code_11;
+ double DXF_block_3dface_code_12;
+ double DXF_block_3dface_code_13;
+ double DXF_block_3dface_code_14[5];
+
+
+ double DXF_block_3dface_code_20;
+ double DXF_block_3dface_code_21;
+ double DXF_block_3dface_code_22;
+ double DXF_block_3dface_code_23;
+ double DXF_block_3dface_code_24[5];
+
+ double DXF_block_3dface_code_30;
+ double DXF_block_3dface_code_31;
+ double DXF_block_3dface_code_32;
+
+
+ int16_t DXF_block_3dface_code_62;
+
+ int16_t DXF_block_3dface_code_70;
+ int16_t DXF_block_3dface_code_71;
+
+ int32_t DXF_block_3dface_code_90;
+ int32_t DXF_block_3dface_code_91;
+ int32_t DXF_block_3dface_code_92;
+
+ QString DXF_block_3dface_code_100[2];
+
+
+ int16_t DXF_block_3dface_code_280;
+ int16_t DXF_block_3dface_code_281;
+ int16_t DXF_block_3dface_code_282;
+ int16_t DXF_block_3dface_code_283;
+
+ QString DXF_block_3dface_code_310;
+ QString DXF_block_3dface_code_330;
+ QString DXF_block_3dface_code_340;
+ QString DXF_block_3dface_code_360;
+ };
+
+ struct DXF_block_3dsolid
+ {
+ QString DXF_block_3dsolid_code_5;
+ QString DXF_block_3dsolid_code_6;
+ QString DXF_block_3dsolid_code_8;
+
+ double DXF_block_3dsolid_code_10;
+ double DXF_block_3dsolid_code_11;
+ double DXF_block_3dsolid_code_12;
+ double DXF_block_3dsolid_code_13;
+ double DXF_block_3dsolid_code_14[5];
+
+
+ double DXF_block_3dsolid_code_20;
+ double DXF_block_3dsolid_code_21;
+ double DXF_block_3dsolid_code_22;
+ double DXF_block_3dsolid_code_23;
+ double DXF_block_3dsolid_code_24[5];
+
+ double DXF_block_3dsolid_code_30;
+ double DXF_block_3dsolid_code_31;
+ double DXF_block_3dsolid_code_32;
+
+
+ int16_t DXF_block_3dsolid_code_62;
+
+ int16_t DXF_block_3dsolid_code_70;
+ int16_t DXF_block_3dsolid_code_71;
+
+ int32_t DXF_block_3dsolid_code_90;
+ int32_t DXF_block_3dsolid_code_91;
+ int32_t DXF_block_3dsolid_code_92;
+
+ QString DXF_block_3dsolid_code_100[2];
+
+
+ int16_t DXF_block_3dsolid_code_280;
+ int16_t DXF_block_3dsolid_code_281;
+ int16_t DXF_block_3dsolid_code_282;
+ int16_t DXF_block_3dsolid_code_283;
+
+ QString DXF_block_3dsolid_code_310;
+ QString DXF_block_3dsolid_code_330;
+ QString DXF_block_3dsolid_code_340;
+ QString DXF_block_3dsolid_code_360;
+ };
+
+ struct DXF_block_acad_proxy_entity
+ {
+ QString DXF_block_acad_proxy_entity_code_5;
+ QString DXF_block_acad_proxy_entity_code_6;
+ QString DXF_block_acad_proxy_entity_code_8;
+
+ double DXF_block_acad_proxy_entity_code_10;
+ double DXF_block_acad_proxy_entity_code_11;
+ double DXF_block_acad_proxy_entity_code_12;
+ double DXF_block_acad_proxy_entity_code_13;
+ double DXF_block_acad_proxy_entity_code_14[5];
+
+
+ double DXF_block_acad_proxy_entity_code_20;
+ double DXF_block_acad_proxy_entity_code_21;
+ double DXF_block_acad_proxy_entity_code_22;
+ double DXF_block_acad_proxy_entity_code_23;
+ double DXF_block_acad_proxy_entity_code_24[5];
+
+ double DXF_block_acad_proxy_entity_code_30;
+ double DXF_block_acad_proxy_entity_code_31;
+ double DXF_block_acad_proxy_entity_code_32;
+
+
+ int16_t DXF_block_acad_proxy_entity_code_62;
+
+ int16_t DXF_block_acad_proxy_entity_code_70;
+ int16_t DXF_block_acad_proxy_entity_code_71;
+
+ int32_t DXF_block_acad_proxy_entity_code_90;
+ int32_t DXF_block_acad_proxy_entity_code_91;
+ int32_t DXF_block_acad_proxy_entity_code_92;
+
+ QString DXF_block_acad_proxy_entity_code_100[2];
+
+
+ int16_t DXF_block_acad_proxy_entity_code_280;
+ int16_t DXF_block_acad_proxy_entity_code_281;
+ int16_t DXF_block_acad_proxy_entity_code_282;
+ int16_t DXF_block_acad_proxy_entity_code_283;
+
+ QString DXF_block_acad_proxy_entity_code_310;
+ QString DXF_block_acad_proxy_entity_code_330;
+ QString DXF_block_acad_proxy_entity_code_340;
+ QString DXF_block_acad_proxy_entity_code_360;
+ };
+
+ struct DXF_block_arc
+ {
+ QString DXF_block_arc_code_5;
+ QString DXF_block_arc_code_6;
+ QString DXF_block_arc_code_8;
+
+ double DXF_block_arc_code_10;
+ double DXF_block_arc_code_11;
+ double DXF_block_arc_code_12;
+ double DXF_block_arc_code_13;
+ double DXF_block_arc_code_14[5];
+
+
+ double DXF_block_arc_code_20;
+ double DXF_block_arc_code_21;
+ double DXF_block_arc_code_22;
+ double DXF_block_arc_code_23;
+ double DXF_block_arc_code_24[5];
+
+ double DXF_block_arc_code_30;
+ double DXF_block_arc_code_31;
+ double DXF_block_arc_code_32;
+
+ double DXF_block_arc_code_50;
+ double DXF_block_arc_code_51;
+
+ double DXF_block_arc_code_40;
+ double DXF_block_arc_code_48;
+
+ int16_t DXF_block_arc_code_62;
+
+ int16_t DXF_block_arc_code_70;
+ int16_t DXF_block_arc_code_71;
+
+ int32_t DXF_block_arc_code_90;
+ int32_t DXF_block_arc_code_91;
+ int32_t DXF_block_arc_code_92;
+
+ QString DXF_block_arc_code_100[4];
+ QString DXF_block_arc_code_102[2];
+
+
+ int16_t DXF_block_arc_code_280;
+ int16_t DXF_block_arc_code_281;
+ int16_t DXF_block_arc_code_282;
+ int16_t DXF_block_arc_code_283;
+
+ QString DXF_block_arc_code_310;
+ QString DXF_block_arc_code_330[2];
+ QString DXF_block_arc_code_340;
+ QString DXF_block_arc_code_360;
+
+ int16_t DXF_block_arc_code_370;
+ };
+
+ struct DXF_block_attdef
+ {
+ QString DXF_block_attdef_code_1;
+ QString DXF_block_attdef_code_2;
+ QString DXF_block_attdef_code_3;
+ QString DXF_block_attdef_code_5;
+ QString DXF_block_attdef_code_6;
+ QString DXF_block_attdef_code_8;
+
+ double DXF_block_attdef_code_10;
+ double DXF_block_attdef_code_11;
+ double DXF_block_attdef_code_12;
+ double DXF_block_attdef_code_13;
+ double DXF_block_attdef_code_14[5];
+
+
+ double DXF_block_attdef_code_20;
+ double DXF_block_attdef_code_21;
+ double DXF_block_attdef_code_22;
+ double DXF_block_attdef_code_23;
+ double DXF_block_attdef_code_24[5];
+
+ double DXF_block_attdef_code_30;
+ double DXF_block_attdef_code_31;
+ double DXF_block_attdef_code_32;
+
+ double DXF_block_attdef_code_40;
+ double DXF_block_attdef_code_50;
+ double DXF_block_attdef_code_53;
+
+ int16_t DXF_block_attdef_code_62;
+
+ int16_t DXF_block_attdef_code_70;
+ int16_t DXF_block_attdef_code_71;
+ int16_t DXF_block_attdef_code_72;
+ int16_t DXF_block_attdef_code_74;
+
+ int32_t DXF_block_attdef_code_90;
+
+ int32_t DXF_block_attdef_code_91;
+ int32_t DXF_block_attdef_code_92;
+
+ QString DXF_block_attdef_code_100[5];
+
+
+ int16_t DXF_block_attdef_code_280;
+ int16_t DXF_block_attdef_code_281;
+ int16_t DXF_block_attdef_code_282;
+ int16_t DXF_block_attdef_code_283;
+
+ QString DXF_block_attdef_code_310;
+ QString DXF_block_attdef_code_330;
+ QString DXF_block_attdef_code_340;
+ QString DXF_block_attdef_code_360;
+ };
+
+ struct DXF_block_attrib
+ {
+ QString DXF_block_attrib_code_1;
+ QString DXF_block_attrib_code_2;
+ QString DXF_block_attrib_code_3;
+ QString DXF_block_attrib_code_5;
+ QString DXF_block_attrib_code_6;
+ QString DXF_block_attrib_code_8;
+
+ double DXF_block_attrib_code_10;
+ double DXF_block_attrib_code_11;
+ double DXF_block_attrib_code_12;
+ double DXF_block_attrib_code_13;
+ double DXF_block_attrib_code_14[5];
+
+
+ double DXF_block_attrib_code_20;
+ double DXF_block_attrib_code_21;
+ double DXF_block_attrib_code_22;
+ double DXF_block_attrib_code_23;
+ double DXF_block_attrib_code_24[5];
+
+ double DXF_block_attrib_code_30;
+ double DXF_block_attrib_code_31;
+ double DXF_block_attrib_code_32;
+
+ double DXF_block_attrib_code_40;
+ double DXF_block_attrib_code_50;
+ double DXF_block_attrib_code_53;
+
+ int16_t DXF_block_attrib_code_62;
+
+ int16_t DXF_block_attrib_code_70;
+ int16_t DXF_block_attrib_code_71;
+ int16_t DXF_block_attrib_code_72;
+ int16_t DXF_block_attrib_code_74;
+
+ int32_t DXF_block_attrib_code_90;
+ int32_t DXF_block_attrib_code_91;
+ int32_t DXF_block_attrib_code_92;
+
+ QString DXF_block_attrib_code_100[2];
+
+
+ int16_t DXF_block_attrib_code_280;
+ int16_t DXF_block_attrib_code_281;
+ int16_t DXF_block_attrib_code_282;
+ int16_t DXF_block_attrib_code_283;
+
+ QString DXF_block_attrib_code_310;
+ QString DXF_block_attrib_code_330;
+ QString DXF_block_attrib_code_340;
+ QString DXF_block_attrib_code_360;
+ };
+
+ struct DXF_block_body
+ {
+ QString DXF_block_body_code_5;
+ QString DXF_block_body_code_6;
+ QString DXF_block_body_code_8;
+
+ double DXF_block_body_code_10;
+ double DXF_block_body_code_11;
+ double DXF_block_body_code_12;
+ double DXF_block_body_code_13;
+ double DXF_block_body_code_14[5];
+
+
+ double DXF_block_body_code_20;
+ double DXF_block_body_code_21;
+ double DXF_block_body_code_22;
+ double DXF_block_body_code_23;
+ double DXF_block_body_code_24[5];
+
+ double DXF_block_body_code_30;
+ double DXF_block_body_code_31;
+ double DXF_block_body_code_32;
+
+
+ int16_t DXF_block_body_code_62;
+
+ int16_t DXF_block_body_code_70;
+ int16_t DXF_block_body_code_71;
+
+ int32_t DXF_block_body_code_90;
+ int32_t DXF_block_body_code_91;
+ int32_t DXF_block_body_code_92;
+
+ QString DXF_block_body_code_100[2];
+
+
+ int16_t DXF_block_body_code_280;
+ int16_t DXF_block_body_code_281;
+ int16_t DXF_block_body_code_282;
+ int16_t DXF_block_body_code_283;
+
+ QString DXF_block_body_code_310;
+ QString DXF_block_body_code_330;
+ QString DXF_block_body_code_340;
+ QString DXF_block_body_code_360;
+ };
+
+ struct DXF_block_circle
+ {
+ QString DXF_block_circle_code_1;
+ QString DXF_block_circle_code_2;
+ QString DXF_block_circle_code_3;
+ QString DXF_block_circle_code_5;
+ QString DXF_block_circle_code_6;
+ QString DXF_block_circle_code_8;
+
+ double DXF_block_circle_code_10;
+ double DXF_block_circle_code_11;
+ double DXF_block_circle_code_12;
+ double DXF_block_circle_code_13;
+ double DXF_block_circle_code_14[5];
+
+
+ double DXF_block_circle_code_20;
+ double DXF_block_circle_code_21;
+ double DXF_block_circle_code_22;
+ double DXF_block_circle_code_23;
+ double DXF_block_circle_code_24[5];
+
+ double DXF_block_circle_code_30;
+ double DXF_block_circle_code_31;
+ double DXF_block_circle_code_32;
+
+ double DXF_block_circle_code_40;
+ double DXF_block_circle_code_48;
+
+ int16_t DXF_block_circle_code_62;
+
+ int16_t DXF_block_circle_code_70;
+ int16_t DXF_block_circle_code_71;
+ int16_t DXF_block_circle_code_72;
+ int16_t DXF_block_circle_code_74;
+
+ int32_t DXF_block_circle_code_90;
+ int32_t DXF_block_circle_code_91;
+ int32_t DXF_block_circle_code_92;
+
+ QString DXF_block_circle_code_100[2];
+ QString DXF_block_circle_code_102[2];
+
+
+ int16_t DXF_block_circle_code_280;
+ int16_t DXF_block_circle_code_281;
+ int16_t DXF_block_circle_code_282;
+ int16_t DXF_block_circle_code_283;
+
+ QString DXF_block_circle_code_310;
+ QString DXF_block_circle_code_330[20];
+ QString DXF_block_circle_code_340;
+ QString DXF_block_circle_code_360;
+
+ int16_t DXF_block_circle_code_370;
+
+ };
+
+ struct DXF_block_dimension
+ {
+ QString DXF_block_dimension_code_5;
+ QString DXF_block_dimension_code_6;
+ QString DXF_block_dimension_code_8;
+
+ double DXF_block_dimension_code_10;
+ double DXF_block_dimension_code_11;
+ double DXF_block_dimension_code_12;
+ double DXF_block_dimension_code_13;
+ double DXF_block_dimension_code_14[5];
+
+
+ double DXF_block_dimension_code_20;
+ double DXF_block_dimension_code_21;
+ double DXF_block_dimension_code_22;
+ double DXF_block_dimension_code_23;
+ double DXF_block_dimension_code_24[5];
+
+ double DXF_block_dimension_code_30;
+ double DXF_block_dimension_code_31;
+ double DXF_block_dimension_code_32;
+
+
+ int16_t DXF_block_dimension_code_62;
+
+ int16_t DXF_block_dimension_code_70;
+ int16_t DXF_block_dimension_code_71;
+
+ int32_t DXF_block_dimension_code_90;
+ int32_t DXF_block_dimension_code_91;
+ int32_t DXF_block_dimension_code_92;
+
+ QString DXF_block_dimension_code_100[2];
+
+
+ int16_t DXF_block_dimension_code_280;
+ int16_t DXF_block_dimension_code_281;
+ int16_t DXF_block_dimension_code_282;
+ int16_t DXF_block_dimension_code_283;
+
+ QString DXF_block_dimension_code_310;
+ QString DXF_block_dimension_code_330;
+ QString DXF_block_dimension_code_340;
+ QString DXF_block_dimension_code_360;
+ };
+
+ struct DXF_block_ellipse
+ {
+ QString DXF_block_ellipse_code_1;
+ QString DXF_block_ellipse_code_2;
+ QString DXF_block_ellipse_code_3;
+ QString DXF_block_ellipse_code_5;
+ QString DXF_block_ellipse_code_6;
+ QString DXF_block_ellipse_code_8;
+
+ double DXF_block_ellipse_code_10;
+ double DXF_block_ellipse_code_11;
+ double DXF_block_ellipse_code_12;
+ double DXF_block_ellipse_code_13;
+ double DXF_block_ellipse_code_14[5];
+
+
+ double DXF_block_ellipse_code_20;
+ double DXF_block_ellipse_code_21;
+ double DXF_block_ellipse_code_22;
+ double DXF_block_ellipse_code_23;
+ double DXF_block_ellipse_code_24[5];
+
+ double DXF_block_ellipse_code_30;
+ double DXF_block_ellipse_code_31;
+ double DXF_block_ellipse_code_32;
+
+ double DXF_block_ellipse_code_40;
+ double DXF_block_ellipse_code_41;
+ double DXF_block_ellipse_code_42;
+ double DXF_block_ellipse_code_48;
+
+
+ int16_t DXF_block_ellipse_code_62;
+
+ int16_t DXF_block_ellipse_code_70;
+ int16_t DXF_block_ellipse_code_71;
+ int16_t DXF_block_ellipse_code_72;
+ int16_t DXF_block_ellipse_code_74;
+
+ int32_t DXF_block_ellipse_code_90;
+ int32_t DXF_block_ellipse_code_91;
+ int32_t DXF_block_ellipse_code_92;
+
+ QString DXF_block_ellipse_code_100[2];
+ QString DXF_block_ellipse_code_102[2];
+
+
+ int16_t DXF_block_ellipse_code_280;
+ int16_t DXF_block_ellipse_code_281;
+ int16_t DXF_block_ellipse_code_282;
+ int16_t DXF_block_ellipse_code_283;
+
+ QString DXF_block_ellipse_code_310;
+ QString DXF_block_ellipse_code_330[2];
+ QString DXF_block_ellipse_code_340;
+ QString DXF_block_ellipse_code_360;
+
+ int16_t DXF_block_ellipse_code_370;
+ };
+
+ struct DXF_block_hatch
+ {
+ QString DXF_block_hatch_code_5;
+ QString DXF_block_hatch_code_6;
+ QString DXF_block_hatch_code_8;
+
+ double DXF_block_hatch_code_10[200];
+ double DXF_block_hatch_code_11;
+ double DXF_block_hatch_code_12;
+ double DXF_block_hatch_code_13;
+ double DXF_block_hatch_code_14[5];
+
+
+ double DXF_block_hatch_code_20[200];
+ double DXF_block_hatch_code_21;
+ double DXF_block_hatch_code_22;
+ double DXF_block_hatch_code_23;
+ double DXF_block_hatch_code_24[5];
+
+ double DXF_block_hatch_code_30[200];
+ double DXF_block_hatch_code_31;
+ double DXF_block_hatch_code_32;
+
+ double DXF_block_hatch_code_40[200];
+ double DXF_block_hatch_code_41;
+ double DXF_block_hatch_code_42;
+ double DXF_block_hatch_code_43;
+ double DXF_block_hatch_code_44;
+ double DXF_block_hatch_code_45;
+
+ double DXF_block_hatch_code_48;
+
+ double DXF_block_hatch_code_50;
+ double DXF_block_hatch_code_51;
+
+ int16_t DXF_block_hatch_code_62;
+
+ int16_t DXF_block_hatch_code_70;
+ int16_t DXF_block_hatch_code_71;
+ int16_t DXF_block_hatch_code_72;
+ int16_t DXF_block_hatch_code_73;
+ int16_t DXF_block_hatch_code_74;
+ int16_t DXF_block_hatch_code_75;
+
+ int32_t DXF_block_hatch_code_90;
+ int32_t DXF_block_hatch_code_91;
+ int32_t DXF_block_hatch_code_92;
+
+ QString DXF_block_hatch_code_100[2];
+
+ double DXF_block_hatch_code_210;
+
+ double DXF_block_hatch_code_220;
+
+ double DXF_block_hatch_code_230;
+
+ int16_t DXF_block_hatch_code_280;
+ int16_t DXF_block_hatch_code_281;
+ int16_t DXF_block_hatch_code_282;
+ int16_t DXF_block_hatch_code_283;
+
+ QString DXF_block_hatch_code_310;
+ QString DXF_block_hatch_code_330[2];
+ QString DXF_block_hatch_code_340;
+ QString DXF_block_hatch_code_360;
+
+ int16_t DXF_block_hatch_code_370;
+ };
+
+ struct DXF_block_helix
+ {
+ QString DXF_block_helix_code_5;
+ QString DXF_block_helix_code_6;
+ QString DXF_block_helix_code_8;
+
+ double DXF_block_helix_code_10;
+ double DXF_block_helix_code_11;
+ double DXF_block_helix_code_12;
+ double DXF_block_helix_code_13;
+ double DXF_block_helix_code_14[5];
+
+
+ double DXF_block_helix_code_20;
+ double DXF_block_helix_code_21;
+ double DXF_block_helix_code_22;
+ double DXF_block_helix_code_23;
+ double DXF_block_helix_code_24[5];
+
+ double DXF_block_helix_code_30;
+ double DXF_block_helix_code_31;
+ double DXF_block_helix_code_32;
+
+
+ int16_t DXF_block_helix_code_62;
+
+ int16_t DXF_block_helix_code_70;
+ int16_t DXF_block_helix_code_71;
+
+ int32_t DXF_block_helix_code_90;
+ int32_t DXF_block_helix_code_91;
+ int32_t DXF_block_helix_code_92;
+
+ QString DXF_block_helix_code_100[2];
+
+
+ int16_t DXF_block_helix_code_280;
+ int16_t DXF_block_helix_code_281;
+ int16_t DXF_block_helix_code_282;
+ int16_t DXF_block_helix_code_283;
+
+ QString DXF_block_helix_code_310;
+ QString DXF_block_helix_code_330;
+ QString DXF_block_helix_code_340;
+ QString DXF_block_helix_code_360;
+ };
+
+ struct DXF_block_image
+ {
+ QString DXF_block_image_code_5;
+ QString DXF_block_image_code_6;
+ QString DXF_block_image_code_8;
+
+ double DXF_block_image_code_10;
+ double DXF_block_image_code_11;
+ double DXF_block_image_code_12;
+ double DXF_block_image_code_13;
+ double DXF_block_image_code_14[5];
+
+
+ double DXF_block_image_code_20;
+ double DXF_block_image_code_21;
+ double DXF_block_image_code_22;
+ double DXF_block_image_code_23;
+ double DXF_block_image_code_24[5];
+
+ double DXF_block_image_code_30;
+ double DXF_block_image_code_31;
+ double DXF_block_image_code_32;
+
+
+ int16_t DXF_block_image_code_62;
+
+ int16_t DXF_block_image_code_70;
+ int16_t DXF_block_image_code_71;
+
+ int32_t DXF_block_image_code_90;
+ int32_t DXF_block_image_code_91;
+ int32_t DXF_block_image_code_92;
+
+ QString DXF_block_image_code_100[2];
+
+
+ int16_t DXF_block_image_code_280;
+ int16_t DXF_block_image_code_281;
+ int16_t DXF_block_image_code_282;
+ int16_t DXF_block_image_code_283;
+
+ QString DXF_block_image_code_310;
+ QString DXF_block_image_code_330;
+ QString DXF_block_image_code_340;
+ QString DXF_block_image_code_360;
+ };
+
+ struct DXF_block_insert
+ {
+ QString DXF_block_insert_code_5;
+ QString DXF_block_insert_code_6;
+ QString DXF_block_insert_code_8;
+
+ double DXF_block_insert_code_10;
+ double DXF_block_insert_code_11;
+ double DXF_block_insert_code_12;
+ double DXF_block_insert_code_13;
+ double DXF_block_insert_code_14[5];
+
+
+ double DXF_block_insert_code_20;
+ double DXF_block_insert_code_21;
+ double DXF_block_insert_code_22;
+ double DXF_block_insert_code_23;
+ double DXF_block_insert_code_24[5];
+
+ double DXF_block_insert_code_30;
+ double DXF_block_insert_code_31;
+ double DXF_block_insert_code_32;
+
+
+ int16_t DXF_block_insert_code_62;
+
+ int16_t DXF_block_insert_code_70;
+ int16_t DXF_block_insert_code_71;
+
+ int32_t DXF_block_insert_code_90;
+ int32_t DXF_block_insert_code_91;
+ int32_t DXF_block_insert_code_92;
+
+ QString DXF_block_insert_code_100[2];
+
+
+ int16_t DXF_block_insert_code_280;
+ int16_t DXF_block_insert_code_281;
+ int16_t DXF_block_insert_code_282;
+ int16_t DXF_block_insert_code_283;
+
+ QString DXF_block_insert_code_310;
+ QString DXF_block_insert_code_330;
+ QString DXF_block_insert_code_340;
+ QString DXF_block_insert_code_360;
+ };
+
+ struct DXF_block_leader
+ {
+ QString DXF_block_leader_code_5;
+ QString DXF_block_leader_code_6;
+ QString DXF_block_leader_code_8;
+
+ double DXF_block_leader_code_10;
+ double DXF_block_leader_code_11;
+ double DXF_block_leader_code_12;
+ double DXF_block_leader_code_13;
+ double DXF_block_leader_code_14[5];
+
+
+ double DXF_block_leader_code_20;
+ double DXF_block_leader_code_21;
+ double DXF_block_leader_code_22;
+ double DXF_block_leader_code_23;
+ double DXF_block_leader_code_24[5];
+
+ double DXF_block_leader_code_30;
+ double DXF_block_leader_code_31;
+ double DXF_block_leader_code_32;
+
+
+ int16_t DXF_block_leader_code_62;
+
+ int16_t DXF_block_leader_code_70;
+ int16_t DXF_block_leader_code_71;
+
+ int32_t DXF_block_leader_code_90;
+ int32_t DXF_block_leader_code_91;
+ int32_t DXF_block_leader_code_92;
+
+ QString DXF_block_leader_code_100[2];
+
+
+ int16_t DXF_block_leader_code_280;
+ int16_t DXF_block_leader_code_281;
+ int16_t DXF_block_leader_code_282;
+ int16_t DXF_block_leader_code_283;
+
+ QString DXF_block_leader_code_310;
+ QString DXF_block_leader_code_330;
+ QString DXF_block_leader_code_340;
+ QString DXF_block_leader_code_360;
+ };
+
+ struct DXF_block_light
+ {
+ QString DXF_block_light_code_5;
+ QString DXF_block_light_code_6;
+ QString DXF_block_light_code_8;
+
+ double DXF_block_light_code_10;
+ double DXF_block_light_code_11;
+ double DXF_block_light_code_12;
+ double DXF_block_light_code_13;
+ double DXF_block_light_code_14[5];
+
+
+ double DXF_block_light_code_20;
+ double DXF_block_light_code_21;
+ double DXF_block_light_code_22;
+ double DXF_block_light_code_23;
+ double DXF_block_light_code_24[5];
+
+ double DXF_block_light_code_30;
+ double DXF_block_light_code_31;
+ double DXF_block_light_code_32;
+
+
+ int16_t DXF_block_light_code_62;
+
+ int16_t DXF_block_light_code_70;
+ int16_t DXF_block_light_code_71;
+
+ int32_t DXF_block_light_code_90;
+ int32_t DXF_block_light_code_91;
+ int32_t DXF_block_light_code_92;
+
+ QString DXF_block_light_code_100[2];
+
+
+ int16_t DXF_block_light_code_280;
+ int16_t DXF_block_light_code_281;
+ int16_t DXF_block_light_code_282;
+ int16_t DXF_block_light_code_283;
+
+ QString DXF_block_light_code_310;
+ QString DXF_block_light_code_330;
+ QString DXF_block_light_code_340;
+ QString DXF_block_light_code_360;
+ };
+
+ 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;
+
+ double DXF_block_line_code_48;
+
+ int16_t DXF_block_line_code_62;
+
+ QString DXF_block_line_code_100[5];
+ QString DXF_block_line_code_102[2];
+
+ QString DXF_block_line_code_330[5];
+
+ bool DXF_block_line_code_370;
+
+ };
+
+ struct DXF_block_lwpolyline
+ {
+ QString DXF_block_lwpolyline_code_1;
+ QString DXF_block_lwpolyline_code_2;
+ QString DXF_block_lwpolyline_code_3;
+ QString DXF_block_lwpolyline_code_5;
+ QString DXF_block_lwpolyline_code_6;
+ QString DXF_block_lwpolyline_code_8;
+
+ double DXF_block_lwpolyline_code_10[4];
+ double DXF_block_lwpolyline_code_11;
+
+ double DXF_block_lwpolyline_code_20[4];
+ double DXF_block_lwpolyline_code_21;
+
+ double DXF_block_lwpolyline_code_30;
+ double DXF_block_lwpolyline_code_31;
+
+ double DXF_block_lwpolyline_code_43;
+ double DXF_block_lwpolyline_code_48;
+
+ int16_t DXF_block_lwpolyline_code_62;
+ int16_t DXF_block_lwpolyline_code_70;
+
+ int32_t DXF_block_lwpolyline_code_90;
+
+ QString DXF_block_lwpolyline_code_100[2];
+ QString DXF_block_lwpolyline_code_102[2];
+
+ QString DXF_block_lwpolyline_code_330[2];
+ int16_t DXF_block_lwpolyline_code_370;
+ };
+
+ struct DXF_block_mesh
+ {
+ QString DXF_block_mesh_code_5;
+ QString DXF_block_mesh_code_6;
+ QString DXF_block_mesh_code_8;
+
+ double DXF_block_mesh_code_10;
+ double DXF_block_mesh_code_11;
+ double DXF_block_mesh_code_12;
+ double DXF_block_mesh_code_13;
+ double DXF_block_mesh_code_14[5];
+
+
+ double DXF_block_mesh_code_20;
+ double DXF_block_mesh_code_21;
+ double DXF_block_mesh_code_22;
+ double DXF_block_mesh_code_23;
+ double DXF_block_mesh_code_24[5];
+
+ double DXF_block_mesh_code_30;
+ double DXF_block_mesh_code_31;
+ double DXF_block_mesh_code_32;
+
+
+ int16_t DXF_block_mesh_code_62;
+
+ int16_t DXF_block_mesh_code_70;
+ int16_t DXF_block_mesh_code_71;
+
+ int32_t DXF_block_mesh_code_90;
+ int32_t DXF_block_mesh_code_91;
+ int32_t DXF_block_mesh_code_92;
+
+ QString DXF_block_mesh_code_100[2];
+
+
+ int16_t DXF_block_mesh_code_280;
+ int16_t DXF_block_mesh_code_281;
+ int16_t DXF_block_mesh_code_282;
+ int16_t DXF_block_mesh_code_283;
+
+ QString DXF_block_mesh_code_310;
+ QString DXF_block_mesh_code_330;
+ QString DXF_block_mesh_code_340;
+ QString DXF_block_mesh_code_360;
+ };
+
+ struct DXF_block_mline
+ {
+ QString DXF_block_mline_code_5;
+ QString DXF_block_mline_code_6;
+ QString DXF_block_mline_code_8;
+
+ double DXF_block_mline_code_10;
+ double DXF_block_mline_code_11;
+ double DXF_block_mline_code_12;
+ double DXF_block_mline_code_13;
+ double DXF_block_mline_code_14[5];
+
+
+ double DXF_block_mline_code_20;
+ double DXF_block_mline_code_21;
+ double DXF_block_mline_code_22;
+ double DXF_block_mline_code_23;
+ double DXF_block_mline_code_24[5];
+
+ double DXF_block_mline_code_30;
+ double DXF_block_mline_code_31;
+ double DXF_block_mline_code_32;
+
+
+ int16_t DXF_block_mline_code_62;
+
+ int16_t DXF_block_mline_code_70;
+ int16_t DXF_block_mline_code_71;
+
+ int32_t DXF_block_mline_code_90;
+ int32_t DXF_block_mline_code_91;
+ int32_t DXF_block_mline_code_92;
+
+ QString DXF_block_mline_code_100[2];
+
+
+ int16_t DXF_block_mline_code_280;
+ int16_t DXF_block_mline_code_281;
+ int16_t DXF_block_mline_code_282;
+ int16_t DXF_block_mline_code_283;
+
+ QString DXF_block_mline_code_310;
+ QString DXF_block_mline_code_330;
+ QString DXF_block_mline_code_340;
+ QString DXF_block_mline_code_360;
+ };
+
+ struct DXF_block_mleaderstyle
+ {
+ QString DXF_block_mleaderstyle_code_5;
+ QString DXF_block_mleaderstyle_code_6;
+ QString DXF_block_mleaderstyle_code_8;
+
+ double DXF_block_mleaderstyle_code_10;
+ double DXF_block_mleaderstyle_code_11;
+ double DXF_block_mleaderstyle_code_12;
+ double DXF_block_mleaderstyle_code_13;
+ double DXF_block_mleaderstyle_code_14[5];
+
+
+ double DXF_block_mleaderstyle_code_20;
+ double DXF_block_mleaderstyle_code_21;
+ double DXF_block_mleaderstyle_code_22;
+ double DXF_block_mleaderstyle_code_23;
+ double DXF_block_mleaderstyle_code_24[5];
+
+ double DXF_block_mleaderstyle_code_30;
+ double DXF_block_mleaderstyle_code_31;
+ double DXF_block_mleaderstyle_code_32;
+
+
+ int16_t DXF_block_mleaderstyle_code_62;
+
+ int16_t DXF_block_mleaderstyle_code_70;
+ int16_t DXF_block_mleaderstyle_code_71;
+
+ int32_t DXF_block_mleaderstyle_code_90;
+ int32_t DXF_block_mleaderstyle_code_91;
+ int32_t DXF_block_mleaderstyle_code_92;
+
+ QString DXF_block_mleaderstyle_code_100[2];
+
+
+ int16_t DXF_block_mleaderstyle_code_280;
+ int16_t DXF_block_mleaderstyle_code_281;
+ int16_t DXF_block_mleaderstyle_code_282;
+ int16_t DXF_block_mleaderstyle_code_283;
+
+ QString DXF_block_mleaderstyle_code_310;
+ QString DXF_block_mleaderstyle_code_330;
+ QString DXF_block_mleaderstyle_code_340;
+ QString DXF_block_mleaderstyle_code_360;
+ };
+
+ struct DXF_block_mleader
+ {
+ QString DXF_block_mleader_code_5;
+ QString DXF_block_mleader_code_6;
+ QString DXF_block_mleader_code_8;
+
+ double DXF_block_mleader_code_10;
+ double DXF_block_mleader_code_11;
+ double DXF_block_mleader_code_12;
+ double DXF_block_mleader_code_13;
+ double DXF_block_mleader_code_14[5];
+
+
+ double DXF_block_mleader_code_20;
+ double DXF_block_mleader_code_21;
+ double DXF_block_mleader_code_22;
+ double DXF_block_mleader_code_23;
+ double DXF_block_mleader_code_24[5];
+
+ double DXF_block_mleader_code_30;
+ double DXF_block_mleader_code_31;
+ double DXF_block_mleader_code_32;
+
+
+ int16_t DXF_block_mleader_code_62;
+
+ int16_t DXF_block_mleader_code_70;
+ int16_t DXF_block_mleader_code_71;
+
+ int32_t DXF_block_mleader_code_90;
+ int32_t DXF_block_mleader_code_91;
+ int32_t DXF_block_mleader_code_92;
+
+ QString DXF_block_mleader_code_100[2];
+
+
+ int16_t DXF_block_mleader_code_280;
+ int16_t DXF_block_mleader_code_281;
+ int16_t DXF_block_mleader_code_282;
+ int16_t DXF_block_mleader_code_283;
+
+ QString DXF_block_mleader_code_310;
+ QString DXF_block_mleader_code_330;
+ QString DXF_block_mleader_code_340;
+ QString DXF_block_mleader_code_360;
+ };
+
+ struct DXF_block_mtext
+ {
+ QString DXF_block_mtext_code_1;
+ QString DXF_block_mtext_code_2;
+ QString DXF_block_mtext_code_3;
+ QString DXF_block_mtext_code_5;
+ QString DXF_block_mtext_code_6;
+ QString DXF_block_mtext_code_8;
+
+ double DXF_block_mtext_code_10;
+ double DXF_block_mtext_code_11;
+ double DXF_block_mtext_code_12;
+ double DXF_block_mtext_code_13;
+ double DXF_block_mtext_code_14[5];
+
+
+ double DXF_block_mtext_code_20;
+ double DXF_block_mtext_code_21;
+ double DXF_block_mtext_code_22;
+ double DXF_block_mtext_code_23;
+ double DXF_block_mtext_code_24[5];
+
+ double DXF_block_mtext_code_30;
+ double DXF_block_mtext_code_31;
+ double DXF_block_mtext_code_32;
+
+
+ int16_t DXF_block_mtext_code_62;
+
+ int16_t DXF_block_mtext_code_70;
+ int16_t DXF_block_mtext_code_71;
+
+ int32_t DXF_block_mtext_code_90;
+ int32_t DXF_block_mtext_code_91;
+ int32_t DXF_block_mtext_code_92;
+
+ QString DXF_block_mtext_code_100[2];
+
+
+ int16_t DXF_block_mtext_code_280;
+ int16_t DXF_block_mtext_code_281;
+ int16_t DXF_block_mtext_code_282;
+ int16_t DXF_block_mtext_code_283;
+
+ QString DXF_block_mtext_code_310;
+ QString DXF_block_mtext_code_330;
+ QString DXF_block_mtext_code_340;
+ QString DXF_block_mtext_code_360;
+ };
+
+ struct DXF_block_oleframe
+ {
+ QString DXF_block_oleframe_code_5;
+ QString DXF_block_oleframe_code_6;
+ QString DXF_block_oleframe_code_8;
+
+ double DXF_block_oleframe_code_10;
+ double DXF_block_oleframe_code_11;
+ double DXF_block_oleframe_code_12;
+ double DXF_block_oleframe_code_13;
+ double DXF_block_oleframe_code_14[5];
+
+
+ double DXF_block_oleframe_code_20;
+ double DXF_block_oleframe_code_21;
+ double DXF_block_oleframe_code_22;
+ double DXF_block_oleframe_code_23;
+ double DXF_block_oleframe_code_24[5];
+
+ double DXF_block_oleframe_code_30;
+ double DXF_block_oleframe_code_31;
+ double DXF_block_oleframe_code_32;
+
+
+ int16_t DXF_block_oleframe_code_62;
+
+ int16_t DXF_block_oleframe_code_70;
+ int16_t DXF_block_oleframe_code_71;
+
+ int32_t DXF_block_oleframe_code_90;
+ int32_t DXF_block_oleframe_code_91;
+ int32_t DXF_block_oleframe_code_92;
+
+ QString DXF_block_oleframe_code_100[2];
+
+
+ int16_t DXF_block_oleframe_code_280;
+ int16_t DXF_block_oleframe_code_281;
+ int16_t DXF_block_oleframe_code_282;
+ int16_t DXF_block_oleframe_code_283;
+
+ QString DXF_block_oleframe_code_310;
+ QString DXF_block_oleframe_code_330;
+ QString DXF_block_oleframe_code_340;
+ QString DXF_block_oleframe_code_360;
+ };
+
+ struct DXF_block_ole2frame
+ {
+ QString DXF_block_ole2frame_code_5;
+ QString DXF_block_ole2frame_code_6;
+ QString DXF_block_ole2frame_code_8;
+
+ double DXF_block_ole2frame_code_10;
+ double DXF_block_ole2frame_code_11;
+ double DXF_block_ole2frame_code_12;
+ double DXF_block_ole2frame_code_13;
+ double DXF_block_ole2frame_code_14[5];
+
+
+ double DXF_block_ole2frame_code_20;
+ double DXF_block_ole2frame_code_21;
+ double DXF_block_ole2frame_code_22;
+ double DXF_block_ole2frame_code_23;
+ double DXF_block_ole2frame_code_24[5];
+
+ double DXF_block_ole2frame_code_30;
+ double DXF_block_ole2frame_code_31;
+ double DXF_block_ole2frame_code_32;
+
+
+ int16_t DXF_block_ole2frame_code_62;
+
+ int16_t DXF_block_ole2frame_code_70;
+ int16_t DXF_block_ole2frame_code_71;
+
+ int32_t DXF_block_ole2frame_code_90;
+ int32_t DXF_block_ole2frame_code_91;
+ int32_t DXF_block_ole2frame_code_92;
+
+ QString DXF_block_ole2frame_code_100[2];
+
+
+ int16_t DXF_block_ole2frame_code_280;
+ int16_t DXF_block_ole2frame_code_281;
+ int16_t DXF_block_ole2frame_code_282;
+ int16_t DXF_block_ole2frame_code_283;
+
+ QString DXF_block_ole2frame_code_310;
+ QString DXF_block_ole2frame_code_330;
+ QString DXF_block_ole2frame_code_340;
+ QString DXF_block_ole2frame_code_360;
+ };
+
+ struct DXF_block_point
+ {
+ QString DXF_block_point_code_5;
+ QString DXF_block_point_code_6;
+ QString DXF_block_point_code_8;
+
+ double DXF_block_point_code_10;
+ double DXF_block_point_code_11;
+ double DXF_block_point_code_12;
+ double DXF_block_point_code_13;
+ double DXF_block_point_code_14[5];
+
+
+ double DXF_block_point_code_20;
+ double DXF_block_point_code_21;
+ double DXF_block_point_code_22;
+ double DXF_block_point_code_23;
+ double DXF_block_point_code_24[5];
+
+ double DXF_block_point_code_30;
+ double DXF_block_point_code_31;
+ double DXF_block_point_code_32;
+
+
+ int16_t DXF_block_point_code_62;
+
+ int16_t DXF_block_point_code_70;
+ int16_t DXF_block_point_code_71;
+
+ int32_t DXF_block_point_code_90;
+ int32_t DXF_block_point_code_91;
+ int32_t DXF_block_point_code_92;
+
+ QString DXF_block_point_code_100[2];
+
+
+ int16_t DXF_block_point_code_280;
+ int16_t DXF_block_point_code_281;
+ int16_t DXF_block_point_code_282;
+ int16_t DXF_block_point_code_283;
+
+ QString DXF_block_point_code_310;
+ QString DXF_block_point_code_330;
+ QString DXF_block_point_code_340;
+ QString DXF_block_point_code_360;
+ };
+
+ struct DXF_block_polyline
+ {
+ QString DXF_block_polyline_code_5;
+ QString DXF_block_polyline_code_6;
+ QString DXF_block_polyline_code_8;
+
+ double DXF_block_polyline_code_10;
+ double DXF_block_polyline_code_11;
+ double DXF_block_polyline_code_12;
+ double DXF_block_polyline_code_13;
+ double DXF_block_polyline_code_14[5];
+
+
+ double DXF_block_polyline_code_20;
+ double DXF_block_polyline_code_21;
+ double DXF_block_polyline_code_22;
+ double DXF_block_polyline_code_23;
+ double DXF_block_polyline_code_24[5];
+
+ double DXF_block_polyline_code_30;
+ double DXF_block_polyline_code_31;
+ double DXF_block_polyline_code_32;
+
+ double DXF_block_polyline_code_40;
+ double DXF_block_polyline_code_48;
+
+ double DXF_block_polyline_code_50;
+ double DXF_block_polyline_code_51;
+
+
+
+ int16_t DXF_block_polyline_code_62;
+ int16_t DXF_block_polyline_code_66;
+
+ int16_t DXF_block_polyline_code_70;
+ int16_t DXF_block_polyline_code_71;
+
+ int32_t DXF_block_polyline_code_90;
+ int32_t DXF_block_polyline_code_91;
+ int32_t DXF_block_polyline_code_92;
+
+ QString DXF_block_polyline_code_100[2];
+ QString DXF_block_polyline_code_102[3];
+
+ int16_t DXF_block_polyline_code_280;
+ int16_t DXF_block_polyline_code_281;
+ int16_t DXF_block_polyline_code_282;
+ int16_t DXF_block_polyline_code_283;
+
+ QString DXF_block_polyline_code_310;
+ QString DXF_block_polyline_code_330[2];
+ QString DXF_block_polyline_code_340;
+ QString DXF_block_polyline_code_360;
+
+ int16_t DXF_block_polyline_code_370;
+ };
+
+ struct DXF_block_ray
+ {
+ QString DXF_block_ray_code_5;
+ QString DXF_block_ray_code_6;
+ QString DXF_block_ray_code_8;
+
+ double DXF_block_ray_code_10;
+ double DXF_block_ray_code_11;
+ double DXF_block_ray_code_12;
+ double DXF_block_ray_code_13;
+ double DXF_block_ray_code_14[5];
+
+
+ double DXF_block_ray_code_20;
+ double DXF_block_ray_code_21;
+ double DXF_block_ray_code_22;
+ double DXF_block_ray_code_23;
+ double DXF_block_ray_code_24[5];
+
+ double DXF_block_ray_code_30;
+ double DXF_block_ray_code_31;
+ double DXF_block_ray_code_32;
+
+
+ int16_t DXF_block_ray_code_62;
+
+ int16_t DXF_block_ray_code_70;
+ int16_t DXF_block_ray_code_71;
+
+ int32_t DXF_block_ray_code_90;
+ int32_t DXF_block_ray_code_91;
+ int32_t DXF_block_ray_code_92;
+
+ QString DXF_block_ray_code_100[2];
+
+
+ int16_t DXF_block_ray_code_280;
+ int16_t DXF_block_ray_code_281;
+ int16_t DXF_block_ray_code_282;
+ int16_t DXF_block_ray_code_283;
+
+ QString DXF_block_ray_code_310;
+ QString DXF_block_ray_code_330;
+ QString DXF_block_ray_code_340;
+ QString DXF_block_ray_code_360;
+ };
+
+ struct DXF_block_region
+ {
+ QString DXF_block_region_code_5;
+ QString DXF_block_region_code_6;
+ QString DXF_block_region_code_8;
+
+ double DXF_block_region_code_10;
+ double DXF_block_region_code_11;
+ double DXF_block_region_code_12;
+ double DXF_block_region_code_13;
+ double DXF_block_region_code_14[5];
+
+
+ double DXF_block_region_code_20;
+ double DXF_block_region_code_21;
+ double DXF_block_region_code_22;
+ double DXF_block_region_code_23;
+ double DXF_block_region_code_24[5];
+
+ double DXF_block_region_code_30;
+ double DXF_block_region_code_31;
+ double DXF_block_region_code_32;
+
+
+ int16_t DXF_block_region_code_62;
+
+ int16_t DXF_block_region_code_70;
+ int16_t DXF_block_region_code_71;
+
+ int32_t DXF_block_region_code_90;
+ int32_t DXF_block_region_code_91;
+ int32_t DXF_block_region_code_92;
+
+ QString DXF_block_region_code_100[2];
+
+
+ int16_t DXF_block_region_code_280;
+ int16_t DXF_block_region_code_281;
+ int16_t DXF_block_region_code_282;
+ int16_t DXF_block_region_code_283;
+
+ QString DXF_block_region_code_310;
+ QString DXF_block_region_code_330;
+ QString DXF_block_region_code_340;
+ QString DXF_block_region_code_360;
+ };
+
+ struct DXF_block_section
+ {
+ QString DXF_block_section_code_5;
+ QString DXF_block_section_code_6;
+ QString DXF_block_section_code_8;
+
+ double DXF_block_section_code_10;
+ double DXF_block_section_code_11;
+ double DXF_block_section_code_12;
+ double DXF_block_section_code_13;
+ double DXF_block_section_code_14[5];
+
+
+ double DXF_block_section_code_20;
+ double DXF_block_section_code_21;
+ double DXF_block_section_code_22;
+ double DXF_block_section_code_23;
+ double DXF_block_section_code_24[5];
+
+ double DXF_block_section_code_30;
+ double DXF_block_section_code_31;
+ double DXF_block_section_code_32;
+
+
+ int16_t DXF_block_section_code_62;
+
+ int16_t DXF_block_section_code_70;
+ int16_t DXF_block_section_code_71;
+
+ int32_t DXF_block_section_code_90;
+ int32_t DXF_block_section_code_91;
+ int32_t DXF_block_section_code_92;
+
+ QString DXF_block_section_code_100[2];
+
+
+ int16_t DXF_block_section_code_280;
+ int16_t DXF_block_section_code_281;
+ int16_t DXF_block_section_code_282;
+ int16_t DXF_block_section_code_283;
+
+ QString DXF_block_section_code_310;
+ QString DXF_block_section_code_330;
+ QString DXF_block_section_code_340;
+ QString DXF_block_section_code_360;
+ };
+
+ struct DXF_block_seqend
+ {
+ QString DXF_block_seqend_code_5;
+ QString DXF_block_seqend_code_6;
+ QString DXF_block_seqend_code_8;
+
+ double DXF_block_seqend_code_10[200];
+ double DXF_block_seqend_code_11;
+ double DXF_block_seqend_code_12;
+ double DXF_block_seqend_code_13;
+ double DXF_block_seqend_code_14[5];
+
+
+ double DXF_block_seqend_code_20[200];
+ double DXF_block_seqend_code_21;
+ double DXF_block_seqend_code_22;
+ double DXF_block_seqend_code_23;
+ double DXF_block_seqend_code_24[5];
+
+ double DXF_block_seqend_code_30[200];
+ double DXF_block_seqend_code_31;
+ double DXF_block_seqend_code_32;
+
+ double DXF_block_seqend_code_40[200];
+ double DXF_block_seqend_code_41;
+ double DXF_block_seqend_code_42;
+ double DXF_block_seqend_code_43;
+ double DXF_block_seqend_code_44;
+ double DXF_block_seqend_code_45;
+
+ double DXF_block_seqend_code_48;
+
+ double DXF_block_seqend_code_50;
+ double DXF_block_seqend_code_51;
+
+ int16_t DXF_block_seqend_code_62;
+
+ int16_t DXF_block_seqend_code_70;
+ int16_t DXF_block_seqend_code_71;
+ int16_t DXF_block_seqend_code_72;
+ int16_t DXF_block_seqend_code_73;
+ int16_t DXF_block_seqend_code_74;
+ int16_t DXF_block_seqend_code_75;
+
+ int32_t DXF_block_seqend_code_90;
+ int32_t DXF_block_seqend_code_91;
+ int32_t DXF_block_seqend_code_92;
+
+ QString DXF_block_seqend_code_100[2];
+
+ double DXF_block_seqend_code_210;
+
+ double DXF_block_seqend_code_220;
+
+ double DXF_block_seqend_code_230;
+
+ int16_t DXF_block_seqend_code_280;
+ int16_t DXF_block_seqend_code_281;
+ int16_t DXF_block_seqend_code_282;
+ int16_t DXF_block_seqend_code_283;
+
+ QString DXF_block_seqend_code_310;
+ QString DXF_block_seqend_code_330[2];
+ QString DXF_block_seqend_code_340;
+ QString DXF_block_seqend_code_360;
+
+ int16_t DXF_block_seqend_code_370;
+ };
+
+ struct DXF_block_shape
+ {
+ QString DXF_block_shape_code_5;
+ QString DXF_block_shape_code_6;
+ QString DXF_block_shape_code_8;
+
+ double DXF_block_shape_code_10;
+ double DXF_block_shape_code_11;
+ double DXF_block_shape_code_12;
+ double DXF_block_shape_code_13;
+ double DXF_block_shape_code_14[5];
+
+
+ double DXF_block_shape_code_20;
+ double DXF_block_shape_code_21;
+ double DXF_block_shape_code_22;
+ double DXF_block_shape_code_23;
+ double DXF_block_shape_code_24[5];
+
+ double DXF_block_shape_code_30;
+ double DXF_block_shape_code_31;
+ double DXF_block_shape_code_32;
+
+
+ int16_t DXF_block_shape_code_62;
+
+ int16_t DXF_block_shape_code_70;
+ int16_t DXF_block_shape_code_71;
+
+ int32_t DXF_block_shape_code_90;
+ int32_t DXF_block_shape_code_91;
+ int32_t DXF_block_shape_code_92;
+
+ QString DXF_block_shape_code_100[2];
+
+
+ int16_t DXF_block_shape_code_280;
+ int16_t DXF_block_shape_code_281;
+ int16_t DXF_block_shape_code_282;
+ int16_t DXF_block_shape_code_283;
+
+ QString DXF_block_shape_code_310;
+ QString DXF_block_shape_code_330;
+ QString DXF_block_shape_code_340;
+ QString DXF_block_shape_code_360;
+ };
+
+ struct DXF_block_solid
+ {
+ QString DXF_block_solid_code_5;
+ QString DXF_block_solid_code_6;
+ QString DXF_block_solid_code_8;
+
+ double DXF_block_solid_code_10[200];
+ double DXF_block_solid_code_11;
+ double DXF_block_solid_code_12;
+ double DXF_block_solid_code_13;
+ double DXF_block_solid_code_14[5];
+
+
+ double DXF_block_solid_code_20[200];
+ double DXF_block_solid_code_21;
+ double DXF_block_solid_code_22;
+ double DXF_block_solid_code_23;
+ double DXF_block_solid_code_24[5];
+
+ double DXF_block_solid_code_30[200];
+ double DXF_block_solid_code_31;
+ double DXF_block_solid_code_32;
+
+ double DXF_block_solid_code_40[200];
+ double DXF_block_solid_code_41;
+ double DXF_block_solid_code_42;
+ double DXF_block_solid_code_43;
+ double DXF_block_solid_code_44;
+ double DXF_block_solid_code_45;
+
+ double DXF_block_solid_code_48;
+
+ double DXF_block_solid_code_50;
+ double DXF_block_solid_code_51;
+
+ int16_t DXF_block_solid_code_62;
+
+ int16_t DXF_block_solid_code_70;
+ int16_t DXF_block_solid_code_71;
+ int16_t DXF_block_solid_code_72;
+ int16_t DXF_block_solid_code_73;
+ int16_t DXF_block_solid_code_74;
+ int16_t DXF_block_solid_code_75;
+
+ int32_t DXF_block_solid_code_90;
+ int32_t DXF_block_solid_code_91;
+ int32_t DXF_block_solid_code_92;
+
+ QString DXF_block_solid_code_100[2];
+
+ double DXF_block_solid_code_210;
+
+ double DXF_block_solid_code_220;
+
+ double DXF_block_solid_code_230;
+
+ int16_t DXF_block_solid_code_280;
+ int16_t DXF_block_solid_code_281;
+ int16_t DXF_block_solid_code_282;
+ int16_t DXF_block_solid_code_283;
+
+ QString DXF_block_solid_code_310;
+ QString DXF_block_solid_code_330[2];
+ QString DXF_block_solid_code_340;
+ QString DXF_block_solid_code_360;
+
+ int16_t DXF_block_solid_code_370;
+ };
+
+ struct DXF_block_spline
+ {
+ QString DXF_block_spline_code_5;
+ QString DXF_block_spline_code_6;
+ QString DXF_block_spline_code_8;
+
+ double DXF_block_spline_code_10[200];
+ double DXF_block_spline_code_11;
+ double DXF_block_spline_code_12;
+ double DXF_block_spline_code_13;
+ double DXF_block_spline_code_14[5];
+
+
+ double DXF_block_spline_code_20[200];
+ double DXF_block_spline_code_21;
+ double DXF_block_spline_code_22;
+ double DXF_block_spline_code_23;
+ double DXF_block_spline_code_24[5];
+
+ double DXF_block_spline_code_30[200];
+ double DXF_block_spline_code_31;
+ double DXF_block_spline_code_32;
+
+ double DXF_block_spline_code_40[200];
+ double DXF_block_spline_code_41;
+ double DXF_block_spline_code_42;
+ double DXF_block_spline_code_43;
+ double DXF_block_spline_code_44;
+ double DXF_block_spline_code_45;
+
+ double DXF_block_spline_code_48;
+
+ double DXF_block_spline_code_50;
+ double DXF_block_spline_code_51;
+
+ int16_t DXF_block_spline_code_62;
+
+ int16_t DXF_block_spline_code_70;
+ int16_t DXF_block_spline_code_71;
+ int16_t DXF_block_spline_code_72;
+ int16_t DXF_block_spline_code_73;
+ int16_t DXF_block_spline_code_74;
+ int16_t DXF_block_spline_code_75;
+
+ int32_t DXF_block_spline_code_90;
+ int32_t DXF_block_spline_code_91;
+ int32_t DXF_block_spline_code_92;
+
+ QString DXF_block_spline_code_100[2];
+
+ double DXF_block_spline_code_210;
+
+ double DXF_block_spline_code_220;
+
+ double DXF_block_spline_code_230;
+
+ int16_t DXF_block_spline_code_280;
+ int16_t DXF_block_spline_code_281;
+ int16_t DXF_block_spline_code_282;
+ int16_t DXF_block_spline_code_283;
+
+ QString DXF_block_spline_code_310;
+ QString DXF_block_spline_code_330[2];
+ QString DXF_block_spline_code_340;
+ QString DXF_block_spline_code_360;
+
+ int16_t DXF_block_spline_code_370;
+ };
+
+ struct DXF_block_sun
+ {
+ QString DXF_block_sun_code_5;
+ QString DXF_block_sun_code_6;
+ QString DXF_block_sun_code_8;
+
+ double DXF_block_sun_code_10;
+ double DXF_block_sun_code_11;
+ double DXF_block_sun_code_12;
+ double DXF_block_sun_code_13;
+ double DXF_block_sun_code_14[5];
+
+
+ double DXF_block_sun_code_20;
+ double DXF_block_sun_code_21;
+ double DXF_block_sun_code_22;
+ double DXF_block_sun_code_23;
+ double DXF_block_sun_code_24[5];
+
+ double DXF_block_sun_code_30;
+ double DXF_block_sun_code_31;
+ double DXF_block_sun_code_32;
+
+
+ int16_t DXF_block_sun_code_62;
+
+ int16_t DXF_block_sun_code_70;
+ int16_t DXF_block_sun_code_71;
+
+ int32_t DXF_block_sun_code_90;
+ int32_t DXF_block_sun_code_91;
+ int32_t DXF_block_sun_code_92;
+
+ QString DXF_block_sun_code_100[2];
+
+
+ int16_t DXF_block_sun_code_280;
+ int16_t DXF_block_sun_code_281;
+ int16_t DXF_block_sun_code_282;
+ int16_t DXF_block_sun_code_283;
+
+ QString DXF_block_sun_code_310;
+ QString DXF_block_sun_code_330;
+ QString DXF_block_sun_code_340;
+ QString DXF_block_sun_code_360;
+ };
+
+ struct DXF_block_surface
+ {
+ QString DXF_block_surface_code_5;
+ QString DXF_block_surface_code_6;
+ QString DXF_block_surface_code_8;
+
+ double DXF_block_surface_code_10;
+ double DXF_block_surface_code_11;
+ double DXF_block_surface_code_12;
+ double DXF_block_surface_code_13;
+ double DXF_block_surface_code_14[5];
+
+
+ double DXF_block_surface_code_20;
+ double DXF_block_surface_code_21;
+ double DXF_block_surface_code_22;
+ double DXF_block_surface_code_23;
+ double DXF_block_surface_code_24[5];
+
+ double DXF_block_surface_code_30;
+ double DXF_block_surface_code_31;
+ double DXF_block_surface_code_32;
+
+
+ int16_t DXF_block_surface_code_62;
+
+ int16_t DXF_block_surface_code_70;
+ int16_t DXF_block_surface_code_71;
+
+ int32_t DXF_block_surface_code_90;
+ int32_t DXF_block_surface_code_91;
+ int32_t DXF_block_surface_code_92;
+
+ QString DXF_block_surface_code_100[2];
+
+
+ int16_t DXF_block_surface_code_280;
+ int16_t DXF_block_surface_code_281;
+ int16_t DXF_block_surface_code_282;
+ int16_t DXF_block_surface_code_283;
+
+ QString DXF_block_surface_code_310;
+ QString DXF_block_surface_code_330;
+ QString DXF_block_surface_code_340;
+ QString DXF_block_surface_code_360;
+ };
+
+ struct DXF_block_table
+ {
+ 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_12;
+ double DXF_block_text_code_13;
+ double DXF_block_text_code_14[5];
+
+
+ double DXF_block_text_code_20;
+ double DXF_block_text_code_21;
+ double DXF_block_text_code_22;
+ double DXF_block_text_code_23;
+ double DXF_block_text_code_24[5];
+
+ double DXF_block_text_code_30;
+ double DXF_block_text_code_31;
+ double DXF_block_text_code_32;
+
+
+ int16_t DXF_block_text_code_62;
+
+ int16_t DXF_block_text_code_70;
+ int16_t DXF_block_text_code_71;
+
+ int32_t DXF_block_text_code_90;
+ int32_t DXF_block_text_code_91;
+ int32_t DXF_block_text_code_92;
+
+ QString DXF_block_text_code_100[2];
+
+
+ int16_t DXF_block_text_code_280;
+ int16_t DXF_block_text_code_281;
+ int16_t DXF_block_text_code_282;
+ int16_t DXF_block_text_code_283;
+
+ QString DXF_block_text_code_310;
+ QString DXF_block_text_code_330;
+ QString DXF_block_text_code_340;
+ QString DXF_block_text_code_360;
+ };
+
+ struct DXF_block_text
+ {
+ QString DXF_block_text_code_1;
+ QString DXF_block_text_code_2;
+ QString DXF_block_text_code_3;
+ QString DXF_block_text_code_5;
+ QString DXF_block_text_code_6;
+ QString DXF_block_text_code_7;
+ 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;
+ int16_t DXF_block_text_code_73;
+
+ QString DXF_block_text_code_100[5];
+ QString DXF_block_text_code_102[2];
+
+ QString DXF_block_text_code_330[2];
+ };
+
+ struct DXF_block_tolerance
+ {
+ QString DXF_block_tolerance_code_5;
+ QString DXF_block_tolerance_code_6;
+ QString DXF_block_tolerance_code_8;
+
+ double DXF_block_tolerance_code_10;
+ double DXF_block_tolerance_code_11;
+ double DXF_block_tolerance_code_12;
+ double DXF_block_tolerance_code_13;
+ double DXF_block_tolerance_code_14[5];
+
+
+ double DXF_block_tolerance_code_20;
+ double DXF_block_tolerance_code_21;
+ double DXF_block_tolerance_code_22;
+ double DXF_block_tolerance_code_23;
+ double DXF_block_tolerance_code_24[5];
+
+ double DXF_block_tolerance_code_30;
+ double DXF_block_tolerance_code_31;
+ double DXF_block_tolerance_code_32;
+
+
+ int16_t DXF_block_tolerance_code_62;
+
+ int16_t DXF_block_tolerance_code_70;
+ int16_t DXF_block_tolerance_code_71;
+
+ int32_t DXF_block_tolerance_code_90;
+ int32_t DXF_block_tolerance_code_91;
+ int32_t DXF_block_tolerance_code_92;
+
+ QString DXF_block_tolerance_code_100[2];
+
+
+ int16_t DXF_block_tolerance_code_280;
+ int16_t DXF_block_tolerance_code_281;
+ int16_t DXF_block_tolerance_code_282;
+ int16_t DXF_block_tolerance_code_283;
+
+ QString DXF_block_tolerance_code_310;
+ QString DXF_block_tolerance_code_330;
+ QString DXF_block_tolerance_code_340;
+ QString DXF_block_tolerance_code_360;
+ };
+
+ struct DXF_block_trace
+ {
+ QString DXF_block_trace_code_5;
+ QString DXF_block_trace_code_6;
+ QString DXF_block_trace_code_8;
+
+ double DXF_block_trace_code_10;
+ double DXF_block_trace_code_11;
+ double DXF_block_trace_code_12;
+ double DXF_block_trace_code_13;
+ double DXF_block_trace_code_14[5];
+
+
+ double DXF_block_trace_code_20;
+ double DXF_block_trace_code_21;
+ double DXF_block_trace_code_22;
+ double DXF_block_trace_code_23;
+ double DXF_block_trace_code_24[5];
+
+ double DXF_block_trace_code_30;
+ double DXF_block_trace_code_31;
+ double DXF_block_trace_code_32;
+
+
+ int16_t DXF_block_trace_code_62;
+
+ int16_t DXF_block_trace_code_70;
+ int16_t DXF_block_trace_code_71;
+
+ int32_t DXF_block_trace_code_90;
+ int32_t DXF_block_trace_code_91;
+ int32_t DXF_block_trace_code_92;
+
+ QString DXF_block_trace_code_100[2];
+
+
+ int16_t DXF_block_trace_code_280;
+ int16_t DXF_block_trace_code_281;
+ int16_t DXF_block_trace_code_282;
+ int16_t DXF_block_trace_code_283;
+
+ QString DXF_block_trace_code_310;
+ QString DXF_block_trace_code_330;
+ QString DXF_block_trace_code_340;
+ QString DXF_block_trace_code_360;
+ };
+
+ struct DXF_block_underlay
+ {
+ QString DXF_block_underlay_code_5;
+ QString DXF_block_underlay_code_6;
+ QString DXF_block_underlay_code_8;
+
+ double DXF_block_underlay_code_10;
+ double DXF_block_underlay_code_11;
+ double DXF_block_underlay_code_12;
+ double DXF_block_underlay_code_13;
+ double DXF_block_underlay_code_14[5];
+
+
+ double DXF_block_underlay_code_20;
+ double DXF_block_underlay_code_21;
+ double DXF_block_underlay_code_22;
+ double DXF_block_underlay_code_23;
+ double DXF_block_underlay_code_24[5];
+
+ double DXF_block_underlay_code_30;
+ double DXF_block_underlay_code_31;
+ double DXF_block_underlay_code_32;
+
+
+ int16_t DXF_block_underlay_code_62;
+
+ int16_t DXF_block_underlay_code_70;
+ int16_t DXF_block_underlay_code_71;
+
+ int32_t DXF_block_underlay_code_90;
+ int32_t DXF_block_underlay_code_91;
+ int32_t DXF_block_underlay_code_92;
+
+ QString DXF_block_underlay_code_100[2];
+
+
+ int16_t DXF_block_underlay_code_280;
+ int16_t DXF_block_underlay_code_281;
+ int16_t DXF_block_underlay_code_282;
+ int16_t DXF_block_underlay_code_283;
+
+ QString DXF_block_underlay_code_310;
+ QString DXF_block_underlay_code_330;
+ QString DXF_block_underlay_code_340;
+ QString DXF_block_underlay_code_360;
+ };
+
+ struct DXF_block_vertex
+ {
+
+ QString Master_block_handle_id;
+ QString DXF_block_vertex_code_5;
+ QString DXF_block_vertex_code_6;
+ QString DXF_block_vertex_code_8;
+
+ double DXF_block_vertex_code_10;
+ double DXF_block_vertex_code_11;
+ double DXF_block_vertex_code_12;
+ double DXF_block_vertex_code_13;
+ double DXF_block_vertex_code_14[5];
+
+
+ double DXF_block_vertex_code_20;
+ double DXF_block_vertex_code_21;
+ double DXF_block_vertex_code_22;
+ double DXF_block_vertex_code_23;
+ double DXF_block_vertex_code_24[5];
+
+ double DXF_block_vertex_code_30;
+ double DXF_block_vertex_code_31;
+ double DXF_block_vertex_code_32;
+
+ double DXF_block_vertex_code_40;
+ double DXF_block_vertex_code_41;
+
+ double DXF_block_vertex_code_48;
+
+ double DXF_block_vertex_code_50;
+ double DXF_block_vertex_code_51;
+
+ int16_t DXF_block_vertex_code_62;
+
+ int16_t DXF_block_vertex_code_70;
+ int16_t DXF_block_vertex_code_71;
+
+ int32_t DXF_block_vertex_code_90;
+ int32_t DXF_block_vertex_code_91;
+ int32_t DXF_block_vertex_code_92;
+
+ QString DXF_block_vertex_code_100[5];
+ QString DXF_block_vertex_code_102[2];
+
+
+ int16_t DXF_block_vertex_code_280;
+ int16_t DXF_block_vertex_code_281;
+ int16_t DXF_block_vertex_code_282;
+ int16_t DXF_block_vertex_code_283;
+
+ QString DXF_block_vertex_code_310;
+ QString DXF_block_vertex_code_330[2];
+ QString DXF_block_vertex_code_340;
+ QString DXF_block_vertex_code_360;
+
+ int16_t DXF_block_vertex_code_370;
+ };
+
+ struct DXF_block_viewport
+ {
+ QString DXF_block_viewport_code_1;
+ QString DXF_block_viewport_code_2;
+ QString DXF_block_viewport_code_3;
+ QString DXF_block_viewport_code_4;
+ QString DXF_block_viewport_code_5;
+ QString DXF_block_viewport_code_6;
+ QString DXF_block_viewport_code_8;
+
+ double DXF_block_viewport_code_10;
+ double DXF_block_viewport_code_11;
+ double DXF_block_viewport_code_12;
+ double DXF_block_viewport_code_13;
+ double DXF_block_viewport_code_14[5];
+ double DXF_block_viewport_code_15;
+ double DXF_block_viewport_code_16;
+ double DXF_block_viewport_code_17;
+
+ double DXF_block_viewport_code_20;
+ double DXF_block_viewport_code_21;
+ double DXF_block_viewport_code_22;
+ double DXF_block_viewport_code_23;
+ double DXF_block_viewport_code_24;
+ double DXF_block_viewport_code_25;
+ double DXF_block_viewport_code_26;
+ double DXF_block_viewport_code_27;
+
+ double DXF_block_viewport_code_30;
+ double DXF_block_viewport_code_31;
+ double DXF_block_viewport_code_32;
+ double DXF_block_viewport_code_33;
+ double DXF_block_viewport_code_34;
+ double DXF_block_viewport_code_35;
+ double DXF_block_viewport_code_36;
+ double DXF_block_viewport_code_37;
+
+ double DXF_block_viewport_code_40;
+ double DXF_block_viewport_code_41;
+ double DXF_block_viewport_code_42;
+ double DXF_block_viewport_code_43;
+ double DXF_block_viewport_code_44;
+ double DXF_block_viewport_code_45;
+ double DXF_block_viewport_code_46;
+ double DXF_block_viewport_code_48;
+
+ double DXF_block_viewport_code_50;
+ double DXF_block_viewport_code_51;
+
+ int16_t DXF_block_viewport_code_62;
+ int16_t DXF_block_viewport_code_68;
+ int16_t DXF_block_viewport_code_69;
+
+ int16_t DXF_block_viewport_code_70;
+ int16_t DXF_block_viewport_code_71;
+ int16_t DXF_block_viewport_code_72;
+ int16_t DXF_block_viewport_code_74;
+ int16_t DXF_block_viewport_code_79;
+
+ int32_t DXF_block_viewport_code_90;
+ int32_t DXF_block_viewport_code_91;
+ int32_t DXF_block_viewport_code_92;
+
+ QString DXF_block_viewport_code_100[2];
+ QString DXF_block_viewport_code_102[2];
+
+ double DXF_block_viewport_code_110;
+ double DXF_block_viewport_code_111;
+ double DXF_block_viewport_code_112;
+
+ double DXF_block_viewport_code_120;
+ double DXF_block_viewport_code_121;
+ double DXF_block_viewport_code_122;
+
+ double DXF_block_viewport_code_130;
+ double DXF_block_viewport_code_131;
+ double DXF_block_viewport_code_132;
+
+ double DXF_block_viewport_code_146;
+
+
+ int16_t DXF_block_viewport_code_280;
+ int16_t DXF_block_viewport_code_281;
+ int16_t DXF_block_viewport_code_282;
+ int16_t DXF_block_viewport_code_283;
+
+ QString DXF_block_viewport_code_310;
+ QString DXF_block_viewport_code_330[2];
+ QString DXF_block_viewport_code_340;
+ QString DXF_block_viewport_code_360;
+
+ int16_t DXF_block_viewport_code_370;
+
+ };
+
+ struct DXF_block_wipeout
+ {
+ QString DXF_block_wipeout_code_5;
+ QString DXF_block_wipeout_code_6;
+ QString DXF_block_wipeout_code_8;
+
+ double DXF_block_wipeout_code_10;
+ double DXF_block_wipeout_code_11;
+ double DXF_block_wipeout_code_12;
+ double DXF_block_wipeout_code_13;
+ double DXF_block_wipeout_code_14[5];
+
+
+ double DXF_block_wipeout_code_20;
+ double DXF_block_wipeout_code_21;
+ double DXF_block_wipeout_code_22;
+ double DXF_block_wipeout_code_23;
+ double DXF_block_wipeout_code_24[5];
+
+ double DXF_block_wipeout_code_30;
+ double DXF_block_wipeout_code_31;
+ double DXF_block_wipeout_code_32;
+
+
+ int16_t DXF_block_wipeout_code_62;
+
+ int16_t DXF_block_wipeout_code_70;
+ int16_t DXF_block_wipeout_code_71;
+
+ int32_t DXF_block_wipeout_code_90;
+ int32_t DXF_block_wipeout_code_91;
+ int32_t DXF_block_wipeout_code_92;
+
+ QString DXF_block_wipeout_code_100[2];
+
+
+ int16_t DXF_block_wipeout_code_280;
+ int16_t DXF_block_wipeout_code_281;
+ int16_t DXF_block_wipeout_code_282;
+ int16_t DXF_block_wipeout_code_283;
+
+ QString DXF_block_wipeout_code_310;
+ QString DXF_block_wipeout_code_330;
+ QString DXF_block_wipeout_code_340;
+ QString DXF_block_wipeout_code_360;
+ };
+
+ struct DXF_block_xline
+ {
+ QString DXF_block_xline_code_5;
+ QString DXF_block_xline_code_6;
+ QString DXF_block_xline_code_8;
+
+ double DXF_block_xline_code_10;
+ double DXF_block_xline_code_11;
+ double DXF_block_xline_code_12;
+ double DXF_block_xline_code_13;
+ double DXF_block_xline_code_14[5];
+
+
+ double DXF_block_xline_code_20;
+ double DXF_block_xline_code_21;
+ double DXF_block_xline_code_22;
+ double DXF_block_xline_code_23;
+ double DXF_block_xline_code_24[5];
+
+ double DXF_block_xline_code_30;
+ double DXF_block_xline_code_31;
+ double DXF_block_xline_code_32;
+
+
+ int16_t DXF_block_xline_code_62;
+
+ int16_t DXF_block_xline_code_70;
+ int16_t DXF_block_xline_code_71;
+
+ int32_t DXF_block_xline_code_90;
+ int32_t DXF_block_xline_code_91;
+ int32_t DXF_block_xline_code_92;
+
+ QString DXF_block_xline_code_100[2];
+
+
+ int16_t DXF_block_xline_code_280;
+ int16_t DXF_block_xline_code_281;
+ int16_t DXF_block_xline_code_282;
+ int16_t DXF_block_xline_code_283;
+
+ QString DXF_block_xline_code_310;
+ QString DXF_block_xline_code_330;
+ QString DXF_block_xline_code_340;
+ QString DXF_block_xline_code_360;
+ };
+
+ 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_102[3];
+
+ QString DXF_entities_arc_code_330[3]; // Soft-pointer ID/handle to owner dictionary (optional)
+
+ int16_t DXF_entities_arc_code_370;
+
+ };
+
+ 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;
+ double DXF_entities_attdef_code_50;
+
+
+ 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_1;
+ QString DXF_entities_attrib_code_2;
+ QString DXF_entities_attrib_code_3;
+
+ QString DXF_entities_attrib_code_5;
+ QString DXF_entities_attrib_code_6;
+ QString DXF_entities_attrib_code_7;
+ 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;
+
+ double DXF_entities_attrib_code_40;
+ double DXF_entities_attrib_code_50;
+
+ int16_t DXF_entities_attrib_code_62;
+
+ int16_t DXF_entities_attrib_code_70;
+ int16_t DXF_entities_attrib_code_72;
+
+ int16_t DXF_entities_attrib_code_74;
+
+ QString DXF_entities_attrib_code_100[3];
+
+ int16_t DXF_entities_attrib_code_280;
+
+ 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_2;
+ 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;
+
+ double DXF_entities_circle_code_40;
+ double DXF_entities_circle_code_48;
+
+ int16_t DXF_entities_circle_code_62;
+
+ int16_t DXF_entities_circle_code_72;
+ int16_t DXF_entities_circle_code_73;
+
+ QString DXF_entities_circle_code_100[3];
+ QString DXF_entities_circle_code_102[3];
+
+ QString DXF_entities_circle_code_330[3];
+
+ double DXF_entities_circle_code_370;
+
+ };
+
+ 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_6;
+ 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_62;
+ 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_2;
+ 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;
+
+ double DXF_entities_insert_code_40;
+ double DXF_entities_insert_code_41;
+ double DXF_entities_insert_code_42;
+ double DXF_entities_insert_code_43;
+
+ double DXF_entities_insert_code_50;
+
+ int16_t DXF_entities_insert_code_62;
+ int16_t DXF_entities_insert_code_66;
+
+ QString DXF_entities_insert_code_100[3];
+ QString DXF_entities_insert_code_102[3];
+
+ QString DXF_entities_insert_code_330[3];
+ };
+
+ 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;
+
+ double DXF_entities_line_code_48; // line type scale
+
+ int16_t DXF_entities_line_code_62;
+
+ QString DXF_entities_line_code_100[5];
+ QString DXF_entities_line_code_102[3];
+
+ QString DXF_entities_line_code_330[3];
+
+ int16_t DXF_entities_line_code_370;
+
+ };
+
+ 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]; //x
+ double DXF_entities_lwpolyline_code_11;
+ double DXF_entities_lwpolyline_code_20[50]; //y
+ double DXF_entities_lwpolyline_code_21;
+ double DXF_entities_lwpolyline_code_30; //z
+ double DXF_entities_lwpolyline_code_31;
+
+ double DXF_entities_lwpolyline_code_43;// constant width default=0
+
+ int16_t DXF_entities_lwpolyline_code_62;
+
+ int16_t DXF_entities_lwpolyline_code_70; //1= closed 128=plingen
+
+ int32_t DXF_entities_lwpolyline_code_90; //number of vertices
+
+ 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;
+ int16_t DXF_entities_polyline_code_66;
+ int16_t DXF_entities_polyline_code_70;
+
+ 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 Master_handle_id;
+ 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[50];
+ double DXF_entities_spline_code_11;
+ double DXF_entities_spline_code_20[50];
+ double DXF_entities_spline_code_21;
+ double DXF_entities_spline_code_30[50];
+ double DXF_entities_spline_code_31;
+
+ double DXF_entities_spline_code_40[50];
+
+ double DXF_entities_spline_code_42;
+ double DXF_entities_spline_code_43;
+
+ int16_t DXF_entities_spline_code_62;
+
+ int16_t DXF_entities_spline_code_70;
+ int16_t DXF_entities_spline_code_71;
+ int16_t DXF_entities_spline_code_72;
+ int16_t DXF_entities_spline_code_73;
+ int16_t DXF_entities_spline_code_74;
+
+ QString DXF_entities_spline_code_100[3];
+
+ double DXF_entities_spline_code_210;
+ double DXF_entities_spline_code_220;
+ double DXF_entities_spline_code_230;
+
+ 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_1; // Default value text string
+ QString DXF_entities_text_code_5; //
+ QString DXF_entities_text_code_6;
+ QString DXF_entities_text_code_7;
+ 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;
+
+ double DXF_entities_text_code_40; // Text height
+ double DXF_entities_text_code_50; // Text rotation
+
+ int16_t DXF_entities_text_code_62;
+
+ int16_t DXF_entities_text_code_72;
+ int16_t DXF_entities_text_code_73;
+
+ QString DXF_entities_text_code_100[3];
+ QString DXF_entities_text_code_102[5];
+
+ QString DXF_entities_text_code_330[5];
+
+ };
+
+ 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 Master_handle_id;
+ 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/Qetdxf/sources/dxftoqet2/src/dxf_load.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_load.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_load.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_load.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_load.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_load.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,32 @@
+#ifndef DXF_LOAD_H
+#define DXF_LOAD_H
+
+#include <QObject>
+#include <QMainWindow>
+#include <QtWidgets>
+#include "dxftoqet2/src/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/Qetdxf/sources/dxftoqet2/src/dxf_ltype_control.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_ltype_control.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_ltype_control.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -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/Qetdxf/sources/dxftoqet2/src/dxf_split.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_split.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_split.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,32771 @@
+#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][500];
+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[5000];
+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;
+ count_table_block_record_331=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(found_table_block_record());
+
+ }
+ 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(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ break;
+
+ case 100:
+
+ if (count_table_block_record_100>1)
+ {
+ Log_1.append(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ break;
+
+ case 331 :
+
+
+ if (count_table_block_record_331>19)
+ {
+ Log_1.append(found_table_block_record());
+ }
+ else
+ {
+ DXF_input_table_block_record[tables_count3].dxf_table_block_record_code_331[count_table_block_record_331]=line6;
+ count_table_block_record_331=count_table_block_record_331+1;
+ }
+ 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(found_table_block_record());
+ }
+ 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(found_table_block_record());
+ }
+ break;
+
+ default:
+ Log_1.append(found_table_block_record());
+ }
+
+
+ }
+ }
+ }
+
+ 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 BLOCKS sections \n");
+
+ block_st1=0;
+ block_count1=0;
+
+ block_3dface_count=0;
+ block_3dsolid_count=0;
+ block_acad_proxy_entity_count=0;
+ block_arc_count=0;
+ block_attdef_count=0;
+ block_attrib_count=0;
+ block_body_count=0;
+ block_circle_count=0;
+ block_dimension_count=0;
+ block_ellipse_count=0;
+ block_hatch_count=0;
+ block_helix_count=0;
+ block_image_count=0;
+ block_insert_count=0;
+ block_leader_count=0;
+ block_light_count=0;
+ block_line_count=0;
+ block_lwpolyline_count=0;
+ block_mesh_count=0;
+ block_mline_count=0;
+ block_mleaderstyle_count=0;
+ block_mleader_count=0;
+ block_mtext_count=0;
+ block_oleframe_count=0;
+ block_ole2frame_count=0;
+ block_point_count=0;
+ block_polyline_count=0;
+ block_ray_count=0;
+ block_region_count=0;
+ block_seqend_count=0;
+ block_shape_count=0;
+ block_solid_count=0;
+ block_spline_count=0;
+ block_sun_count=0;
+ block_surface_count=0;
+ block_table_count=0;
+ block_text_count=0;
+ block_tolerance_count=0;
+ block_trace_count=0;
+ block_underlay_count=0;
+ block_vertex_count=0;
+ block_viewport_count=0;
+ block_wipeout_count=0;
+ block_xline_count=0;
+
+
+
+ count_block_100=0;
+ count_block_102=0;
+
+ while (block_st1==0 and block_count1<99) // count the number of blocks
+ {
+ 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;
+
+ 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;
+
+
+
+ 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:
+
+ Log_1.append ("<BLOCK section n°: ");
+ Log_1.append (QString::number(block_count1));
+ Log_1.append (">\n");
+
+ for_count1=for_count1-2;
+ block_st3=1;
+ DXF_main_base[0].DXF_block_3dface_count[block_count1]=block_3dface_count;
+ DXF_main_base[0].DXF_block_3dsolid_count[block_count1]=block_3dsolid_count;
+ DXF_main_base[0].DXF_block_acad_proxy_entity_count[block_count1]=block_acad_proxy_entity_count;
+ DXF_main_base[0].DXF_block_arc_count[block_count1]=block_arc_count;
+ DXF_main_base[0].DXF_block_attdef_count[block_count1]=block_attdef_count;
+ DXF_main_base[0].DXF_block_attrib_count[block_count1]=block_attrib_count;
+ DXF_main_base[0].DXF_block_body_count[block_count1]=block_body_count;
+ DXF_main_base[0].DXF_block_circle_count[block_count1]=block_circle_count;
+ DXF_main_base[0].DXF_block_dimension_count[block_count1]=block_dimension_count;
+ DXF_main_base[0].DXF_block_ellipse_count[block_count1]=block_ellipse_count;
+ DXF_main_base[0].DXF_block_hatch_count[block_count1]=block_hatch_count;
+ DXF_main_base[0].DXF_block_helix_count[block_count1]=block_helix_count;
+ DXF_main_base[0].DXF_block_image_count[block_count1]=block_image_count;
+ DXF_main_base[0].DXF_block_insert_count[block_count1]=block_insert_count;
+ DXF_main_base[0].DXF_block_leader_count[block_count1]=block_leader_count;
+ DXF_main_base[0].DXF_block_light_count[block_count1]=block_light_count;
+ DXF_main_base[0].DXF_block_line_count[block_count1]=block_line_count;
+ DXF_main_base[0].DXF_block_lwpolyline_count[block_count1]=block_lwpolyline_count;
+ DXF_main_base[0].DXF_block_mesh_count[block_count1]=block_mesh_count;
+ DXF_main_base[0].DXF_block_mline_count[block_count1]=block_mline_count;
+ DXF_main_base[0].DXF_block_mleaderstyle_count[block_count1]=block_mleaderstyle_count;
+ DXF_main_base[0].DXF_block_mleader_count[block_count1]=block_mleader_count;
+ DXF_main_base[0].DXF_block_mtext_count[block_count1]=block_mtext_count;
+ DXF_main_base[0].DXF_block_oleframe_count[block_count1]=block_oleframe_count;
+ DXF_main_base[0].DXF_block_ole2frame_count[block_count1]=block_ole2frame_count;
+ DXF_main_base[0].DXF_block_point_count[block_count1]=block_point_count;
+ DXF_main_base[0].DXF_block_polyline_count[block_count1]=block_polyline_count;
+ DXF_main_base[0].DXF_block_ray_count[block_count1]=block_ray_count;
+ DXF_main_base[0].DXF_block_region_count[block_count1]=block_region_count;
+ DXF_main_base[0].DXF_block_section_count[block_count1]=block_section_count;
+ DXF_main_base[0].DXF_block_seqend_count[block_count1]=block_seqend_count;
+ DXF_main_base[0].DXF_block_shape_count[block_count1]=block_shape_count;
+ DXF_main_base[0].DXF_block_solid_count[block_count1]=block_solid_count;
+ DXF_main_base[0].DXF_block_spline_count[block_count1]=block_spline_count;
+ DXF_main_base[0].DXF_block_sun_count[block_count1]=block_sun_count;
+ DXF_main_base[0].DXF_block_surface_count[block_count1]=block_surface_count;
+ DXF_main_base[0].DXF_block_table_count[block_count1]=block_table_count;
+ DXF_main_base[0].DXF_block_text_count[block_count1]=block_text_count;
+ DXF_main_base[0].DXF_block_tolerance_count[block_count1]=block_tolerance_count;
+ DXF_main_base[0].DXF_block_trace_count[block_count1]=block_trace_count;
+ DXF_main_base[0].DXF_block_underlay_count[block_count1]=block_underlay_count;
+ DXF_main_base[0].DXF_block_vertex_count[block_count1]=block_vertex_count;
+ DXF_main_base[0].DXF_block_viewport_count[block_count1]=block_viewport_count;
+ DXF_main_base[0].DXF_block_wipeout_count[block_count1]=block_wipeout_count;
+ DXF_main_base[0].DXF_block_xline_count[block_count1]=block_xline_count;
+
+ block_count1=block_count1+1;
+
+ block_3dface_count=0;
+ block_3dsolid_count=0;
+ block_acad_proxy_entity_count=0;
+ block_arc_count=0;
+ block_attdef_count=0;
+ block_attrib_count=0;
+ block_body_count=0;
+ block_circle_count=0;
+ block_dimension_count=0;
+ block_ellipse_count=0;
+ block_hatch_count=0;
+ block_helix_count=0;
+ block_image_count=0;
+ block_insert_count=0;
+ block_leader_count=0;
+ block_light_count=0;
+ block_line_count=0;
+ block_lwpolyline_count=0;
+ block_mesh_count=0;
+ block_mline_count=0;
+ block_mleaderstyle_count=0;
+ block_mleader_count=0;
+ block_mtext_count=0;
+ block_oleframe_count=0;
+ block_ole2frame_count=0;
+ block_point_count=0;
+ block_polyline_count=0;
+ block_ray_count=0;
+ block_region_count=0;
+ block_seqend_count=0;
+ block_shape_count=0;
+ block_solid_count=0;
+ block_spline_count=0;
+ block_sun_count=0;
+ block_surface_count=0;
+ block_table_count=0;
+ block_text_count=0;
+ block_tolerance_count=0;
+ block_trace_count=0;
+ block_underlay_count=0;
+ block_vertex_count=0;
+ block_viewport_count=0;
+ block_wipeout_count=0;
+ block_xline_count=0;
+
+
+
+ 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(found_end_block_section());
+
+ }
+ 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(found_end_block_section());
+ }
+ 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(found_end_block_section());
+ }
+ break;
+
+ case 100:
+
+ if (count_end_block_100>1)
+ {
+ Log_1.append(found_end_block_section());
+ }
+ 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(found_end_block_section());
+ }
+ break;
+
+ default:
+ Log_1.append(found_end_block_section());
+
+ }
+
+ }
+
+
+
+ }
+ else
+ {
+
+ if (line4=="3DFACE" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code 3DFACE \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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code 3DFACE block n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_3dface_count));
+ Log_1.append("\n");
+
+ block_3dface_count=block_3dface_count+1;
+
+ break;
+
+ default:
+ Log_1.append(found_block_3dface());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code 3DSOLID n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_3dsolid_count));
+ Log_1.append("\n");
+
+ block_3dsolid_count=block_3dsolid_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_3dsolid());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code ACAD_PROXY_ENTITY n°: ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_acad_proxy_entity_count));
+ Log_1.append("\n");
+
+ block_acad_proxy_entity_count=block_acad_proxy_entity_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_acad_proxy_entity());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="ARC" and line4.length()==3)
+ {
+ Log_1.append("Start reading BLOCK code ARC \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_arc_14=0;
+ count_block_arc_24=0;
+ count_block_arc_100=0;
+ count_block_arc_102=0;
+ count_block_arc_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code ARC n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_arc_count));
+ Log_1.append("\n");
+
+ block_arc_count=block_arc_count+1;
+
+
+
+ break;
+
+
+ /*case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+
+ case 2:
+
+ if(sw_block_line[2]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_2=line8;
+ sw_block_line[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;*/
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_arc_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_arc[block_count1][block_line_count].DXF_block_arc_code_14[count_block_arc_14]=line8.toDouble();
+ count_block_arc_14=count_block_arc_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_arc_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_arc[block_count1][block_line_count].DXF_block_arc_code_24[count_block_arc_24]=line8.toDouble();
+ count_block_arc_24=count_block_arc_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ /*case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;*/
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 102:
+
+ if (count_block_arc_102>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_102[count_block_arc_102]=line8;
+ count_block_arc_102=count_block_arc_102+1;
+ }
+ break;
+
+ int count_block_arc_100;
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_arc_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_330[count_block_arc_330]=line8;
+ count_block_arc_330=count_block_arc_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_arc[block_count1][block_arc_count].DXF_block_arc_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_arc());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_arc());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="ATTDEF" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code ATTDEF \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_attdef_14=0;
+ count_block_attdef_24=0;
+ count_block_attdef_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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code ATTDEF n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_attdef_count));
+ Log_1.append("\n");
+
+ block_attdef_count=block_attdef_count+1;
+
+
+ break;
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 2:
+
+ if(sw_block_line[2]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_2=line8;
+ sw_block_line[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_attdef_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attdef[block_count1][block_line_count].DXF_block_attdef_code_14[count_block_attdef_14]=line8.toDouble();
+ count_block_attdef_14=count_block_attdef_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_attdef_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attdef[block_count1][block_line_count].DXF_block_attdef_code_24[count_block_attdef_24]=line8.toDouble();
+ count_block_attdef_24=count_block_attdef_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 53:
+
+ if(sw_block_line[53]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_53=line8.toDouble();
+ sw_block_line[53]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_attdef_100>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_100[count_block_attdef_100]=line8;
+ count_block_attdef_100=count_block_attdef_100+1;
+ }
+ break;
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_block_line[330]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_330=line8;
+ sw_block_line[330]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_attdef[block_count1][block_attdef_count].DXF_block_attdef_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attdef());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_attdef());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="ATTRIB" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code ATTRIB \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_attrib_14=0;
+ count_block_attrib_24=0;
+ count_block_attrib_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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code ATTRIB n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_attrib_count));
+ Log_1.append("\n");
+
+ block_attrib_count=block_attrib_count+1;
+
+
+ break;
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 2:
+
+ if(sw_block_line[2]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_2=line8;
+ sw_block_line[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ /*case 14:
+
+ if (count_block_attrib_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attrib[block_count1][block_line_count].DXF_block_attrib_code_14[count_block_attrib_14]=line8.toDouble();
+ count_block_attrib_14=count_block_attrib_14+1;
+ }
+ break;*/
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 24:
+
+ /*if (count_block_attrib_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attrib[block_count1][block_line_count].DXF_block_attrib_code_24[count_block_attrib_24]=line8.toDouble();
+ count_block_attrib_24=count_block_attrib_24+1;
+ }
+ break;*/
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 53:
+
+ if(sw_block_line[53]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_53=line8.toDouble();
+ sw_block_line[53]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_attrib_100>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_100[count_block_attrib_100]=line8;
+ count_block_attrib_100=count_block_attrib_100+1;
+ }
+ break;
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_block_line[330]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_330=line8;
+ sw_block_line[330]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_attrib[block_count1][block_attrib_count].DXF_block_attrib_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_attrib());
+
+ }
+
+ break;
+
+
+ default:
+ Log_1.append(found_block_attrib());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code BODY n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_body_count));
+ Log_1.append("\n");
+
+ block_body_count=block_body_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_body());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="CIRCLE" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code CIRCLE \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_circle_14=0;
+ count_block_circle_24=0;
+ count_block_circle_100=0;
+ count_block_circle_102=0;
+ count_block_circle_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code CIRCLE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_circle_count));
+ Log_1.append("\n");
+
+ block_circle_count=block_circle_count+1;
+
+ break;
+
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_circle_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_circle[block_count1][block_line_count].DXF_block_circle_code_14[count_block_circle_14]=line8.toDouble();
+ count_block_circle_14=count_block_circle_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_circle_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_circle[block_count1][block_line_count].DXF_block_circle_code_24[count_block_circle_24]=line8.toDouble();
+ count_block_circle_24=count_block_circle_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_circle_100>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_100[count_block_circle_100]=line8;
+ count_block_circle_100=count_block_circle_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_circle_102>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_102[count_block_circle_102]=line8;
+ count_block_circle_102=count_block_circle_102+1;
+ }
+ break;
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+ case 330:
+
+ if (count_block_circle_100>19)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_330[count_block_circle_330]=line8;
+ count_block_circle_330=count_block_circle_330+1;
+ }
+ break;
+
+
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_circle[block_count1][block_circle_count].DXF_block_circle_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_circle());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_circle());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code DIMENSION n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_dimension_count));
+ Log_1.append("\n");
+
+ block_dimension_count=block_dimension_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_dimension());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code ELLIPSE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_ellipse_count));
+ Log_1.append("\n");
+
+ block_ellipse_count=block_ellipse_count+1;
+
+
+ break;
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_ellipse_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_ellipse[block_count1][block_line_count].DXF_block_ellipse_code_14[count_block_ellipse_14]=line8.toDouble();
+ count_block_ellipse_14=count_block_ellipse_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_ellipse_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_ellipse[block_count1][block_line_count].DXF_block_ellipse_code_24[count_block_ellipse_24]=line8.toDouble();
+ count_block_ellipse_24=count_block_ellipse_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_ellipse_100>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_100[count_block_ellipse_100]=line8;
+ count_block_ellipse_100=count_block_ellipse_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_ellipse_102>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_102[count_block_ellipse_102]=line8;
+ count_block_ellipse_102=count_block_ellipse_102+1;
+ }
+ break;
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+ case 330:
+
+ if (count_block_ellipse_100>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_330[count_block_ellipse_330]=line8;
+ count_block_ellipse_330=count_block_ellipse_330+1;
+ }
+ break;
+
+
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_ellipse[block_count1][block_ellipse_count].DXF_block_ellipse_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_ellipse());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_ellipse());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="HATCH" and line4.length()==5)
+ {
+ Log_1.append("Start reading BLOCK code HATCH \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_hatch_100=0;
+ count_block_hatch_102=0;
+ count_block_hatch_14=0;
+ count_block_hatch_10=0;
+ count_block_hatch_20=0;
+ count_block_hatch_30=0;
+ count_block_hatch_40=0;
+ count_block_hatch_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code HATCH n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_hatch_count));
+ Log_1.append("\n");
+
+ block_hatch_count=block_hatch_count+1;
+
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 10:
+
+ if (count_block_hatch_10>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_10[count_block_hatch_10]=line8.toDouble();
+ count_block_hatch_10=count_block_hatch_10+1;
+ }
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_hatch_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_14[count_block_hatch_14]=line8.toDouble();
+ count_block_hatch_14=count_block_hatch_14+1;
+ }
+ break;
+
+ case 20:
+
+ if (count_block_hatch_20>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_20[count_block_hatch_20]=line8.toDouble();
+ count_block_hatch_20=count_block_hatch_20+1;
+ }
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_hatch_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_24[count_block_hatch_24]=line8.toDouble();
+ count_block_hatch_24=count_block_hatch_24+1;
+ }
+ break;
+
+ case 30:
+
+ if (count_block_hatch_30>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_30[count_block_hatch_30]=line8.toDouble();
+ count_block_hatch_30=count_block_hatch_30+1;
+ }
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 40:
+
+ if (count_block_hatch_40>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_line_count].DXF_block_hatch_code_40[count_block_hatch_40]=line8.toDouble();
+ count_block_hatch_40=count_block_hatch_40+1;
+ }
+ break;
+
+ case 42:
+
+ if(sw_block_line[42]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_42=line8.toDouble();
+ sw_block_line[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 44:
+
+ if(sw_block_line[44]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_44=line8.toDouble();
+ sw_block_line[44]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 73:
+
+ if(sw_block_line[73]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_73=line8.toInt();
+ sw_block_line[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_hatch_100>2)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_100[count_block_hatch_100]=line8;
+ count_block_hatch_100=count_block_hatch_100+1;
+ }
+ break;
+
+
+ case 210:
+
+ if(sw_block_line[210]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_210=line8.toInt();
+ sw_block_line[210]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 220:
+
+ if(sw_block_line[220]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_220=line8.toInt();
+ sw_block_line[220]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+ case 230:
+
+ if(sw_block_line[230]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_230=line8.toInt();
+ sw_block_line[230]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_hatch_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_330[count_block_hatch_330]=line8;
+ count_block_hatch_330=count_block_hatch_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_hatch[block_count1][block_hatch_count].DXF_block_hatch_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_hatch());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_hatch());
+
+
+ }
+
+
+ }
+ }
+
+ if (line4=="HELIX" and line4.length()==5)
+ {
+ Log_1.append("Start reading BLOCK code HELIX \n");
+
+ //block_helix_count=0;
+ 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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code HELIX \n");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_helix_count));
+ Log_1.append("\n");
+
+ block_helix_count=block_helix_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_helix());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="IMAGE" and line4.length()==5)
+ {
+
+ Log_1.append("<< Start reading BLOCK code IMAGE >> \n");
+
+ block_image_count=0;
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_image_14=0;
+ count_block_image_24=0;
+ count_block_image_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:
+
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code IMAGE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_image_count));
+ Log_1.append("\n");
+
+ block_image_count=block_image_count+1;
+
+
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_image_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_image[block_count1][block_line_count].DXF_block_image_code_14[count_block_image_14]=line8.toDouble();
+ count_block_image_14=count_block_image_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_image_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_image[block_count1][block_line_count].DXF_block_image_code_24[count_block_image_24]=line8.toDouble();
+ count_block_image_24=count_block_image_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ /*case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;*/
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_image_100>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_100[count_block_image_100]=line8;
+ count_block_image_100=count_block_image_100+1;
+ }
+ break;
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_block_line[330]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_330=line8;
+ sw_block_line[330]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_image[block_count1][block_image_count].DXF_block_image_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_image());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_image());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code INSERT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_insert_count));
+ Log_1.append("\n");
+
+ block_insert_count=block_insert_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_insert());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code LEADER n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_leader_count));
+ Log_1.append("\n");
+
+ block_leader_count=block_leader_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_leader());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code LIGHT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_light_count));
+ Log_1.append("\n");
+
+ block_light_count=block_light_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_light());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="LINE" and line4.length()==4)
+ {
+ Log_1.append("Start reading BLOCK code LINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_line_count));
+ Log_1.append("\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;
+ count_block_line_102=0;
+ count_block_line_330=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:
+
+
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code LINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_line_count));
+ Log_1.append(" \n");
+
+ block_line_count=block_line_count+1;
+
+ 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(found_block_line());
+
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_line());
+ }
+
+ 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(found_block_line());
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_line_100>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ 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 102:
+
+ if (count_block_line_102>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_102[count_block_line_102]=line8;
+ count_block_line_102=count_block_line_102+1;
+ }
+ break;
+
+ if (count_block_line_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_330[count_block_line_330]=line8;
+ count_block_line_330=count_block_line_330+1;
+ }
+ break;
+
+ case 330:
+
+ if (count_block_line_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_330[count_block_line_330]=line8;
+ count_block_line_330=count_block_line_330+1;
+ }
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_line[block_count1][block_line_count].DXF_block_line_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_line());
+ }
+
+ break;
+
+
+ default:
+ Log_1.append(found_block_line());
+ }
+
+
+ }
+ }
+
+ if (line4=="LWPOLYLINE" and line4.length()==10)
+ {
+ Log_1.append("Start reading BLOCK code LWPOLYLINE \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_lwpolyline_10=0;
+ count_block_lwpolyline_14=0;
+ count_block_lwpolyline_20=0;
+ count_block_lwpolyline_24=0;
+ count_block_lwpolyline_100=0;
+ count_block_lwpolyline_102=0;
+ count_block_lwpolyline_330=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:
+
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code LWPOLYLINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_lwpolyline_count));
+ Log_1.append("\n");
+
+ block_lwpolyline_count=block_lwpolyline_count+1;
+
+
+ break;
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 10:
+
+ if (count_block_lwpolyline_10>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_10[count_block_lwpolyline_10]=line8.toDouble();
+ count_block_lwpolyline_10=count_block_lwpolyline_10+1;
+ }
+ break;
+
+
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ /*case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_lwpolyline_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_line_count].DXF_block_lwpolyline_code_14[count_block_lwpolyline_14]=line8.toDouble();
+ count_block_lwpolyline_14=count_block_lwpolyline_14+1;
+ }
+ break;*/
+
+ case 20:
+
+ if (count_block_lwpolyline_20>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_20[count_block_lwpolyline_20]=line8.toDouble();
+ count_block_lwpolyline_20=count_block_lwpolyline_20+1;
+ }
+ break;
+
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ /*case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_lwpolyline_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_line_count].DXF_block_lwpolyline_code_24[count_block_lwpolyline_24]=line8.toDouble();
+ count_block_lwpolyline_24=count_block_lwpolyline_24+1;
+ }
+ break;*/
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ /*case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ /*case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ /*case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ case 100:
+
+ if (count_block_lwpolyline_100>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_100[count_block_lwpolyline_100]=line8;
+ count_block_lwpolyline_100=count_block_lwpolyline_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_lwpolyline_102>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_102[count_block_lwpolyline_102]=line8;
+ count_block_lwpolyline_102=count_block_lwpolyline_102+1;
+ }
+ break;
+
+ /*case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ /*case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ case 330:
+
+ if (count_block_lwpolyline_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_330[count_block_lwpolyline_330]=line8;
+ count_block_lwpolyline_330=count_block_lwpolyline_330+1;
+ }
+ break;
+
+
+
+ /*case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;*/
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_lwpolyline[block_count1][block_lwpolyline_count].DXF_block_lwpolyline_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_lwpolyline());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code MESH n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_mesh_count));
+ Log_1.append("\n");
+
+ block_mesh_count=block_mesh_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_mesh());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code MLINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_mline_count));
+ Log_1.append("\n");
+
+ block_mline_count=block_mline_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_mline());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code MLEADERSTYLE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_mleaderstyle_count));
+ Log_1.append("\n");
+
+ block_mleaderstyle_count=block_mleaderstyle_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_mleaderstyle());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code MLEADER n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_mleader_count));
+ Log_1.append("\n");
+
+ block_mleader_count=block_mleader_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_mleader());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code MTEXT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_mtext_count));
+ Log_1.append("\n");
+
+ block_mtext_count=block_mtext_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_mtext());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code OLEFRAME n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_oleframe_count));
+ Log_1.append("\n");
+
+ block_oleframe_count=block_oleframe_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_oleframe());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code OLE2FRAME n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_ole2frame_count));
+ Log_1.append("\n");
+
+ block_ole2frame_count=block_ole2frame_count+1;
+
+ break;
+
+ default:
+ Log_1.append(found_block_ole2frame());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code POINT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_point_count));
+ Log_1.append("\n");
+
+ block_point_count=block_point_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_point());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="POLYLINE" and line4.length()==8)
+ {
+ Log_1.append("Start reading BLOCK code POLYLINE \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_polyline_100=0;
+ count_block_polyline_102=0;
+ count_block_polyline_14=0;
+ count_block_polyline_10=0;
+ count_block_polyline_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code POLYLINE n : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_polyline_count));
+ Log_1.append("\n");
+
+ block_polyline_count=block_polyline_count+1;
+
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_5=line8;
+ Master_block_handle_id=line8;
+
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_polyline_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_polyline[block_count1][block_line_count].DXF_block_polyline_code_14[count_block_polyline_14]=line8.toDouble();
+ count_block_polyline_14=count_block_polyline_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_polyline_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_polyline[block_count1][block_line_count].DXF_block_polyline_code_24[count_block_polyline_24]=line8.toDouble();
+ count_block_polyline_24=count_block_polyline_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 66:
+
+ if(sw_block_line[66]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_66=line8.toInt();
+ sw_block_line[66]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ /*case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;*/
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_polyline_100>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_100[count_block_polyline_100]=line8;
+ count_block_polyline_100=count_block_polyline_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_polyline_102>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_102[count_block_polyline_102]=line8;
+ count_block_polyline_102=count_block_polyline_102+1;
+ }
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_polyline_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_330[count_block_polyline_330]=line8;
+ count_block_polyline_330=count_block_polyline_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_polyline[block_count1][block_polyline_count].DXF_block_polyline_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_polyline());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_polyline());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code RAY n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_ray_count));
+ Log_1.append("\n");
+
+ block_ray_count=block_ray_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_ray());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code REGION n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_region_count));
+ Log_1.append("\n");
+
+ block_region_count=block_region_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_region());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code SECTION n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_section_count));
+ Log_1.append("\n");
+
+ block_section_count=block_section_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_section());
+
+ }
+
+
+ }
+ }
+
+ 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<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];
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_seqend_100=0;
+ count_block_seqend_102=0;
+ count_block_seqend_14=0;
+ count_block_seqend_10=0;
+ count_block_seqend_20=0;
+ count_block_seqend_30=0;
+ count_block_seqend_40=0;
+ count_block_seqend_330=0;
+
+
+ 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° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_seqend_count));
+ Log_1.append("\n");
+
+ block_seqend_count=block_seqend_count+1;
+
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 10:
+
+ if (count_block_seqend_10>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_10[count_block_seqend_10]=line8.toDouble();
+ count_block_seqend_10=count_block_seqend_10+1;
+ }
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_seqend_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_14[count_block_seqend_14]=line8.toDouble();
+ count_block_seqend_14=count_block_seqend_14+1;
+ }
+ break;
+
+ case 20:
+
+ if (count_block_seqend_20>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_20[count_block_seqend_20]=line8.toDouble();
+ count_block_seqend_20=count_block_seqend_20+1;
+ }
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_seqend_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_24[count_block_seqend_24]=line8.toDouble();
+ count_block_seqend_24=count_block_seqend_24+1;
+ }
+ break;
+
+ case 30:
+
+ if (count_block_seqend_30>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_30[count_block_seqend_30]=line8.toDouble();
+ count_block_seqend_30=count_block_seqend_30+1;
+ }
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 40:
+
+ if (count_block_seqend_40>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_line_count].DXF_block_seqend_code_40[count_block_seqend_40]=line8.toDouble();
+ count_block_seqend_40=count_block_seqend_40+1;
+ }
+ break;
+
+ case 42:
+
+ if(sw_block_line[42]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_42=line8.toDouble();
+ sw_block_line[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 44:
+
+ if(sw_block_line[44]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_44=line8.toDouble();
+ sw_block_line[44]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 73:
+
+ if(sw_block_line[73]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_73=line8.toInt();
+ sw_block_line[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_seqend_100>2)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_100[count_block_seqend_100]=line8;
+ count_block_seqend_100=count_block_seqend_100+1;
+ }
+ break;
+
+
+ case 210:
+
+ if(sw_block_line[210]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_210=line8.toInt();
+ sw_block_line[210]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 220:
+
+ if(sw_block_line[220]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_220=line8.toInt();
+ sw_block_line[220]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+ case 230:
+
+ if(sw_block_line[230]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_230=line8.toInt();
+ sw_block_line[230]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_seqend_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_330[count_block_seqend_330]=line8;
+ count_block_seqend_330=count_block_seqend_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_seqend[block_count1][block_seqend_count].DXF_block_seqend_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_seqend());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_seqend());
+
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code SHAPE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_shape_count));
+ Log_1.append("\n");
+
+ block_shape_count=block_shape_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_shape());
+
+ }
+
+
+ }
+ }
+
+ 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;
+
+ }
+
+ count_block_solid_100=0;
+ count_block_solid_102=0;
+ count_block_solid_14=0;
+ count_block_solid_10=0;
+ count_block_solid_20=0;
+ count_block_solid_30=0;
+ count_block_solid_40=0;
+ count_block_solid_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+
+ Log_1.append("End reading BLOCK code SOLID n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_solid_count));
+ Log_1.append("\n");
+
+ block_solid_count=block_solid_count+1;
+
+
+ break;
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ break;
+
+ case 10:
+
+ if (count_block_solid_10>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_10[count_block_solid_10]=line8.toDouble();
+ count_block_solid_10=count_block_solid_10+1;
+ }
+ 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(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_solid_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_14[count_block_solid_14]=line8.toDouble();
+ count_block_solid_14=count_block_solid_14+1;
+ }
+ break;
+
+ case 20:
+
+ if (count_block_solid_20>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_20[count_block_solid_20]=line8.toDouble();
+ count_block_solid_20=count_block_solid_20+1;
+ }
+ 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(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ 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(found_block_solid());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_solid_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_24[count_block_solid_24]=line8.toDouble();
+ count_block_solid_24=count_block_solid_24+1;
+ }
+ break;
+
+ case 30:
+
+ if (count_block_solid_30>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_30[count_block_solid_30]=line8.toDouble();
+ count_block_solid_30=count_block_solid_30+1;
+ }
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 40:
+
+ if (count_block_solid_40>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_line_count].DXF_block_solid_code_40[count_block_solid_40]=line8.toDouble();
+ count_block_solid_40=count_block_solid_40+1;
+ }
+ break;
+
+ case 42:
+
+ if(sw_block_line[42]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_42=line8.toDouble();
+ sw_block_line[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 44:
+
+ if(sw_block_line[44]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_44=line8.toDouble();
+ sw_block_line[44]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+ case 73:
+
+ if(sw_block_line[73]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_73=line8.toInt();
+ sw_block_line[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_solid_100>2)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_100[count_block_solid_100]=line8;
+ count_block_solid_100=count_block_solid_100+1;
+ }
+ break;
+
+
+ case 210:
+
+ if(sw_block_line[210]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_210=line8.toInt();
+ sw_block_line[210]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+ case 220:
+
+ if(sw_block_line[220]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_220=line8.toInt();
+ sw_block_line[220]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+ case 230:
+
+ if(sw_block_line[230]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_230=line8.toInt();
+ sw_block_line[230]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_solid_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_330[count_block_solid_330]=line8;
+ count_block_solid_330=count_block_solid_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_solid[block_count1][block_solid_count].DXF_block_solid_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_solid());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_solid());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="SPLINE" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code SPLINE \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_spline_100=0;
+ count_block_spline_102=0;
+ count_block_spline_14=0;
+ count_block_spline_10=0;
+ count_block_spline_20=0;
+ count_block_spline_30=0;
+ count_block_spline_40=0;
+ count_block_spline_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code SPLINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_spline_count));
+ Log_1.append("\n");
+
+ block_spline_count=block_spline_count+1;
+
+
+ break;
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 10:
+
+ if (count_block_spline_10>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_10[count_block_spline_10]=line8.toDouble();
+ count_block_spline_10=count_block_spline_10+1;
+ }
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_spline_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_14[count_block_spline_14]=line8.toDouble();
+ count_block_spline_14=count_block_spline_14+1;
+ }
+ break;
+
+ case 20:
+
+ if (count_block_spline_20>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_20[count_block_spline_20]=line8.toDouble();
+ count_block_spline_20=count_block_spline_20+1;
+ }
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_spline_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_24[count_block_spline_24]=line8.toDouble();
+ count_block_spline_24=count_block_spline_24+1;
+ }
+ break;
+
+ case 30:
+
+ if (count_block_spline_30>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_30[count_block_spline_30]=line8.toDouble();
+ count_block_spline_30=count_block_spline_30+1;
+ }
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 40:
+
+ if (count_block_spline_40>199)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_line_count].DXF_block_spline_code_40[count_block_spline_40]=line8.toDouble();
+ count_block_spline_40=count_block_spline_40+1;
+ }
+ break;
+
+ case 42:
+
+ if(sw_block_line[42]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_42=line8.toDouble();
+ sw_block_line[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 44:
+
+ if(sw_block_line[44]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_44=line8.toDouble();
+ sw_block_line[44]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 73:
+
+ if(sw_block_line[73]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_73=line8.toInt();
+ sw_block_line[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_spline_100>2)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_100[count_block_spline_100]=line8;
+ count_block_spline_100=count_block_spline_100+1;
+ }
+ break;
+
+
+ case 210:
+
+ if(sw_block_line[210]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_210=line8.toInt();
+ sw_block_line[210]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 220:
+
+ if(sw_block_line[220]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_220=line8.toInt();
+ sw_block_line[220]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+ case 230:
+
+ if(sw_block_line[230]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_230=line8.toInt();
+ sw_block_line[230]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_spline_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_330[count_block_spline_330]=line8;
+ count_block_spline_330=count_block_spline_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_spline[block_count1][block_spline_count].DXF_block_spline_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_spline());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_spline());
+
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code SUN n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_sun_count));
+ Log_1.append("\n");
+
+ block_sun_count=block_sun_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_sun());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code SURFACE \n");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_surface_count));
+ Log_1.append("\n");
+
+ block_surface_count=block_surface_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_surface());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code TABLE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_table_count));
+ Log_1.append("\n");
+
+ block_table_count=block_table_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_table());
+
+ }
+
+
+ }
+ }
+
+ 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;
+
+ }
+
+ count_block_text_14=0;
+ count_block_text_24=0;
+ count_block_text_100=0;
+ count_block_text_102=0;
+ count_block_text_330=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:
+
+
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+
+ Log_1.append("End reading BLOCK code TEXT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_text_count));
+ Log_1.append("\n");
+
+ block_text_count=block_text_count+1;
+
+
+ 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(found_block_text());
+
+ }
+
+ break;
+
+ case 3:
+
+ if(sw_block_line[3]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_3=line8;
+ sw_block_line[3]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 7:
+
+ if(sw_block_line[7]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_7=line8;
+ sw_block_line[7]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ /*case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_text_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_14[count_block_text_14]=line8.toDouble();
+ count_block_text_14=count_block_text_14+1;
+ }
+ break;*/
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ /*case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_text_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_text[block_count1][block_line_count].DXF_block_text_code_24[count_block_text_24]=line8.toDouble();
+ count_block_text_24=count_block_text_24+1;
+ }
+ break;*/
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ /*case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ /*case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 73:
+
+ if(sw_block_line[73]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_73=line8.toInt();
+ sw_block_line[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ /*case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ /*case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ case 100:
+
+ if (count_block_text_100>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_100[count_block_text_100]=line8;
+ count_block_text_100=count_block_text_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_text_100>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_102[count_block_text_102]=line8;
+ count_block_text_102=count_block_text_102+1;
+ }
+ break;
+
+ /*case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ case 330:
+
+ if (count_block_text_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_330[count_block_text_330]=line8;
+ count_block_text_330=count_block_text_100+1;
+ }
+ break;
+
+ /*case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_text[block_count1][block_text_count].DXF_block_text_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_text());
+
+ }
+
+ break;*/
+
+ default:
+ Log_1.append(found_block_text());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code TOLERANCE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_tolerance_count));
+ Log_1.append("\n");
+
+ block_tolerance_count=block_tolerance_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_tolerance());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code TRACE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_trace_count));
+ Log_1.append("\n");
+
+ block_trace_count=block_trace_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_trace());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code UNDERLAY n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_underlay_count));
+ Log_1.append("\n");
+
+ block_underlay_count=block_underlay_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_underlay());
+
+ }
+
+
+ }
+ }
+
+ if (line4=="VERTEX" and line4.length()==6)
+ {
+ Log_1.append("Start reading BLOCK code VERTEX \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_vertex_100=0;
+ count_block_vertex_102=0;
+ count_block_vertex_14=0;
+ count_block_vertex_10=0;
+ count_block_vertex_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code VERTEX n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_vertex_count));
+ Log_1.append("\n");
+
+ block_vertex_count=block_vertex_count+1;
+
+ DXF_input_block_vertex[block_count1][block_vertex_count].Master_block_handle_id=Master_block_handle_id;
+
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_vertex_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_vertex[block_count1][block_line_count].DXF_block_vertex_code_14[count_block_vertex_14]=line8.toDouble();
+ count_block_vertex_14=count_block_vertex_14+1;
+ }
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 24:
+
+ if (count_block_vertex_24>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_vertex[block_count1][block_line_count].DXF_block_vertex_code_24[count_block_vertex_24]=line8.toDouble();
+ count_block_vertex_24=count_block_vertex_24+1;
+ }
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ /*case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;*/
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_vertex_100>5)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_100[count_block_vertex_100]=line8;
+ count_block_vertex_100=count_block_vertex_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_vertex_102>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_102[count_block_vertex_102]=line8;
+ count_block_vertex_102=count_block_vertex_102+1;
+ }
+ break;
+
+
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_vertex_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_330[count_block_vertex_330]=line8;
+ count_block_vertex_330=count_block_vertex_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_vertex[block_count1][block_vertex_count].DXF_block_vertex_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_vertex());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_vertex());
+ }
+
+
+ }
+ }
+
+ if (line4=="VIEWPORT" and line4.length()==8)
+ {
+ Log_1.append("Start reading BLOCK codeVIEWPORT \n");
+
+ block_st5=0;
+ block_count5=0;
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_block_line[sw_cleaner]=0;
+
+ }
+
+ count_block_viewport_100=0;
+ count_block_viewport_102=0;
+ count_block_viewport_14=0;
+ count_block_viewport_10=0;
+ count_block_viewport_330=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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code VIEWPORT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_viewport_count));
+ Log_1.append("\n");
+
+ block_viewport_count=block_viewport_count+1;
+
+
+ break;
+
+
+ case 1:
+
+ if(sw_block_line[1]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_1=line8;
+ sw_block_line[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 5:
+
+ if(sw_block_line[5]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_5=line8;
+ sw_block_line[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+
+ case 6:
+
+ if(sw_block_line[6]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_6=line8;
+ sw_block_line[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+
+ case 8:
+
+ if(sw_block_line[8]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_8=line8;
+ sw_block_line[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_block_line[10]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_10=line8.toDouble();
+ sw_block_line[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_block_line[11]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_11=line8.toDouble();
+ sw_block_line[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 12:
+
+ if(sw_block_line[12]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_12=line8.toDouble();
+ sw_block_line[12]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 13:
+
+ if(sw_block_line[13]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_13=line8.toDouble();
+ sw_block_line[13]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 14:
+
+ if (count_block_viewport_14>4)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_viewport[block_count1][block_line_count].DXF_block_viewport_code_14[count_block_viewport_14]=line8.toDouble();
+ count_block_viewport_14=count_block_viewport_14+1;
+ }
+ break;
+
+ case 15:
+
+ if(sw_block_line[15]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_15=line8.toDouble();
+ sw_block_line[15]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 16:
+
+ if(sw_block_line[16]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_16=line8.toDouble();
+ sw_block_line[16]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 17:
+
+ if(sw_block_line[17]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_17=line8.toDouble();
+ sw_block_line[17]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_block_line[20]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_20=line8.toDouble();
+ sw_block_line[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_block_line[21]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_21=line8.toDouble();
+ sw_block_line[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 22:
+
+ if(sw_block_line[22]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_22=line8.toDouble();
+ sw_block_line[22]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 23:
+
+ if(sw_block_line[23]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_23=line8.toDouble();
+ sw_block_line[23]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+
+ case 24:
+
+ if(sw_block_line[24]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_24=line8.toDouble();
+ sw_block_line[24]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 25:
+
+ if(sw_block_line[25]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_25=line8.toDouble();
+ sw_block_line[25]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 26:
+
+ if(sw_block_line[26]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_26=line8.toDouble();
+ sw_block_line[26]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 27:
+
+ if(sw_block_line[27]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_27=line8.toDouble();
+ sw_block_line[27]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_block_line[30]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_30=line8.toDouble();
+ sw_block_line[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_block_line[31]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_31=line8.toDouble();
+ sw_block_line[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 32:
+
+ if(sw_block_line[32]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_32=line8.toDouble();
+ sw_block_line[32]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 36:
+
+ if(sw_block_line[36]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_36=line8.toDouble();
+ sw_block_line[36]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 37:
+
+ if(sw_block_line[37]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_37=line8.toDouble();
+ sw_block_line[37]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+
+ case 40:
+
+ if(sw_block_line[40]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_40=line8.toDouble();
+ sw_block_line[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 41:
+
+ if(sw_block_line[41]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_41=line8.toDouble();
+ sw_block_line[41]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 42:
+
+ if(sw_block_line[42]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_42=line8.toDouble();
+ sw_block_line[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_block_line[43]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_43=line8.toDouble();
+ sw_block_line[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 44:
+
+ if(sw_block_line[44]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_44=line8.toDouble();
+ sw_block_line[44]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 45:
+
+ if(sw_block_line[45]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_45=line8.toDouble();
+ sw_block_line[45]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_block_line[48]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_48=line8.toDouble();
+ sw_block_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_block_line[50]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_50=line8.toDouble();
+ sw_block_line[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 51:
+
+ if(sw_block_line[51]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_51=line8.toDouble();
+ sw_block_line[51]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_block_line[62]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_62=line8.toInt();
+ sw_block_line[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 68:
+
+ if(sw_block_line[68]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_68=line8.toInt();
+ sw_block_line[68]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 69:
+
+ if(sw_block_line[69]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_69=line8.toInt();
+ sw_block_line[69]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_block_line[70]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_70=line8.toInt();
+ sw_block_line[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_block_line[71]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_71=line8.toInt();
+ sw_block_line[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_block_line[72]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_72=line8.toInt();
+ sw_block_line[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_block_line[74]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_74=line8.toInt();
+ sw_block_line[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 79:
+
+ if(sw_block_line[79]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_79=line8.toInt();
+ sw_block_line[79]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 90:
+
+ if(sw_block_line[90]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_90=line8.toInt();
+ sw_block_line[90]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 91:
+
+ if(sw_block_line[91]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_91=line8.toInt();
+ sw_block_line[91]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 92:
+
+ if(sw_block_line[92]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_92=line8.toInt();
+ sw_block_line[92]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 100:
+
+ if (count_block_viewport_100>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_100[count_block_viewport_100]=line8;
+ count_block_viewport_100=count_block_viewport_100+1;
+ }
+ break;
+
+ case 102:
+
+ if (count_block_viewport_102>3)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_102[count_block_viewport_102]=line8;
+ count_block_viewport_102=count_block_viewport_102+1;
+ }
+ break;
+
+ case 110:
+
+ if(sw_block_line[110]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_110=line8.toDouble();
+ sw_block_line[110]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 111:
+
+ if(sw_block_line[111]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_111=line8.toDouble();
+ sw_block_line[111]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 112:
+
+ if(sw_block_line[112]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_112=line8.toDouble();
+ sw_block_line[112]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 120:
+
+ if(sw_block_line[120]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_120=line8.toDouble();
+ sw_block_line[120]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 121:
+
+ if(sw_block_line[121]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_121=line8.toDouble();
+ sw_block_line[121]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 122:
+
+ if(sw_block_line[122]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_122=line8.toDouble();
+ sw_block_line[122]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 130:
+
+ if(sw_block_line[130]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_130=line8.toDouble();
+ sw_block_line[130]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 131:
+
+ if(sw_block_line[131]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_131=line8.toDouble();
+ sw_block_line[131]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 132:
+
+ if(sw_block_line[132]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_132=line8.toDouble();
+ sw_block_line[132]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 146:
+
+ if(sw_block_line[146]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_146=line8.toDouble();
+ sw_block_line[146]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 280:
+
+ if(sw_block_line[280]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_280=line8.toInt();
+ sw_block_line[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 281:
+
+ if(sw_block_line[281]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_281=line8.toInt();
+ sw_block_line[281]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 282:
+
+ if(sw_block_line[282]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_282=line8.toInt();
+ sw_block_line[282]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 283:
+
+ if(sw_block_line[283]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_283=line8.toInt();
+ sw_block_line[283]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 310:
+
+ if(sw_block_line[310]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_310=line8;
+ sw_block_line[310]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 330:
+
+ if (count_block_viewport_330>1)
+ {
+ Log_1.append(found_block_line());
+ }
+ else
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_330[count_block_viewport_330]=line8;
+ count_block_viewport_330=count_block_viewport_330+1;
+ }
+ break;
+
+ case 340:
+
+ if(sw_block_line[340]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_340=line8;
+ sw_block_line[340]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 360:
+
+ if(sw_block_line[360]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_360=line8;
+ sw_block_line[360]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_block_line[370]==0)
+ {
+ DXF_input_block_viewport[block_count1][block_viewport_count].DXF_block_viewport_code_370=line8.toInt();
+ sw_block_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_viewport());
+
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_block_viewport());
+
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code WIPEOUT n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_wipeout_count));
+ Log_1.append("\n");
+
+ block_wipeout_count=block_wipeout_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_wipeout());
+
+ }
+
+
+ }
+ }
+
+ 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<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:
+ block_st5=1;
+ for_count1=for_count1-2;
+ block_count5=block_count5+1;
+
+ Log_1.append("End reading BLOCK code XLINE n° : ");
+ Log_1.append(QString::number(block_count1));
+ Log_1.append ("item n°: ");
+ Log_1.append(QString::number(block_xline_count));
+ Log_1.append("\n");
+
+ block_xline_count=block_xline_count+1;
+
+
+ break;
+
+ default:
+ Log_1.append(found_block_xline());
+
+ }
+
+
+ }
+ }
+
+ 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(found_block_section2());
+
+ }
+ break;
+
+ case 2:
+
+ if(sw_block[2]==0)
+ {
+ DXF_input_block[block_count1].DXF_block_code_2=line4.remove(QRegExp("[$*+-/\_=]"));
+ sw_block[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ break;
+
+ case 100:
+
+ if (count_block_100>1)
+ {
+ Log_1.append(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ 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(found_block_section2());
+ }
+ break;
+
+
+ default:
+ Log_1.append(found_block_section2());
+ }
+
+
+
+
+ }
+ }
+
+
+ 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;
+
+ // Log_1.append(found_entities_());
+
+
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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(" ARC n°: ");
+ Log_1.append(QString::number(entities_ARC_count2));
+ Log_1.append("\n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_arc[sw_cleaner]=0;
+
+ }
+
+ entities_ARC_count2_100=0;
+ entities_ARC_count2_102=0;
+ entities_ARC_count2_330=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(" ARC n°: ");
+ Log_1.append(QString::number(entities_ARC_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ 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(found_entities_arc());
+
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_entities_arc[6]==0)
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_6=line6;
+ sw_entities_arc[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_arc());
+
+ }
+
+ 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(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_entities_arc[48]==0)
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_48=line6.toDouble();
+ sw_entities_arc[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ 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(found_entities_arc());
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_entities_arc[62]==0)
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_62=line6.toInt();
+ sw_entities_arc[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_arc());
+ }
+
+ break;
+
+ case 100:
+
+ if (entities_ARC_count2_100>2)
+ {
+ Log_1.append(found_entities_arc());
+ }
+ 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 102:
+
+ if (entities_ARC_count2_102>2)
+ {
+ Log_1.append(found_entities_arc());
+ }
+ else
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_102[entities_ARC_count2_102]=line6.toInt();
+ entities_ARC_count2_102=entities_ARC_count2_102+1;
+ }
+
+ break;
+
+ case 330:
+
+ if (entities_ARC_count2_330>2)
+ {
+ Log_1.append(found_entities_arc());
+ }
+ else
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_330[entities_ARC_count2_330]=line6.toInt();
+ entities_ARC_count2_330=entities_ARC_count2_330+1;
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_entities_arc[370]==0)
+ {
+ DXF_input_entities_arc[entities_ARC_count2].DXF_entities_arc_code_370=line6.toInt();
+ sw_entities_arc[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_arc());
+ }
+
+ break;
+
+
+
+ default:
+ Log_1.append(found_entities_arc());
+ }
+ }
+ }
+
+ 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(" ATTDEFn°: ");
+ Log_1.append(QString::number(entities_ATTDEF_count2));
+ Log_1.append("\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];
+ DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_50=0;
+
+
+
+ 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(" ATTDEF n°: ");
+ Log_1.append(QString::number(entities_ATTDEF_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_entities_attdef[50]==0)
+ {
+ DXF_input_entities_attdef[entities_ATTDEF_count2].DXF_entities_attdef_code_50=line6.toDouble();
+ sw_entities_attdef[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attdef());
+ }
+
+ 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(found_entities_attdef());
+ }
+
+ break;
+
+ case 100:
+
+ if (entities_ATTDEF_count2_100>2)
+ {
+ Log_1.append(found_entities_attdef());
+ }
+ 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(found_entities_attdef());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_attdef());
+ }
+ }
+ }
+
+ 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(" ATTRIB n°: ");
+ Log_1.append(QString::number(entities_ATTRIB_count2));
+ Log_1.append("\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];
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_40=1;
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_50=0;
+
+
+ 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(" ATTRIB n°: ");
+ Log_1.append(QString::number(entities_ATTRIB_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 1: // attribute value
+
+ if(sw_entities_attrib[1]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_1=line6;
+ sw_entities_attrib[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 2: //attribute tag string
+
+ if(sw_entities_attrib[2]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_2=line6;
+ sw_entities_attrib[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 5: // handle
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ case 7: // Layername
+
+ if(sw_entities_attrib[7]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_7=line6;
+ sw_entities_attrib[7]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 8: // Layername
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ case 10: // X start
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ case 11: // X alignment point
+
+ if(sw_entities_attrib[11]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_11=line6.toDouble();
+ sw_entities_attrib[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 20: //Y start
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ case 21: //Y alignment point
+
+ if(sw_entities_attrib[21]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_21=line6.toDouble();
+ sw_entities_attrib[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 30: // Z start
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ case 31: // Z alignment point
+
+
+ if(sw_entities_attrib[31]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_31=line6.toDouble();
+ sw_entities_attrib[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 40: // Text height
+
+ //DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_40=1;
+
+ if(sw_entities_attrib[40]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_40=line6.toDouble();
+ sw_entities_attrib[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 50: // rotation
+
+ //DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_50=0;
+
+ if(sw_entities_attrib[50]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_50=line6.toDouble();
+ sw_entities_attrib[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 62: //
+
+
+
+ if(sw_entities_attrib[62]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_62=line6.toInt();
+ sw_entities_attrib[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 70: //
+
+
+
+ if(sw_entities_attrib[70]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_70=line6.toInt();
+ sw_entities_attrib[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 72: //
+
+
+
+ if(sw_entities_attrib[72]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_72=line6.toInt();
+ sw_entities_attrib[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 74: //
+
+
+
+ if(sw_entities_attrib[74]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_74=line6.toInt();
+ sw_entities_attrib[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 100:
+
+ if (entities_ATTRIB_count2_100>2)
+ {
+ Log_1.append(found_entities_attr());
+ }
+ 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 280: //
+
+
+
+ if(sw_entities_attrib[280]==0)
+ {
+ DXF_input_entities_attrib[entities_ATTRIB_count2].DXF_entities_attrib_code_280=line6.toInt();
+ sw_entities_attrib[280]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_attr());
+ }
+
+ break;
+
+ case 330: // soft pointer
+
+ 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(found_entities_attr());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_attr());
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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(" CIRCLE n°: ");
+ Log_1.append(QString::number(entities_CIRCLE_count2));
+ Log_1.append("\n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_circle[sw_cleaner]=0;
+
+ }
+
+ entities_CIRCLE_count2_100=0;
+ entities_CIRCLE_count2_102=0;
+ entities_CIRCLE_count2_330=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(" CIRCLE n°: ");
+ Log_1.append(QString::number(entities_CIRCLE_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 2:
+
+ if(sw_entities_circle[2]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_2=line6;
+ sw_entities_circle[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ 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(found_entities_circle());
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_entities_circle[6]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_6=line6;
+ sw_entities_circle[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ 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(found_entities_circle());
+ }
+
+ 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(found_entities_circle());
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_entities_circle[11]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_11=line6.toDouble();
+ sw_entities_circle[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ 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(found_entities_circle());
+ }
+
+ break;
+
+ case 21:
+
+ if(sw_entities_circle[21]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_21=line6.toDouble();
+ sw_entities_circle[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ 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(found_entities_circle());
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_entities_circle[31]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_31=line6.toDouble();
+ sw_entities_circle[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_entities_circle[40]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_40=line6.toDouble();
+ sw_entities_circle[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+ case 48:
+
+ if(sw_entities_circle[48]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_48=line6.toDouble();
+ sw_entities_circle[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_entities_circle[62]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_62=line6.toInt();
+ sw_entities_circle[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_entities_circle[72]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_72=line6.toInt();
+ sw_entities_circle[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+
+ case 100:
+
+ if (entities_CIRCLE_count2_100>2)
+ {
+ Log_1.append(found_entities_circle());
+ }
+ 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 102:
+
+ if (entities_CIRCLE_count2_102>2)
+ {
+ Log_1.append(found_entities_circle());
+ }
+ else
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_102[entities_CIRCLE_count2_102]=line6.toInt();
+ entities_CIRCLE_count2_102=entities_CIRCLE_count2_102+1;
+ }
+
+ break;
+
+ case 330:
+
+ if (entities_CIRCLE_count2_330>2)
+ {
+ Log_1.append(found_entities_circle());
+ }
+ else
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_330[entities_CIRCLE_count2_330]=line6.toInt();
+ entities_CIRCLE_count2_330=entities_CIRCLE_count2_330+1;
+ }
+
+ break;
+
+ case 370:
+
+ if(sw_entities_circle[370]==0)
+ {
+ DXF_input_entities_circle[entities_CIRCLE_count2].DXF_entities_circle_code_370=line6.toInt();
+ sw_entities_circle[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_circle());
+ }
+
+ break;
+
+
+
+
+
+ default:
+ Log_1.append(found_entities_circle());
+
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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(" ELLIPSE n°: ");
+ Log_1.append(QString::number(entities_ELLIPSE_count2));
+ Log_1.append("\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(" ELLIPSE n°: ");
+ Log_1.append(QString::number(entities_ELLIPSE_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_entities_ellipse[62]==0)
+ {
+ DXF_input_entities_ellipse[entities_ELLIPSE_count2].DXF_entities_ellipse_code_62=line6.toInt();
+ sw_entities_ellipse[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_ellipse());
+ }
+
+ break;
+
+
+ case 100:
+
+ if (entities_ELLIPSE_count2_100>2)
+ {
+ Log_1.append(found_entities_ellipse());
+ }
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ 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(found_entities_ellipse());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_ellipse());
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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()==6)
+ {
+ entities_INSERT_count2=entities_INSERT_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(" INSERT n°: ");
+ Log_1.append(QString::number(entities_INSERT_count2));
+ Log_1.append("\n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_insert[sw_cleaner]=0;
+
+ }
+
+
+ entities_INSERT_count2_100=0;
+ entities_INSERT_count2_102=0;
+ entities_INSERT_count2_330=0;
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_41=1;
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_42=1;
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_43=1;
+
+ 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(" INSERT n°: ");
+ Log_1.append(QString::number(entities_INSERT_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 2:
+
+ if(sw_entities_insert[2]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_2=line6.remove(QRegExp("[$*+-/\_=]"));
+ sw_entities_insert[2]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_insert());
+ }
+
+ 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(found_entities_insert());
+ }
+
+ 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(found_entities_insert());
+ }
+
+ 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(found_entities_insert());
+ }
+
+ 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(found_entities_insert());
+ }
+
+ 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(found_entities_insert());
+ }
+
+ break;
+
+ case 41:
+
+ if(sw_entities_insert[41]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_41=line6.toDouble();
+ sw_entities_insert[41]=1;
+ }
+ else
+ {
+ //DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_41=1;
+ Log_1.append(found_entities_insert());
+ }
+
+ break;
+
+ case 42:
+
+ if(sw_entities_insert[42]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_42=line6.toDouble();
+ sw_entities_insert[42]=1;
+ }
+ else
+ {
+ //DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_42=1;
+ Log_1.append(found_entities_insert());
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_entities_insert[43]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_43=line6.toDouble();
+ sw_entities_insert[43]=1;
+ }
+ else
+ {
+ //DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_43=1;
+ Log_1.append(found_entities_insert());
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_entities_insert[50]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_50=line6.toDouble();
+ sw_entities_insert[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_insert());
+ }
+
+ break;
+
+ case 66:
+
+ if(sw_entities_insert[66]==0)
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_66=line6.toInt();
+ /* Variable attributes-follow flag (optional;
+ default = 0);
+ if the value of attributes-follow flag is 1,
+ a series of attribute entities is expected to follow the insert,
+ terminated by a seqend entity */
+ sw_entities_insert[66]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_insert());
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_INSERT_count2_100>2)
+ {
+ Log_1.append(found_entities_insert());
+ }
+ 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 102:
+
+ if (entities_INSERT_count2_102>2)
+ {
+ Log_1.append(found_entities_insert());
+ }
+ else
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_102[entities_INSERT_count2_102]=line6.toInt();
+ entities_INSERT_count2_102=entities_INSERT_count2_102+1;
+ }
+
+ break;
+
+ case 330:
+
+ if (entities_INSERT_count2_330>2)
+ {
+ Log_1.append(found_entities_insert());
+ }
+ else
+ {
+ DXF_input_entities_insert[entities_INSERT_count2].DXF_entities_insert_code_330[entities_INSERT_count2_330]=line6.toInt();
+ entities_INSERT_count2_330=entities_INSERT_count2_330+1;
+ }
+
+ break;
+
+
+ default:
+ Log_1.append(found_entities_insert());
+
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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(" LINE n°: ");
+ Log_1.append(QString::number(entities_LINE_count2));
+ Log_1.append("\n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_line[sw_cleaner]=0;
+
+ }
+
+ entities_LINE_count2_100=0;
+ entities_LINE_count2_102=0;
+ entities_LINE_count2_330=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(" LINE n°: ");
+ Log_1.append(QString::number(entities_LINE_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5: // Handle
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 6: //Line type
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 8: // Layer name
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 10: // X start
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 11: // X end
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 20: //Y start
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 21: // Y end
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 30: // Z start
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+ case 31: // Z end
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+
+ case 48: // Z end
+
+ if(sw_entities_line[48]==0)
+ {
+ DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_48=line6.toDouble();
+ sw_entities_line[48]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_line());
+ }
+
+ break;
+
+ case 62: // Color nr
+
+ 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(found_entities_line());
+ }
+
+ break;
+
+
+
+ case 100: //subclass marker
+
+ if (entities_LINE_count2_100>4)
+ {
+ Log_1.append(found_entities_line());
+ }
+ 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 102: //subclass marker
+
+ if (entities_LINE_count2_102>2)
+ {
+ Log_1.append(found_entities_line());
+ }
+ else
+ {
+ DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_102[entities_LINE_count2_102]=line6.toInt();
+ entities_LINE_count2_102=entities_LINE_count2_102+1;
+ }
+
+ break;
+
+ case 330: // soft pointer
+
+ if (entities_LINE_count2_330>2)
+ {
+ Log_1.append(found_entities_line());
+ }
+ else
+ {
+ DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_330[entities_LINE_count2_330]=line6.toInt();
+ entities_LINE_count2_330=entities_LINE_count2_330+1;
+ }
+
+ break;
+
+ case 370: // line weight
+
+ if(sw_entities_line[370]==0)
+ {
+ DXF_input_entities_line[entities_LINE_count2].DXF_entities_line_code_370=line6.toInt();
+ sw_entities_line[370]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_line());
+ }
+
+ break;
+
+
+
+ default:
+ Log_1.append(found_entities_line());
+
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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(found_entities_lwpolyline());
+ }
+
+ 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(found_entities_lwpolyline());
+ }
+
+ break;
+
+ case 10:
+
+ if (entities_LWPOLYLINE_count2_10>49)
+ {
+ Log_1.append(found_entities_lwpolyline());
+ }
+ 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(found_entities_lwpolyline());
+ }
+ 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(found_entities_lwpolyline());
+ }
+
+ 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(found_entities_lwpolyline());
+ }
+
+ break;
+
+ case 70: // 1 = closed 128 = plinegen
+
+ 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(found_entities_lwpolyline());
+ }
+
+ break;
+
+ case 90: // number of vertices
+
+ 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(found_entities_lwpolyline());
+ }
+
+ break;
+
+ case 100:
+
+ if (entities_LWPOLYLINE_count2_100>2)
+ {
+ Log_1.append(found_entities_lwpolyline());
+ }
+ 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(found_entities_lwpolyline());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_lwpolyline());
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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;
+ Master_handle_id=line6;
+ sw_entities_polyline[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_polyline());
+ }
+
+ 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(found_entities_polyline());
+ }
+
+ 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(found_entities_polyline());
+ }
+
+ 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(found_entities_polyline());
+ }
+
+ 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(found_entities_polyline());
+ }
+
+ break;
+
+ case 66:
+
+ if(sw_entities_polyline[66]==0)
+ {
+ DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_66=line6.toInt();
+ sw_entities_polyline[66]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_polyline());
+
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_entities_polyline[70]==0)
+ {
+ DXF_input_entities_polyline[entities_POLYLINE_count2].DXF_entities_polyline_code_70=line6.toInt();
+ sw_entities_polyline[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_polyline());
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_POLYLINE_count2_100>2)
+ {
+ Log_1.append(found_entities_polyline());
+ }
+ 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(found_entities_polyline());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_polyline());
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+ DXF_input_entities_seqend[entities_SEQEND_count2].Master_handle_id=Master_handle_id;
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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_10=0;
+ entities_SPLINE_count2_20=0;
+ entities_SPLINE_count2_30=0;
+ entities_SPLINE_count2_40=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");
+
+ Master_handle_id="";
+
+ 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(found_entities_spline());
+ }
+
+ 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(found_entities_spline());
+ }
+
+ break;
+
+
+
+ case 10:
+
+ if (entities_SPLINE_count2_10>49)
+ {
+ Log_1.append(found_entities_spline());
+ }
+ else
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_10[entities_SPLINE_count2_10]=line6.toDouble();
+ entities_SPLINE_count2_10=entities_SPLINE_count2_10+1;
+ }
+
+ break;
+
+ case 20:
+
+ if (entities_SPLINE_count2_20>49)
+ {
+ Log_1.append(found_entities_spline());
+ }
+ else
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_20[entities_SPLINE_count2_20]=line6.toDouble();
+ entities_SPLINE_count2_20=entities_SPLINE_count2_20+1;
+ }
+
+ break;
+
+ case 30:
+
+ if (entities_SPLINE_count2_30>49)
+ {
+ Log_1.append(found_entities_spline());
+ }
+ else
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_30[entities_SPLINE_count2_30]=line6.toDouble();
+ entities_SPLINE_count2_30=entities_SPLINE_count2_30+1;
+ }
+
+ break;
+
+
+ case 40:
+
+ if (entities_SPLINE_count2_40>49)
+ {
+ Log_1.append(found_entities_spline());
+
+ }
+ else
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_30[entities_SPLINE_count2_40]=line6.toDouble();
+ entities_SPLINE_count2_40=entities_SPLINE_count2_40+1;
+ }
+
+ break;
+
+ case 42:
+
+ if(sw_entities_spline[42]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_42=line6.toDouble();
+ sw_entities_spline[42]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 43:
+
+ if(sw_entities_spline[43]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_43=line6.toDouble();
+ sw_entities_spline[43]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_entities_spline[62]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_62=line6.toInt();
+ sw_entities_spline[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 70:
+
+ if(sw_entities_spline[70]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_70=line6.toInt();
+ sw_entities_spline[70]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 71:
+
+ if(sw_entities_spline[71]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_71=line6.toInt();
+ sw_entities_spline[71]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_entities_spline[72]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_72=line6.toInt();
+ sw_entities_spline[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 73:
+
+ if(sw_entities_spline[73]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_73=line6.toInt();
+ sw_entities_spline[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 74:
+
+ if(sw_entities_spline[74]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_74=line6.toInt();
+ sw_entities_spline[74]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 100:
+
+ if (entities_SPLINE_count2_100>2)
+ {
+ Log_1.append(found_entities_spline());
+ }
+ 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 210:
+
+ if(sw_entities_spline[210]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_210=line6.toDouble();
+ sw_entities_spline[210]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 220:
+
+ if(sw_entities_spline[220]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_220=line6.toDouble();
+ sw_entities_spline[220]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ break;
+
+ case 230:
+
+ if(sw_entities_spline[230]==0)
+ {
+ DXF_input_entities_spline[entities_SPLINE_count2].DXF_entities_spline_code_230=line6.toDouble();
+ sw_entities_spline[230]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_spline());
+ }
+
+ 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(found_entities_spline());
+ }
+
+ break;
+
+ default:
+ Log_1.append(found_entities_spline());
+
+ }
+ }
+
+ }
+
+ 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");
+
+ Master_handle_id="";
+
+ 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");
+
+ Master_handle_id="";
+
+ 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.append("Line :" );
+ Log_1.append(QString::number( for_count1));
+ Log_1.append(" ");
+ 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=="TABLE" and line4.length()==5)
+ {
+ entities_TABLE_count2=entities_TABLE_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" TABLE \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_table[sw_cleaner]=0;
+
+ }
+
+ entities_TABLE_count2_100=0;
+
+ while (entities_st2==0 and entities_TABLE_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_TABLE_count2));
+ Log_1.append(" TABLE \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_table[5]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_5=line6;
+ sw_entities_table[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_table[8]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_8=line6;
+ sw_entities_table[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_table[10]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_10=line6.toDouble();
+ sw_entities_table[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_table[20]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_20=line6.toDouble();
+ sw_entities_table[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_table[30]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_30=line6.toDouble();
+ sw_entities_table[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_TABLE_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_100[entities_TABLE_count2_100]=line6.toInt();
+ entities_TABLE_count2_100=entities_TABLE_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_table[330]==0)
+ {
+ DXF_input_entities_table[entities_TABLE_count2].DXF_entities_table_code_330=line6;
+ sw_entities_table[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TABLE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="TEXT" and line4.length()==4)
+ {
+ entities_TEXT_count2=entities_TEXT_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(" TEXT n°: ");
+ Log_1.append(QString::number(entities_TEXT_count2));
+ Log_1.append("\n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_text[sw_cleaner]=0;
+
+ }
+
+ entities_TEXT_count2_100=0;
+ entities_TEXT_count2_102=0;
+ entities_TEXT_count2_330=0;
+
+
+ while (entities_st2==0 and entities_TEXT_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];
+
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_50=0;
+
+
+ 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(" TEXT n°: ");
+ Log_1.append(QString::number(entities_TEXT_count2));
+ Log_1.append("\n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 1:
+
+ if(sw_entities_text[1]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_1=line6;
+ sw_entities_text[1]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 5:
+
+ if(sw_entities_text[5]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_5=line6;
+ sw_entities_text[5]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 6:
+
+ if(sw_entities_text[6]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_6=line6;
+ sw_entities_text[6]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 7:
+
+ if(sw_entities_text[7]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_7=line6;
+ sw_entities_text[7]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_text[8]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_8=line6;
+ sw_entities_text[8]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_text[10]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_10=line6.toDouble();
+ sw_entities_text[10]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 11:
+
+ if(sw_entities_text[11]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_11=line6.toDouble();
+ sw_entities_text[11]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_text[20]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_20=line6.toDouble();
+ sw_entities_text[20]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+ case 21:
+
+ if(sw_entities_text[21]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_21=line6.toDouble();
+ sw_entities_text[21]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_text[30]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_30=line6.toDouble();
+ sw_entities_text[30]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 31:
+
+ if(sw_entities_text[31]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_31=line6.toDouble();
+ sw_entities_text[31]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 40:
+
+ if(sw_entities_text[40]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_40=line6.toDouble();
+ sw_entities_text[40]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 50:
+
+ if(sw_entities_text[50]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_50=line6.toDouble();
+ sw_entities_text[50]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 62:
+
+ if(sw_entities_text[62]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_62=line6.toInt();
+ sw_entities_text[62]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 72:
+
+ if(sw_entities_text[72]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_72=line6.toInt();
+ sw_entities_text[72]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+ case 73:
+
+ if(sw_entities_text[73]==0)
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_73=line6.toInt();
+ sw_entities_text[73]=1;
+ }
+ else
+ {
+ Log_1.append(found_entities_text());
+ }
+
+ break;
+
+
+ case 100:
+
+ if (entities_TEXT_count2_100>2)
+ {
+ Log_1.append(found_entities_text());
+ }
+ else
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_100[entities_TEXT_count2_100]=line6.toInt();
+ entities_TEXT_count2_100=entities_TEXT_count2_100+1;
+ }
+
+ break;
+
+ case 102:
+
+ if (entities_TEXT_count2_102>4)
+ {
+ Log_1.append(found_entities_text());
+ }
+ else
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_102[entities_TEXT_count2_102]=line6.toInt();
+ entities_TEXT_count2_102=entities_TEXT_count2_102+1;
+ }
+
+ break;
+
+ case 330:
+
+ if (entities_TEXT_count2_330>4)
+ {
+ Log_1.append(found_entities_text());
+ }
+ else
+ {
+ DXF_input_entities_text[entities_TEXT_count2].DXF_entities_text_code_330[entities_TEXT_count2_330]=line6.toInt();
+ entities_TEXT_count2_330=entities_TEXT_count2_330+1;
+ }
+
+ break;
+
+
+
+ default:
+ Log_1.append(found_entities_text());
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="TOLERANCE" and line4.length()==9)
+ {
+ entities_TOLERANCE_count2=entities_TOLERANCE_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" TOLERANCE \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_tolerance[sw_cleaner]=0;
+
+ }
+
+ entities_TOLERANCE_count2_100=0;
+
+ while (entities_st2==0 and entities_TOLERANCE_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_TOLERANCE_count2));
+ Log_1.append(" TOLERANCE \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_tolerance[5]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_5=line6;
+ sw_entities_tolerance[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_tolerance[8]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_8=line6;
+ sw_entities_tolerance[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_tolerance[10]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_10=line6.toDouble();
+ sw_entities_tolerance[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_tolerance[20]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_20=line6.toDouble();
+ sw_entities_tolerance[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_tolerance[30]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_30=line6.toDouble();
+ sw_entities_tolerance[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_TOLERANCE_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_100[entities_TOLERANCE_count2_100]=line6.toInt();
+ entities_TOLERANCE_count2_100=entities_TOLERANCE_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_tolerance[330]==0)
+ {
+ DXF_input_entities_tolerance[entities_TOLERANCE_count2].DXF_entities_tolerance_code_330=line6;
+ sw_entities_tolerance[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TOLERANCE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="TRACE" and line4.length()==5)
+ {
+ entities_TRACE_count2=entities_TRACE_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" TRACE \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_trace[sw_cleaner]=0;
+
+ }
+
+ entities_TRACE_count2_100=0;
+
+ while (entities_st2==0 and entities_TRACE_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_TRACE_count2));
+ Log_1.append(" TRACE \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_trace[5]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_5=line6;
+ sw_entities_trace[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_trace[8]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_8=line6;
+ sw_entities_trace[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_trace[10]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_10=line6.toDouble();
+ sw_entities_trace[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_trace[20]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_20=line6.toDouble();
+ sw_entities_trace[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_trace[30]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_30=line6.toDouble();
+ sw_entities_trace[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_TRACE_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_100[entities_TRACE_count2_100]=line6.toInt();
+ entities_TRACE_count2_100=entities_TRACE_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_trace[330]==0)
+ {
+ DXF_input_entities_trace[entities_TRACE_count2].DXF_entities_trace_code_330=line6;
+ sw_entities_trace[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_TRACE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="UNDERLAY" and line4.length()==8)
+ {
+ entities_UNDERLAY_count2=entities_UNDERLAY_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" UNDERLAY \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_underlay[sw_cleaner]=0;
+
+ }
+
+ entities_UNDERLAY_count2_100=0;
+
+ while (entities_st2==0 and entities_UNDERLAY_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_UNDERLAY_count2));
+ Log_1.append(" UNDERLAY \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_underlay[5]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_5=line6;
+ sw_entities_underlay[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_underlay[8]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_8=line6;
+ sw_entities_underlay[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_underlay[10]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_10=line6.toDouble();
+ sw_entities_underlay[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_underlay[20]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_20=line6.toDouble();
+ sw_entities_underlay[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_underlay[30]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_30=line6.toDouble();
+ sw_entities_underlay[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_UNDERLAY_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_100[entities_UNDERLAY_count2_100]=line6.toInt();
+ entities_UNDERLAY_count2_100=entities_UNDERLAY_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_underlay[330]==0)
+ {
+ DXF_input_entities_underlay[entities_UNDERLAY_count2].DXF_entities_underlay_code_330=line6;
+ sw_entities_underlay[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_UNDERLAY_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="VERTEX" and line4.length()==6)
+ {
+ entities_VERTEX_count2=entities_VERTEX_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" VERTEX \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_vertex[sw_cleaner]=0;
+
+ }
+
+ entities_VERTEX_count2_100=0;
+
+ while (entities_st2==0 and entities_VERTEX_count2<4999)
+ {
+ 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_VERTEX_count2));
+ Log_1.append(" VERTEX \n");
+
+ DXF_input_entities_vertex[entities_VERTEX_count2].Master_handle_id=Master_handle_id;
+
+ break;
+
+ case 5:
+
+ if(sw_entities_vertex[5]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_5=line6;
+ sw_entities_vertex[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_vertex[8]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_8=line6;
+ sw_entities_vertex[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_vertex[10]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_10=line6.toDouble();
+ sw_entities_vertex[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_vertex[20]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_20=line6.toDouble();
+ sw_entities_vertex[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_vertex[30]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_30=line6.toDouble();
+ sw_entities_vertex[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_VERTEX_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_100[entities_VERTEX_count2_100]=line6.toInt();
+ entities_VERTEX_count2_100=entities_VERTEX_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_vertex[330]==0)
+ {
+ DXF_input_entities_vertex[entities_VERTEX_count2].DXF_entities_vertex_code_330=line6;
+ sw_entities_vertex[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VERTEX_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="VIEWPORT" and line4.length()==8)
+ {
+ entities_VIEWPORT_count2=entities_VIEWPORT_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" VIEWPORT \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_viewport[sw_cleaner]=0;
+
+ }
+
+ entities_VIEWPORT_count2_100=0;
+
+ while (entities_st2==0 and entities_VIEWPORT_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_VIEWPORT_count2));
+ Log_1.append(" VIEWPORT \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_viewport[5]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_5=line6;
+ sw_entities_viewport[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_viewport[8]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_8=line6;
+ sw_entities_viewport[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_viewport[10]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_10=line6.toDouble();
+ sw_entities_viewport[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_viewport[20]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_20=line6.toDouble();
+ sw_entities_viewport[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_viewport[30]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_30=line6.toDouble();
+ sw_entities_viewport[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_VIEWPORT_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_100[entities_VIEWPORT_count2_100]=line6.toInt();
+ entities_VIEWPORT_count2_100=entities_VIEWPORT_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_viewport[330]==0)
+ {
+ DXF_input_entities_viewport[entities_VIEWPORT_count2].DXF_entities_viewport_code_330=line6;
+ sw_entities_viewport[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_VIEWPORT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="WIPEOUT" and line4.length()==7)
+ {
+ entities_WIPEOUT_count2=entities_WIPEOUT_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" WIPEOUT \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_wipeout[sw_cleaner]=0;
+
+ }
+
+ entities_WIPEOUT_count2_100=0;
+
+ while (entities_st2==0 and entities_WIPEOUT_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_WIPEOUT_count2));
+ Log_1.append(" WIPEOUT \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_wipeout[5]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_5=line6;
+ sw_entities_wipeout[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_wipeout[8]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_8=line6;
+ sw_entities_wipeout[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_wipeout[10]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_10=line6.toDouble();
+ sw_entities_wipeout[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_wipeout[20]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_20=line6.toDouble();
+ sw_entities_wipeout[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_wipeout[30]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_30=line6.toDouble();
+ sw_entities_wipeout[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_WIPEOUT_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_100[entities_WIPEOUT_count2_100]=line6.toInt();
+ entities_WIPEOUT_count2_100=entities_WIPEOUT_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_wipeout[330]==0)
+ {
+ DXF_input_entities_wipeout[entities_WIPEOUT_count2].DXF_entities_wipeout_code_330=line6;
+ sw_entities_wipeout[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_WIPEOUT_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+ if (line3==0 and line4=="XLINE" and line4.length()==6)
+ {
+ entities_XLINE_count2=entities_XLINE_count2+1;
+
+ Log_1.append("Start reading entities ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" XLINE \n");
+
+
+
+ for (sw_cleaner=0; sw_cleaner<1072;++sw_cleaner)
+ {
+ sw_entities_xline[sw_cleaner]=0;
+
+ }
+
+ entities_XLINE_count2_100=0;
+
+ while (entities_st2==0 and entities_XLINE_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_XLINE_count2));
+ Log_1.append(" XLINE \n");
+
+ Master_handle_id="";
+
+ break;
+
+ case 5:
+
+ if(sw_entities_xline[5]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_5=line6;
+ sw_entities_xline[5]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 8:
+
+ if(sw_entities_xline[8]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_8=line6;
+ sw_entities_xline[8]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 10:
+
+ if(sw_entities_xline[10]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_10=line6.toDouble();
+ sw_entities_xline[10]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 20:
+
+ if(sw_entities_xline[20]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_20=line6.toDouble();
+ sw_entities_xline[20]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ case 30:
+
+ if(sw_entities_xline[30]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_30=line6.toDouble();
+ sw_entities_xline[30]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+
+
+ case 100:
+
+ if (entities_XLINE_count2_100>2)
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ else
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_100[entities_XLINE_count2_100]=line6.toInt();
+ entities_XLINE_count2_100=entities_XLINE_count2_100+1;
+ }
+
+ break;
+
+ case 330:
+
+ if(sw_entities_xline[330]==0)
+ {
+ DXF_input_entities_xline[entities_XLINE_count2].DXF_entities_xline_code_330=line6;
+ sw_entities_xline[330]=1;
+ }
+ else
+ {
+ Log_1.append("Find in ENTITIES code ");
+ Log_1.append(QString::number(entities_XLINE_count2));
+ Log_1.append(" 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+
+ break;
+
+ default:
+ Log_1.append("Find in entities 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( line5));
+ Log_1.append(" : ");
+ Log_1.append(line6);
+ Log_1.append(" ");
+ Log_1.append("\n");
+ }
+ }
+
+ }
+
+
+ if (line3==0 and line4=="ENDSEC" and line4.length()==6)
+ {
+ Log_1.append("End reading section ENTITIES \n");
+ entities_st1=1;
+ for_count1=for_count1-2;
+ section_count=section_count+1;
+ }
+ else
+ {
+
+ }
+
+
+
+
+
+
+ }
+
+ DXF_main_base[0].dxf_entites_item_count=entities_count1;
+
+ DXF_main_base[0].DXF_entities_3dface_count=entities_3DFACE_count2;
+ DXF_main_base[0].DXF_entities_3dsolid_count=entities_3DSOLID_count2;
+ DXF_main_base[0].DXF_entities_acad_proxy_entity_count=entities_ACAD_PROXY_ENTITY_count2;
+ DXF_main_base[0].DXF_entities_arc_count=entities_ARC_count2;
+ DXF_main_base[0].DXF_entities_attdef_count=entities_ATTDEF_count2;
+ DXF_main_base[0].DXF_entities_attrib_count=entities_ATTRIB_count2;
+ DXF_main_base[0].DXF_entities_body_count=entities_BODY_count2;
+ DXF_main_base[0].DXF_entities_circle_count=entities_CIRCLE_count2;
+ DXF_main_base[0].DXF_entities_dimension_count=entities_DIMENSION_count2;
+ DXF_main_base[0].DXF_entities_ellipse_count=entities_ELLIPSE_count2;
+ DXF_main_base[0].DXF_entities_hatch_count=entities_HATCH_count2;
+ DXF_main_base[0].DXF_entities_helix_count=entities_HELIX_count2;
+ DXF_main_base[0].DXF_entities_image_count=entities_IMAGE_count2;
+ DXF_main_base[0].DXF_entities_insert_count=entities_INSERT_count2;
+ DXF_main_base[0].DXF_entities_leader_count=entities_LEADER_count2;
+ DXF_main_base[0].DXF_entities_light_count=entities_LIGHT_count2;
+ DXF_main_base[0].DXF_entities_line_count=entities_LINE_count2;
+ DXF_main_base[0].DXF_entities_lwpolyline_count=entities_LWPOLYLINE_count2;
+ DXF_main_base[0].DXF_entities_mesh_count=entities_MESH_count2;
+ DXF_main_base[0].DXF_entities_mline_count=entities_MLINE_count2;
+ DXF_main_base[0].DXF_entities_mleaderstyle_count=entities_MLEADERSTYLE_count2;
+ DXF_main_base[0].DXF_entities_mleader_count=entities_MLEADER_count2;
+ DXF_main_base[0].DXF_entities_mtext_count=entities_MTEXT_count2;
+ DXF_main_base[0].DXF_entities_oleframe_count=entities_OLEFRAME_count2;
+ DXF_main_base[0].DXF_entities_ole2frame_count=entities_OLE2FRAME_count2;
+ DXF_main_base[0].DXF_entities_point_count=entities_POINT_count2;
+ DXF_main_base[0].DXF_entities_polyline_count=entities_POLYLINE_count2;
+ DXF_main_base[0].DXF_entities_ray_count=entities_RAY_count2;
+ DXF_main_base[0].DXF_entities_region_count=entities_REGION_count2;
+ DXF_main_base[0].DXF_entities_section_count=entities_SECTION_count2;
+ DXF_main_base[0].DXF_entities_seqend_count=entities_SEQEND_count2;
+ DXF_main_base[0].DXF_entities_shape_count=entities_SHAPE_count2;
+ DXF_main_base[0].DXF_entities_solid_count=entities_SOLID_count2;
+ DXF_main_base[0].DXF_entities_spline_count=entities_SPLINE_count2;
+ DXF_main_base[0].DXF_entities_sun_count=entities_SUN_count2;
+ DXF_main_base[0].DXF_entities_surface_count=entities_SURFACE_count2;
+ DXF_main_base[0].DXF_entities_table_count=entities_TABLE_count2;
+ DXF_main_base[0].DXF_entities_text_count=entities_TEXT_count2;
+ DXF_main_base[0].DXF_entities_tolerance_count=entities_TOLERANCE_count2;
+ DXF_main_base[0].DXF_entities_trace_count=entities_TRACE_count2;
+ DXF_main_base[0].DXF_entities_underlay_count=entities_UNDERLAY_count2;
+ DXF_main_base[0].DXF_entities_vertex_count=entities_VERTEX_count2;
+ DXF_main_base[0].DXF_entities_viewport_count=entities_VIEWPORT_count2;
+ DXF_main_base[0].DXF_entities_wipeout_count=entities_WIPEOUT_count2;
+ DXF_main_base[0].DXF_entities_xline_count=entities_XLINE_count2;
+
+
+
+ }
+
+
+ //section objects
+ if (line1==2 and line2.contains("OBJECTS") and line2.length()==7)
+ {
+ Log_1.append("Section OBJECTS \n");
+ objects_st1=0;
+ objects_count1=0;
+
+ while (objects_st1==0 and objects_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];
+
+ objects_count1=objects_count1+1;
+
+ /*if (line1==9)
+ {
+
+ //DXF_input_header[header_count1].dxf_setvar_naam=line2;
+
+ objects_st2=0;
+ objects_count2=0;
+
+ while (objects_st2==0 and objects_count2<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];
+
+ if (line3==0)
+ {
+ objects_st2=1;
+ for_count1=for_count1-2;
+ //header_count1=header_count1+1;
+ }
+ else
+ {
+ //DXF_input_header[header_count1].dxf_setvar_code[header_count2]=line3;
+ //DXF_input_header[header_count1].dxf_setvar_value[header_count2]=line4;
+ objects_count2=objects_count2+1;
+ }
+
+
+ }
+ }*/
+
+ if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+ {
+ Log_1.append("End section OBJECTS \n");
+ objects_st1=1;
+ for_count1=for_count1-2;
+ section_count=section_count+1;
+ }
+ else
+ {
+ //for_count1=for_count1+2;
+ }
+
+
+
+
+
+
+ }
+
+ DXF_main_base[0].dxf_objects_item_count=objects_count1;
+ }
+
+ //section thumbnailimage
+ if (line1==2 and line2.contains("THUMBNAILIMAGE") and line2.length()==14)
+ {
+ Log_1.append("Section THUMBNAILIMAGE \n");
+ thumbnailimage_st1=0;
+ thumbnailimage_count1=0;
+
+ while (thumbnailimage_st1==0 and thumbnailimage_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];
+
+ thumbnailimage_count1=thumbnailimage_count1+1;
+
+ /*if (line1==9)
+ {
+
+ //DXF_input_header[header_count1].dxf_setvar_naam=line2;
+
+ thumbnailimage_st2=0;
+ thumbnailimage_count2=0;
+
+ while (thumbnailimage_st2==0 and thumbnailimage_count2<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];
+
+ if (line3==0)
+ {
+ thumbnailimage_st2=1;
+ for_count1=for_count1-2;
+ //header_count1=header_count1+1;
+ }
+ else
+ {
+ //DXF_input_header[header_count1].dxf_setvar_code[header_count2]=line3;
+ //DXF_input_header[header_count1].dxf_setvar_value[header_count2]=line4;
+ thumbnailimage_count2=thumbnailimage_count2+1;
+ }
+
+
+ }
+ }*/
+
+ if (line1==0 and line2=="ENDSEC" and line2.length()==6)
+ {
+ Log_1.append("End section THUMBNAILIMAGE \n");
+ thumbnailimage_st1=1;
+ for_count1=for_count1-2;
+ section_count=section_count+1;
+ }
+ else
+ {
+ //for_count1=for_count1+2;
+ }
+
+
+
+
+
+
+ }
+
+ DXF_main_base[0].dxf_thumbnailimage_item_count=thumbnailimage_count1;
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+
+
+
+ for_count1=for_count1+2;
+ }
+ }
+
+
+ else
+ {
+
+ Log_1.append("Error no data to process \n");
+ }
+
+
+ DXF_main_base[0].dxf_line_count=dxf_split_count1;
+ DXF_main_base[0].dxf_header_item_count=header_count1;
+ DXF_main_base[0].dxf_classes_item_count=classes_count1;
+ DXF_main_base[0].dxf_tables_item_count=tables_count1;
+ DXF_main_base[0].dxf_block_item_count=block_count1;
+ DXF_main_base[0].dxf_entites_item_count=entities_count1;
+ DXF_main_base[0].dxf_objects_item_count=objects_count1;
+ DXF_main_base[0].dxf_thumbnailimage_item_count=thumbnailimage_count1;
+
+ return Log_1;
+
+}
+
+
+QString dxf_split::found_entities_circle()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" CIRCLE n°: ");
+ Log_2.append(QString::number(entities_CIRCLE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_spline()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" SPLINE n°: ");
+ Log_2.append(QString::number(entities_CIRCLE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_text()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" TEXT n°: ");
+ Log_2.append(QString::number(entities_TEXT_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_line()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" LINE n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_attdef()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" ATTDEF n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_attr()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" ATTRIB n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_arc()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" ARC n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_insert()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" INSERT n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_ellipse()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" ELLIPSE n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_polyline()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" POLYLINE n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_entities_lwpolyline()
+{
+ Log_2="";
+ Log_2.append("Found in ENTITIES code ");
+ Log_2.append(" LWPOLYLINE n°: ");
+ Log_2.append(QString::number(entities_LINE_count2));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_section2()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK section ");
+ Log_2.append(" BLOCK n°: ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line3));
+ Log_2.append(" - ");
+ Log_2.append(line4);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+
+QString dxf_split::found_end_block_section()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK section ");
+ Log_2.append(" END BLOCK n°: ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_table_block_record()
+{
+ Log_2="";
+ Log_2.append("Found in TABLE BLOCK RECORD code ");
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line5));
+ Log_2.append(" - ");
+ Log_2.append(line6);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+/* bock text */
+
+QString dxf_split::found_block_image()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code IMAGE n°: ");
+ Log_2.append(QString::number(block_image_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_line()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code LINE n°: ");
+ Log_2.append(QString::number(block_line_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_attdef()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code ATTDEF n°: ");
+ Log_2.append(QString::number(block_attdef_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_attrib()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code ATTRIB n°: ");
+ Log_2.append(QString::number(block_attrib_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_arc()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code ARC n°: ");
+ Log_2.append(QString::number(block_arc_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_acad_proxy_entity()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code ACAD_PROXY_ENTITY n°: ");
+ Log_2.append(QString::number(block_acad_proxy_entity_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_lwpolyline()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code LWPOLYLINE n°: ");
+ Log_2.append(QString::number(block_lwpolyline_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_text()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code TEXT n°: ");
+ Log_2.append(QString::number(block_text_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_circle()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code CIRCLE n°: ");
+ Log_2.append(QString::number(block_circle_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_hatch()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code HATCH n°: ");
+ Log_2.append(QString::number(block_hatch_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_ellipse()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code ELLIPSE n°: ");
+ Log_2.append(QString::number(block_ellipse_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_3dface()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code 3DFACE n°: ");
+ Log_2.append(QString::number(block_3dface_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_3dsolid()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code 3DFACE n°: ");
+ Log_2.append(QString::number(block_3dsolid_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_body()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code BODY n°: ");
+ Log_2.append(QString::number(block_body_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_dimension()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code DIMENSION n°: ");
+ Log_2.append(QString::number(block_dimension_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_helix()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code HELIX n°: ");
+ Log_2.append(QString::number(block_helix_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_insert()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code INSERT n°: ");
+ Log_2.append(QString::number(block_insert_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_leader()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code LEADER n°: ");
+ Log_2.append(QString::number(block_leader_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_light()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code LIGHT n°: ");
+ Log_2.append(QString::number(block_light_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_mesh()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code MESH n°: ");
+ Log_2.append(QString::number(block_mesh_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_mline()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code MLINE n°: ");
+ Log_2.append(QString::number(block_mline_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_mleaderstyle()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code MLEADERSTYLE n°: ");
+ Log_2.append(QString::number(block_mleaderstyle_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_mleader()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code MLEADER n°: ");
+ Log_2.append(QString::number(block_mleader_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_mtext()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code MTEXT n°: ");
+ Log_2.append(QString::number(block_mtext_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_oleframe()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code OLEFRAME n°: ");
+ Log_2.append(QString::number(block_oleframe_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+
+QString dxf_split::found_block_ole2frame()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code OLE2FRAME n°: ");
+ Log_2.append(QString::number(block_ole2frame_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_point()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code POINT n°: ");
+ Log_2.append(QString::number(block_point_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_polyline()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code POLYLINE n°: ");
+ Log_2.append(QString::number(block_polyline_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_ray()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code RAY n°: ");
+ Log_2.append(QString::number(block_ray_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_region()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code REGION n°: ");
+ Log_2.append(QString::number(block_region_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_section()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SECTION n°: ");
+ Log_2.append(QString::number(block_section_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+
+QString dxf_split::found_block_seqend()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SEQEND n°: ");
+ Log_2.append(QString::number(block_seqend_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+
+QString dxf_split::found_block_shape()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SEQEND n°: ");
+ Log_2.append(QString::number(block_shape_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_solid()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SOLID n°: ");
+ Log_2.append(QString::number(block_solid_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_spline()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SPLINE n°: ");
+ Log_2.append(QString::number(block_spline_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_sun()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SUN n°: ");
+ Log_2.append(QString::number(block_sun_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_surface()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code SURFACE n°: ");
+ Log_2.append(QString::number(block_surface_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_table()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code TABLE n°: ");
+ Log_2.append(QString::number(block_table_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_tolerance()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code TOLERANCE n°: ");
+ Log_2.append(QString::number(block_tolerance_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_trace()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code TRACE n°: ");
+ Log_2.append(QString::number(block_trace_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_underlay()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code UNDERLAY n°: ");
+ Log_2.append(QString::number(block_underlay_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_vertex()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code VERTEX n°: ");
+ Log_2.append(QString::number(block_vertex_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_viewport()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code VIEWPORT n°: ");
+ Log_2.append(QString::number(block_viewport_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_wipeout()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code WIPEOUT n°: ");
+ Log_2.append(QString::number(block_wipeout_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
+
+QString dxf_split::found_block_xline()
+{
+ Log_2="";
+ Log_2.append("Found in BLOCK n° ");
+ Log_2.append(QString::number(block_count1));
+ Log_2.append(" code XLINE n°: ");
+ Log_2.append(QString::number(block_xline_count));
+ Log_2.append(" line :" );
+ Log_2.append(QString::number( for_count1));
+ Log_2.append(" ");
+ Log_2.append(" code :" );
+ Log_2.append(QString::number( line7));
+ Log_2.append(" - ");
+ Log_2.append(line8);
+ Log_2.append(" ");
+ Log_2.append("\n");
+
+ return Log_2;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/dxf_split.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/dxf_split.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/dxf_split.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,625 @@
+#ifndef DXF_SPLIT_H
+#define DXF_SPLIT_H
+
+#include <QObject>
+#include <QMainWindow>
+#include "dxf_data.h"
+#include "dxftoqet_mainwindow.h"
+#include <QtWidgets>
+#include "ui_dxftoqet_mainwindow.h"
+
+
+class dxf_split : public QMainWindow,public dxf_data
+{
+ Q_OBJECT
+
+ public:
+ explicit dxf_split(QWidget *parent);
+
+
+ int32_t dxf_split_count1;
+ int32_t for_count1;
+ int32_t while_count1;
+
+ int line3Int;
+
+ int section_count;
+
+ int header_count1;
+ int header_count2;
+
+ int header_st1;
+ int header_st2;
+
+ int classes_count1;
+ int classes_count2;
+
+ int classes_st1;
+ int classes_st2;
+
+ int tables_count1;
+ int tables_count2;
+ int tables_count3;
+ int tables_count4;
+
+ int tables_st1;
+ int tables_st2;
+ int tables_st3;
+ int tables_st4;
+
+ int block_count1;
+ int block_count2;
+ int block_count3;
+ int block_count4;
+ int block_count5;
+
+ int32_t block_3dface_count;
+ int32_t block_3dsolid_count;
+ int32_t block_acad_proxy_entity_count;
+ int32_t block_arc_count;
+ int32_t block_attdef_count;
+ int32_t block_attrib_count;
+ int32_t block_body_count;
+ int32_t block_circle_count;
+ int32_t block_dimension_count;
+ int32_t block_ellipse_count;
+ int32_t block_hatch_count;
+ int32_t block_helix_count;
+ int32_t block_image_count;
+ int32_t block_insert_count;
+ int32_t block_leader_count;
+ int32_t block_light_count;
+ int32_t block_line_count;
+ int32_t block_lwpolyline_count;
+ int32_t block_mesh_count;
+ int32_t block_mline_count;
+ int32_t block_mleaderstyle_count;
+ int32_t block_mleader_count;
+ int32_t block_mtext_count;
+ int32_t block_oleframe_count;
+ int32_t block_ole2frame_count;
+ int32_t block_point_count;
+ int32_t block_polyline_count;
+ int32_t block_ray_count;
+ int32_t block_region_count;
+ int32_t block_section_count;
+ int32_t block_seqend_count;
+ int32_t block_shape_count;
+ int32_t block_solid_count;
+ int32_t block_spline_count;
+ int32_t block_sun_count;
+ int32_t block_surface_count;
+ int32_t block_table_count;
+ int32_t block_text_count;
+ int32_t block_tolerance_count;
+ int32_t block_trace_count;
+ int32_t block_underlay_count;
+ int32_t block_vertex_count;
+ int32_t block_viewport_count;
+ int32_t block_wipeout_count;
+ int32_t block_xline_count;
+
+
+ int block_st1;
+ int block_st2;
+ int block_st3;
+ int block_st4;
+ int block_st5;
+
+ int entities_count1;
+ int entities_count2;
+
+ int32_t entities_3DFACE_count2;
+ int32_t entities_3DSOLID_count2;
+ int32_t entities_ACAD_PROXY_ENTITY_count2;
+ int32_t entities_ARC_count2;
+ int32_t entities_ATTDEF_count2;
+ int32_t entities_ATTRIB_count2;
+ int32_t entities_BODY_count2;
+ int32_t entities_CIRCLE_count2;
+ int32_t entities_DIMENSION_count2;
+ int32_t entities_ELLIPSE_count2;
+ int32_t entities_HATCH_count2;
+ int32_t entities_HELIX_count2;
+ int32_t entities_IMAGE_count2;
+ int32_t entities_INSERT_count2;
+ int32_t entities_LEADER_count2;
+ int32_t entities_LIGHT_count2;
+ int32_t entities_LINE_count2;
+ int32_t entities_LWPOLYLINE_count2;
+ int32_t entities_MESH_count2;
+ int32_t entities_MLINE_count2;
+ int32_t entities_MLEADERSTYLE_count2;
+ int32_t entities_MLEADER_count2;
+ int32_t entities_MTEXT_count2;
+ int32_t entities_OLEFRAME_count2;
+ int32_t entities_OLE2FRAME_count2;
+ int32_t entities_POINT_count2;
+ int32_t entities_POLYLINE_count2;
+ int32_t entities_RAY_count2;
+ int32_t entities_REGION_count2;
+ int32_t entities_SECTION_count2;
+ int32_t entities_SEQEND_count2;
+ int32_t entities_SHAPE_count2;
+ int32_t entities_SOLID_count2;
+ int32_t entities_SPLINE_count2;
+ int32_t entities_SUN_count2;
+ int32_t entities_SURFACE_count2;
+ int32_t entities_TABLE_count2;
+ int32_t entities_TEXT_count2;
+ int32_t entities_TOLERANCE_count2;
+ int32_t entities_TRACE_count2;
+ int32_t entities_UNDERLAY_count2;
+ int32_t entities_VERTEX_count2;
+ int32_t entities_VIEWPORT_count2;
+ int32_t entities_WIPEOUT_count2;
+ int32_t entities_XLINE_count2;
+
+ int entities_3DFACE_count2_100;
+ int entities_3DSOLID_count2_100;
+ int entities_ACAD_PROXY_ENTITY_count2_100;
+
+ int entities_ARC_count2_100;
+ int entities_ARC_count2_102;
+ int entities_ARC_count2_330;
+
+ int entities_ATTDEF_count2_100;
+ int entities_ATTRIB_count2_100;
+ int entities_BODY_count2_100;
+
+ int entities_CIRCLE_count2_100;
+ int entities_CIRCLE_count2_102;
+ int entities_CIRCLE_count2_330;
+
+ int entities_DIMENSION_count2_100;
+ int entities_ELLIPSE_count2_100;
+ int entities_HATCH_count2_100;
+ int entities_HELIX_count2_100;
+ int entities_IMAGE_count2_100;
+
+ int entities_INSERT_count2_100;
+ int entities_INSERT_count2_102;
+ int entities_INSERT_count2_330;
+
+ int entities_LEADER_count2_100;
+ int entities_LIGHT_count2_100;
+
+ int entities_LINE_count2_100;
+ int entities_LINE_count2_102;
+ int entities_LINE_count2_330;
+
+
+ int entities_LWPOLYLINE_count2_10;
+ int entities_LWPOLYLINE_count2_20;
+ int entities_LWPOLYLINE_count2_100;
+
+
+ int entities_MESH_count2_100;
+ int entities_MLINE_count2_100;
+ int entities_MLEADERSTYLE_count2_100;
+ int entities_MLEADER_count2_100;
+ int entities_MTEXT_count2_100;
+ int entities_OLEFRAME_count2_100;
+ int entities_OLE2FRAME_count2_100;
+ int entities_POINT_count2_100;
+ int entities_POLYLINE_count2_100;
+ int entities_RAY_count2_100;
+ int entities_REGION_count2_100;
+ int entities_SECTION_count2_100;
+ int entities_SEQEND_count2_100;
+ int entities_SHAPE_count2_100;
+ int entities_SOLID_count2_100;
+
+ int entities_SPLINE_count2_10;
+ int entities_SPLINE_count2_20;
+ int entities_SPLINE_count2_30;
+ int entities_SPLINE_count2_40;
+ int entities_SPLINE_count2_100;
+
+ int entities_SUN_count2_100;
+ int entities_SURFACE_count2_100;
+ int entities_TABLE_count2_100;
+
+ int entities_TEXT_count2_100;
+ int entities_TEXT_count2_102;
+ int entities_TEXT_count2_330;
+
+ int entities_TOLERANCE_count2_100;
+ int entities_TRACE_count2_100;
+ int entities_UNDERLAY_count2_100;
+ int entities_VERTEX_count2_100;
+ int entities_VIEWPORT_count2_100;
+ int entities_WIPEOUT_count2_100;
+ int entities_XLINE_count2_100;
+
+
+
+
+
+ int entities_st1;
+ int entities_st2;
+
+ int entities_line_count;
+
+ int objects_count1;
+ int objects_count2;
+
+ int objects_st1;
+ int objects_st2;
+
+ int thumbnailimage_count1;
+ int thumbnailimage_count2;
+
+ int thumbnailimage_st1;
+ int thumbnailimage_st2;
+
+ int count_tables_100;
+ int count_tables_102;
+ int count_tables_340;
+
+ int count_table_appid_100;
+
+ int count_table_block_record_100;
+ int count_table_block_record_102;
+ int count_table_block_record_331;
+
+ int count_table_dimstyle_100;
+ int count_table_dimstyle_1001;
+ int count_table_dimstyle_1002;
+ int count_table_dimstyle_1070;
+
+
+
+ int count_table_layer_100;
+ int count_table_layer_102;
+ int count_table_layer_1000;
+
+ int count_table_ltype_49;
+ int count_table_ltype_74;
+
+ int count_table_ltype_100;
+ int count_table_ltype_102;
+
+ int count_table_style_49;
+ int count_table_style_74;
+ int count_table_style_100;
+ int count_table_style_1000;
+ int count_table_style_1001;
+ int count_table_style_1002;
+ int count_table_style_1070;
+
+ int count_table_ucs_100;
+
+ int count_block_image_14;
+ int count_block_image_24;
+ int count_block_image_100;
+
+ int count_block_arc_14;
+ int count_block_arc_24;
+ int count_block_arc_100;
+ int count_block_arc_102;
+ int count_block_arc_330;
+
+ int count_block_attdef_14;
+ int count_block_attdef_24;
+ int count_block_attdef_100;
+
+ int count_block_attrib_14;
+ int count_block_attrib_24;
+ int count_block_attrib_100;
+
+ int count_block_circle_14;
+ int count_block_circle_24;
+ int count_block_circle_100;
+ int count_block_circle_102;
+ int count_block_circle_330;
+
+ int count_block_lwpolyline_10;
+ int count_block_lwpolyline_14;
+ int count_block_lwpolyline_20;
+ int count_block_lwpolyline_24;
+ int count_block_lwpolyline_100;
+ int count_block_lwpolyline_102;
+ int count_block_lwpolyline_330;
+
+ int count_block_polyline_10;
+ int count_block_polyline_14;
+ int count_block_polyline_20;
+ int count_block_polyline_24;
+ int count_block_polyline_100;
+ int count_block_polyline_102;
+ int count_block_polyline_330;
+
+ int count_block_spline_10;
+ int count_block_spline_14;
+ int count_block_spline_20;
+ int count_block_spline_24;
+ int count_block_spline_30;
+ int count_block_spline_40;
+ int count_block_spline_100;
+ int count_block_spline_102;
+ int count_block_spline_330;
+
+ int count_block_viewport_10;
+ int count_block_viewport_14;
+ int count_block_viewport_20;
+ int count_block_viewport_24;
+ int count_block_viewport_100;
+ int count_block_viewport_102;
+ int count_block_viewport_330;
+
+ int count_block_hatch_10;
+ int count_block_hatch_14;
+ int count_block_hatch_20;
+ int count_block_hatch_24;
+ int count_block_hatch_30;
+ int count_block_hatch_40;
+ int count_block_hatch_100;
+ int count_block_hatch_102;
+ int count_block_hatch_330;
+
+ int count_block_solid_10;
+ int count_block_solid_14;
+ int count_block_solid_20;
+ int count_block_solid_24;
+ int count_block_solid_30;
+ int count_block_solid_40;
+ int count_block_solid_100;
+ int count_block_solid_102;
+ int count_block_solid_330;
+
+ int count_block_seqend_10;
+ int count_block_seqend_14;
+ int count_block_seqend_20;
+ int count_block_seqend_24;
+ int count_block_seqend_30;
+ int count_block_seqend_40;
+ int count_block_seqend_100;
+ int count_block_seqend_102;
+ int count_block_seqend_330;
+
+
+ int count_block_vertex_10;
+ int count_block_vertex_14;
+ int count_block_vertex_20;
+ int count_block_vertex_24;
+ int count_block_vertex_100;
+ int count_block_vertex_102;
+ int count_block_vertex_330;
+
+ int count_block_ellipse_10;
+ int count_block_ellipse_14;
+ int count_block_ellipse_20;
+ int count_block_ellipse_24;
+ int count_block_ellipse_100;
+ int count_block_ellipse_102;
+ int count_block_ellipse_330;
+
+
+ int count_block_text_14;
+ int count_block_text_24;
+ int count_block_text_100;
+ int count_block_text_102;
+ int count_block_text_330;
+
+ int count_table_view_100;
+ int count_table_view_102;
+
+ int count_table_vport_100;
+ int count_table_vport_102;
+
+ int count_block_100;
+ int count_block_102;
+
+
+ int count_block_line_100;
+ int count_block_line_102;
+ int count_block_line_330;
+
+ int count_end_block_100;
+
+ int line1;
+ QString line2;
+
+ int line3;
+ QString line4;
+
+ int line5;
+ QString line6;
+
+ int line7;
+ QString line8;
+
+ QString Log_1;
+
+ QString Master_handle_id;
+ QString Master_block_handle_id;
+
+ int sw_cleaner;
+ bool sw_header[1072];
+ bool sw_classes[1072];
+ bool sw_tables[1072];
+ bool sw_table_appid[1072];
+ bool sw_table_block_record[1072];
+ bool sw_table_dimstyle[1072];
+ bool sw_table_layer[1072];
+ bool sw_table_ltype[1072];
+ bool sw_table_style[1072];
+ bool sw_table_ucs[1072];
+ bool sw_table_view[1072];
+ bool sw_table_vport[1072];
+ bool sw_block[1072];
+ bool sw_end_block[1072];
+ bool sw_entities[1072];
+ bool sw_objects[1072];
+ bool sw_thumbnailimage[1072];
+
+ bool sw_block_line[1072];
+
+ bool sw_entities_3dface[1072];
+ bool sw_entities_3dsolid[1072];
+ bool sw_entities_acad_proxy_entity[1072];
+ bool sw_entities_arc[1072];
+ bool sw_entities_attdef[1072];
+ bool sw_entities_attrib[1072];
+ bool sw_entities_body[1072];
+ bool sw_entities_circle[1072];
+ bool sw_entities_dimension[1072];
+ bool sw_entities_ellipse[1072];
+ bool sw_entities_hatch[1072];
+ bool sw_entities_helix[1072];
+ bool sw_entities_image[1072];
+ bool sw_entities_insert[1072];
+ bool sw_entities_leader[1072];
+ bool sw_entities_light[1072];
+ bool sw_entities_line[1072];
+ bool sw_entities_lwpolyline[1072];
+ bool sw_entities_mesh[1072];
+ bool sw_entities_mline[1072];
+ bool sw_entities_mleaderstyle[1072];
+ bool sw_entities_mleader[1072];
+ bool sw_entities_mtext[1072];
+ bool sw_entities_oleframe[1072];
+ bool sw_entities_ole2frame[1072];
+ bool sw_entities_point[1072];
+ bool sw_entities_polyline[1072];
+ bool sw_entities_ray[1072];
+ bool sw_entities_region[1072];
+ bool sw_entities_section[1072];
+ bool sw_entities_seqend[1072];
+ bool sw_entities_shape[1072];
+ bool sw_entities_solid[1072];
+ bool sw_entities_spline[1072];
+ bool sw_entities_sun[1072];
+ bool sw_entities_surface[1072];
+ bool sw_entities_table[1072];
+ bool sw_entities_text[1072];
+ bool sw_entities_tolerance[1072];
+ bool sw_entities_trace[1072];
+ bool sw_entities_underlay[1072];
+ bool sw_entities_vertex[1072];
+ bool sw_entities_viewport[1072];
+ bool sw_entities_wipeout[1072];
+ bool sw_entities_xline[1072];
+
+
+ QString Log_2;
+
+
+ QString dxf_split_section();
+
+ void dxf_split_header();
+ void dxf_split_classes();
+ void dxf_split_tables();
+ void dxf_split_block();
+ void dxf_split_entities();
+ void dxf_split_objects();
+ void dxf_split_thumbnailimage();
+
+ QString found_block_3dface();
+ QString found_block_3dsolid();
+ QString found_block_acad_proxy_entity();
+ QString found_block_arc();
+ QString found_block_attdef();
+ QString found_block_attrib();
+ QString found_block_body();
+ QString found_block_circle();
+ QString found_block_dimension();
+ QString found_block_ellipse();
+ QString found_block_hatch();
+ QString found_block_helix();
+ QString found_block_image();
+ QString found_block_insert();
+ QString found_block_leader();
+ QString found_block_light();
+ QString found_block_line();
+ QString found_block_lwpolyline();
+ QString found_block_mesh();
+ QString found_block_mline();
+ QString found_block_mleaderstyle();
+ QString found_block_mleader();
+ QString found_block_mtext();
+ QString found_block_oleframe();
+ QString found_block_ole2frame();
+ QString found_block_point();
+ QString found_block_polyline();
+ QString found_block_ray();
+ QString found_block_region();
+ QString found_block_section();
+ QString found_block_seqend();
+ QString found_block_shape();
+ QString found_block_solid();
+ QString found_block_spline();
+ QString found_block_sun();
+ QString found_block_surface();
+ QString found_block_table();
+ QString found_block_text();
+ QString found_block_tolerance();
+ QString found_block_trace();
+ QString found_block_underlay();
+ QString found_block_vertex();
+ QString found_block_viewport();
+ QString found_block_wipeout();
+ QString found_block_xline();
+
+ QString found_entities_3dface();
+ QString found_entities_3dsolid();
+ QString found_entities_acad_proxy_entity();
+ QString found_entities_arc();
+ QString found_entities_attdef();
+ QString found_entities_attr();
+ QString found_entities_body();
+ QString found_entities_circle();
+ QString found_entities_dimension();
+ QString found_entities_ellipse();
+ QString found_entities_hatch();
+ QString found_entities_helix();
+ QString found_entities_image();
+ QString found_entities_insert();
+ QString found_entities_leader();
+ QString found_entities_light();
+ QString found_entities_line();
+ QString found_entities_lwpolyline();
+ QString found_entities_mesh();
+ QString found_entities_mline();
+ QString found_entities_mleaderstyle();
+ QString found_entities_mleader();
+ QString found_entities_mtext();
+ QString found_entities_oleframe();
+ QString found_entities_oleframe2();
+ QString found_entities_point();
+ QString found_entities_polyline();
+ QString found_entities_ray();
+ QString found_entities_region();
+ QString found_entities_section();
+ QString found_entities_seqend();
+ QString found_entities_shape();
+ QString found_entities_solid();
+ QString found_entities_spline();
+ QString found_entities_sun();
+ QString found_entities_surface();
+ QString found_entities_table();
+ QString found_entities_text();
+ QString found_entities_tolerance();
+ QString found_entities_trace();
+ QString found_entities_underlay();
+ QString found_entities_vertex();
+ QString found_entities_viewport();
+ QString found_entities_wipeout();
+ QString found_entities_xline();
+
+ QString found_block_section2();
+ QString found_end_block_section();
+
+
+ QString found_table_block_record();
+
+
+
+ signals:
+ void ValueChanged (int for_count1);
+
+ public slots:
+};
+
+#endif // DXF_SPLIT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,376 @@
+#include "baseelmt.h"
+
+extern struct DXF_base DXF_main_base[1];
+
+BaseELMT::BaseELMT(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString BaseELMT::DefinitionStart()
+{
+ /* Base values */
+
+ /*ELMT_definition_height="50";
+ ELMT_definition_width="40";
+ ELMT_definition_version="0.5";
+ ELMT_definition_hotspot_x="1";
+ ELMT_definition_hotspot_y="1";
+ ELMT_definition_link_type="master";
+ ELMT_definition_type="element";
+ ELMT_definition_orientation="dyyy";*/
+
+ Result="";
+
+ /* <definition width="40" version="0.4"
+ * hotspot_x="18" hotspot_y="24" height="50"
+ * link_type="master" type="element" orientation="dyyy"> */
+
+ Result.append("<definition");
+ Result.append(" width=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_width);
+ Result.append(QChar(34));
+ Result.append(" version=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_version);
+ Result.append(QChar(34));
+ Result.append(" hotspot_x=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_hotspot_x);
+ Result.append(QChar(34));
+ Result.append(" hotspot_y=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_hotspot_y);
+ Result.append(QChar(34));
+ Result.append(" height=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_height);
+ Result.append(QChar(34));
+ Result.append(" link_type=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_link_type);
+ Result.append(QChar(34));
+ Result.append(" type=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_type);
+ Result.append(QChar(34));
+ Result.append(" orientation=");
+ Result.append(QChar(34));
+ Result.append(ELMT_definition_orientation);
+ Result.append(QChar(34));
+
+ Result.append(" >");
+ Result.append('\n');
+
+ return Result;
+
+}
+
+QString BaseELMT::DefinitionEnd()
+{
+
+ Result="";
+
+ /* </definition> */
+
+
+
+ Result.append("</definition>");
+ Result.append('\n');
+
+ return Result;
+
+}
+
+QString BaseELMT::Uuid()
+{
+
+ Result="";
+
+ /* <uuid uuid="{687262D2-B8A1-4CD6-B56F-4547577EFD01}"/> */
+
+ Uuidstring=QUuid::createUuid();
+
+ Result.append("<uuid");
+ Result.append(" uuid=");
+ Result.append(QChar(34));
+ Result.append(Uuidstring.toString());
+ Result.append(QChar(34));
+
+ Result.append(" />");
+ Result.append('\n');
+
+ return Result;
+
+}
+
+QString BaseELMT::Names()
+{
+
+ /* Base values */
+
+ /*ELMT_Name_ar="-";
+ ELMT_Name_de="-";
+ ELMT_Name_en="-";
+ ELMT_Name_it="-";
+ ELMT_Name_fr="-";
+ ELMT_Name_pl="-";
+ ELMT_Name_es="-";
+ ELMT_Name_nl="-";
+ ELMT_Name_cs="-";
+ ELMT_Name_be_nl="-";*/
+
+ Result="";
+
+ /* <names>
+ <name lang="ar">قاطع أحادي الوجه</name>
+ <name lang="de">Lastschalter 2P</name>
+ <name lang="en">Circuit-breaker</name>
+ <name lang="it">Sezionatore 2P</name>
+ <name lang="fr">Disjoncteur mono</name>
+ <name lang="pl">Wyłącznik</name>
+ <name lang="es">Interruptor magnetotérmico</name>
+ <name lang="nl">Lastscheider 2</name>
+ <name lang="cs">Jistič 2</name>
+ </names> */
+
+ Result.append("<names>\n");
+
+
+ if (ELMT_Name_en != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_en);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_en);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_fr != "-")
+ {
+
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_fr);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_fr);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_be_nl != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_be_nl);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_be_nl);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_ar != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_ar);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_ar);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_de != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_de);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_de);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_it != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_it);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_it);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_pl != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_pl);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_pl);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_es != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_es);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_es);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_cs != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_cs);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_cs);
+ Result.append("</name>\n");
+ }
+
+ if (ELMT_Name_nl != "-")
+ {
+ Result.append(" ");
+ Result.append("<name lang=");
+ Result.append(QChar(34));
+ Result.append(ELMT_Name_nl);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_Name_text_nl);
+ Result.append("</name>\n");
+ }
+
+ Result.append("</names>");
+ Result.append('\n');
+
+ return Result;
+
+}
+
+QString BaseELMT::KindInformation()
+{
+ /* Base values */
+
+ ELMT_kind_name="type";
+ ELMT_kind_show="1";
+ ELMT_kind_type="protection";
+
+ Result="";
+
+ /* <kindInformations>
+ <kindInformation name="type" show="1">protection</kindInformation>
+ </kindInformations> */
+
+ Result.append("<kindInformations>\n");
+
+ Result.append("<kindInformation");
+ Result.append(" name=");
+ Result.append(QChar(34));
+ Result.append(ELMT_kind_name);
+ Result.append(QChar(34));
+ Result.append(" show=");
+ Result.append(QChar(34));
+ Result.append(ELMT_kind_show);
+ Result.append(QChar(34));
+ Result.append(">");
+ Result.append(ELMT_kind_type);
+ Result.append("</kindInformation>\n");
+
+ Result.append("</kindInformations>\n");
+
+ return Result;
+}
+
+QString BaseELMT::Informations()
+{
+
+ /* Base values */
+
+ Result="";
+
+ ELMT_informations_Author="The QElectroTech team";
+ ELMT_informations_License=" see http://qelectrotech.org/wiki/doc/elements_license";
+ ELMT_converter_by=" Ronny Desmedt";
+ ELMT_converter_version=" V2.0";
+
+
+ /* <informations>Author: The QElectroTech team
+ License: see http://qelectrotech.org/wiki/doc/elements_license
+ </informations> */
+
+
+ Result.append("<informations>\n");
+
+ Result.append(" ");
+ Result.append("Author: ");
+ Result.append(ELMT_informations_Author);
+ Result.append("\n");
+ Result.append(" ");
+ Result.append("License:");
+ Result.append(ELMT_informations_License);
+ Result.append("\n");
+ Result.append(" ");
+ Result.append("Converter version:");
+ Result.append(ELMT_converter_version);
+ Result.append("\n");
+ // Result.append(" ");
+ // Result.append("Converter by:");
+ // Result.append(ELMT_converter_by);
+ Result.append("\n");
+
+ Result.append("</informations>\n");
+
+ return Result;
+}
+
+QString BaseELMT::DescriptionStart()
+{
+ /* base var */
+
+ Result="";
+
+ /* <description> */
+
+
+
+ Result.append("<description>");
+ Result.append('\n');
+
+ return Result;
+}
+
+QString BaseELMT::DescriptionEnd()
+{
+ /* base var */
+
+ Result="";
+
+ /* </description> */
+
+
+
+ Result.append("</description>");
+ Result.append('\n');
+
+ return Result;
+
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/qet_base_types/baseelmt.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,77 @@
+#ifndef BASEELMT_H
+#define BASEELMT_H
+
+#include <QMainWindow>
+#include <QtCore>
+#include <qobject.h>
+
+
+
+class BaseELMT : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ explicit BaseELMT(QWidget *parent = 0);
+
+ QString ELMT_definition_width;
+ QString ELMT_definition_version;
+ QString ELMT_definition_hotspot_x;
+ QString ELMT_definition_hotspot_y;
+ QString ELMT_definition_height;
+ QString ELMT_definition_link_type;
+ QString ELMT_definition_type;
+ QString ELMT_definition_orientation;
+
+ QString ELMT_uuid;
+
+ QString ELMT_Name_en;
+ QString ELMT_Name_fr;
+ QString ELMT_Name_de;
+ QString ELMT_Name_ar;
+ QString ELMT_Name_it;
+ QString ELMT_Name_pl;
+ QString ELMT_Name_nl;
+ QString ELMT_Name_be_nl;
+ QString ELMT_Name_es;
+ QString ELMT_Name_cs;
+
+ QString ELMT_Name_text_en;
+ QString ELMT_Name_text_fr;
+ QString ELMT_Name_text_de;
+ QString ELMT_Name_text_ar;
+ QString ELMT_Name_text_it;
+ QString ELMT_Name_text_pl;
+ QString ELMT_Name_text_nl;
+ QString ELMT_Name_text_be_nl;
+ QString ELMT_Name_text_es;
+ QString ELMT_Name_text_cs;
+
+ QString ELMT_kind_name;
+ QString ELMT_kind_show;
+ QString ELMT_kind_type;
+
+ QString ELMT_informations_Author;
+ QString ELMT_informations_License;
+ QString ELMT_converter_version;
+ QString ELMT_converter_by;
+
+ QString Result;
+
+ QString DefinitionStart();
+ QString DefinitionEnd();
+ QString Uuid();
+ QString Names();
+ QString KindInformation();
+ QString Informations();
+ QString DescriptionStart();
+ QString DescriptionEnd();
+
+ QUuid Uuidstring;
+
+ signals:
+
+ public slots:
+
+};
+
+#endif // BASEELMT_H
Added: branches/Qetdxf/sources/dxftoqet2/src/split_csv.cpp
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/split_csv.cpp (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/split_csv.cpp 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,52 @@
+#include "split_csv.h"
+
+//extern int dxf ();
+
+
+extern struct DXF_base DXF_main_base[1];
+
+
+split_csv::split_csv(QWidget *parent) :
+ QMainWindow(parent)
+{
+}
+
+QString split_csv::split_CSV_table()
+{
+ // init extern variable
+ extern DXF_base DXF_main_base[1];
+
+ Counter1=0;
+ sw1=0;
+ sw2=0;
+ Line_count=0;
+
+ Log_1="Start splitting CSV file into table \n";
+
+ Line_count=DXF_main_base[0].dxf_input.count();
+ DXF_main_base[0].dxf_csv_line_count=Line_count;
+
+ while (Counter1<Line_count-1 and Counter1<9999)
+ {
+ Split_line=DXF_main_base[0].dxf_input[Counter1].split(";");
+
+
+ sw1=Split_line.count();
+ sw2=0;
+
+ while (sw2<sw1-1)
+ {
+ DXF_main_base[0].dxf_csv_split[Counter1][sw2]=Split_line[sw2];
+ sw2=sw2+1;
+
+
+ //Counter1=Counter1+1;
+ }
+ Counter1=Counter1+1;
+ }
+
+ Log_1="End splitting CSV file into table \n";
+
+
+ return Log_1;
+}
Added: branches/Qetdxf/sources/dxftoqet2/src/split_csv.h
===================================================================
--- branches/Qetdxf/sources/dxftoqet2/src/split_csv.h (rev 0)
+++ branches/Qetdxf/sources/dxftoqet2/src/split_csv.h 2016-01-07 20:48:03 UTC (rev 4310)
@@ -0,0 +1,32 @@
+#ifndef SPLIT_CSV_H
+#define SPLIT_CSV_H
+
+
+#include "dxf_data.h"
+#include <QObject>
+#include <QMainWindow>
+#include "dxftoqet_mainwindow.h"
+#include <QtWidgets>
+#include "ui_dxftoqet_mainwindow.h"
+
+class split_csv : public QMainWindow,public dxf_data
+{
+ Q_OBJECT
+
+ public:
+ explicit split_csv(QWidget *parent);
+
+ QString Log_1;
+
+ int Line_count;
+ int sw1;
+ int sw2;
+ int Counter1;
+
+ QStringList Split_line;
+
+ QString split_CSV_table();
+ //split_csv();
+};
+
+#endif // SPLIT_CSV_H