[qet] [4250] DXFtoQET

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


Revision: 4250
Author:   rdsivd
Date:     2015-11-07 10:27:39 +0100 (Sat, 07 Nov 2015)
Log Message:
-----------
DXFtoQET
fix insert position of acad blocks/symbols

Modified Paths:
--------------
    branches/dxftoqet2/dxf_create_elmt.cpp
    branches/dxftoqet2/dxf_create_elmt.h

Modified: branches/dxftoqet2/dxf_create_elmt.cpp
===================================================================
--- branches/dxftoqet2/dxf_create_elmt.cpp	2015-11-07 09:15:47 UTC (rev 4249)
+++ branches/dxftoqet2/dxf_create_elmt.cpp	2015-11-07 09:27:39 UTC (rev 4250)
@@ -2,6 +2,7 @@
 
 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];
@@ -693,8 +694,19 @@
 			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());

Modified: branches/dxftoqet2/dxf_create_elmt.h
===================================================================
--- branches/dxftoqet2/dxf_create_elmt.h	2015-11-07 09:15:47 UTC (rev 4249)
+++ branches/dxftoqet2/dxf_create_elmt.h	2015-11-07 09:27:39 UTC (rev 4250)
@@ -99,6 +99,7 @@
 	int Count_for;
 
 	int Insert_block_nr;
+	int Block_counter;
 
 	int Polyline_vertex;
 	int Block_Polyline_vertex;


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