<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QElectroTech — DXF import/export  coding]]></title>
		<link>https://qelectrotech.org/forum/viewtopic.php?id=1465</link>
		<atom:link href="https://qelectrotech.org/forum/extern.php?action=feed&amp;tid=1465&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in DXF import/export  coding.]]></description>
		<lastBuildDate>Sat, 24 Aug 2019 18:34:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10400#p10400</link>
			<description><![CDATA[<p> OK, but we have to change the sequence on how to export.</p><p>if we look to a drawing page in qet, it is build with <br /></p><ul><li><p>elements</p></li><li><p>lines between connectors</p></li><li><p>titelblock</p></li><li><p>shapes and free text</p></li></ul><p>Before we can export the entities section in dxf<br />we need to create the dxf block section where we create a block definition for eacht<br /></p><ul><li><p>element</p></li><li><p>titelblock</p></li></ul><p>this block section is fillet with the same basic functions already in the dxfexport functions.</p><p>After this is write to the dxf file we can create the entities section in dxf<br />this have a command insert block to write a element in the entities sections.</p><p>shapes and free text is writen directly in the entitie sections</p><p>The conected lines are also writen in the entities sections </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Sat, 24 Aug 2019 18:34:20 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10400#p10400</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10382#p10382</link>
			<description><![CDATA[<p> Here DXF export commits :<br /> <a href="https://git.tuxfamily.org/qet/qet.git/log/?qt=grep&amp;q=dxf">https://git.tuxfamily.org/qet/qet.git/l … &amp;q=dxf</a>&nbsp; </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Fri, 23 Aug 2019 14:18:40 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10382#p10382</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10381#p10381</link>
			<description><![CDATA[<p> Hi Ronny,</p><p>in exportdialog you can found functions to export project to DXF :</p><div class="codebox"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">// Determine les elements a &quot;XMLiser&quot;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; foreach<span style="color: #008000;">&#40;</span>QGraphicsItem <span style="color: #000040;">*</span>qgi, diagram <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> items<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>Element <span style="color: #000040;">*</span>elmt <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>Element <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_elements <span style="color: #000080;">&lt;&lt;</span> elmt<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>Conductor <span style="color: #000040;">*</span>f <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>Conductor <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_conductors <span style="color: #000080;">&lt;&lt;</span> f<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>IndependentTextItem <span style="color: #000040;">*</span>iti <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>IndependentTextItem <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_texts <span style="color: #000080;">&lt;&lt;</span> iti<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>DiagramImageItem <span style="color: #000040;">*</span>dii <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>DiagramImageItem <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_images <span style="color: #000080;">&lt;&lt;</span> dii<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>QetShapeItem <span style="color: #000040;">*</span>dii <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>QetShapeItem <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_shapes <span style="color: #000080;">&lt;&lt;</span> dii<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>DynamicElementTextItem <span style="color: #000040;">*</span>deti <span style="color: #000080;">=</span> qgraphicsitem_cast<span style="color: #000080;">&lt;</span>DynamicElementTextItem <span style="color: #000040;">*</span><span style="color: #000080;">&gt;</span><span style="color: #008000;">&#40;</span>qgi<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_texts <span style="color: #000080;">&lt;&lt;</span> deti<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></pre></div><p>After for parsing to QTextStream </p><br /><div class="codebox"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">//Draw elements</span><br />&nbsp; &nbsp; foreach<span style="color: #008000;">&#40;</span>Element <span style="color: #000040;">*</span>elmt, list_elements<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">double</span> rotation_angle <span style="color: #000080;">=</span> elmt <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> orientation<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> <span style="color: #0000dd;">90</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; qreal elem_pos_x <span style="color: #000080;">=</span> elmt <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; qreal elem_pos_y <span style="color: #000080;">=</span> elmt <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><span style="color: #666666;">// - (diagram -&gt; margin / 2);</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; qreal hotspot_x <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x<span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; qreal hotspot_y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y<span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; ElementPictureFactory<span style="color: #008080;">::</span><span style="color: #007788;">primitives</span> primitives <span style="color: #000080;">=</span> ElementPictureFactory<span style="color: #008080;">::</span><span style="color: #007788;">instance</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>getPrimitives<span style="color: #008000;">&#40;</span>elmt<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>location<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span>QGraphicsSimpleTextItem <span style="color: #000040;">*</span>text <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_texts</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal fontSize <span style="color: #000080;">=</span> text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pointSizeF</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>fontSize <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000080;">=</span> text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pixelSize</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000040;">*</span><span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x <span style="color: #000080;">=</span> elem_pos_x <span style="color: #000040;">+</span> text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y <span style="color: #000080;">=</span> elem_pos_y <span style="color: #000040;">+</span> text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">*</span><span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>y <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><span style="color: #666666;">// - fontSize;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x, y, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QStringList lines <span style="color: #000080;">=</span> text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>text<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">split</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>fontSize<span style="color: #000040;">/</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> <span style="color: #008000;">&#40;</span>lines.<span style="color: #007788;">count</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">-</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QString line <span style="color: #008080;">:</span> lines<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal angle <span style="color: #000080;">=</span> <span style="color: #0000dd;">360</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>text<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>rotation<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">+</span> rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>line.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">0</span> <span style="color: #000040;">&amp;&amp;</span> line <span style="color: #000040;">!</span><span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;_&quot;</span> <span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawText</span><span style="color: #008000;">&#40;</span>file_path, line, x, y, fontSize, angle, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; angle <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">1080</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// coordinates for next line</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle<span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// no rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">180</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 180 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">270</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 270 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #666666;">// ((angle - 90) % 360 == 0) 90 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QLineF line <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_lines</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x1 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> line.<span style="color: #007788;">p1</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y1 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> line.<span style="color: #007788;">p1</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x1, y1, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x2 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> line.<span style="color: #007788;">p2</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y2 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> line.<span style="color: #007788;">p2</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x2, y2, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawLine</span><span style="color: #008000;">&#40;</span>file_path, x1, y1, x2, y2, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QRectF rect <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_rectangles</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x1 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> rect.<span style="color: #007788;">bottomLeft</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y1 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> rect.<span style="color: #007788;">bottomLeft</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal w <span style="color: #000080;">=</span> rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal h <span style="color: #000080;">=</span> rect.<span style="color: #007788;">height</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// opposite corner</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x2 <span style="color: #000080;">=</span> x1 <span style="color: #000040;">+</span> w<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y2 <span style="color: #000080;">=</span> y1 <span style="color: #000040;">+</span> h<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x1, y1, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x2, y2, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal bottom_left_x <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>x1 <span style="color: #000080;">&lt;</span> x2<span style="color: #008000;">&#41;</span> <span style="color: #008080;">?</span> x1 <span style="color: #008080;">:</span> x2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal bottom_left_y <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>y1 <span style="color: #000080;">&lt;</span> y2<span style="color: #008000;">&#41;</span> <span style="color: #008080;">?</span> y1 <span style="color: #008080;">:</span> y2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>x1 <span style="color: #000080;">&lt;</span> x2<span style="color: #008000;">&#41;</span> <span style="color: #008080;">?</span> x2<span style="color: #000040;">-</span>x1 <span style="color: #008080;">:</span> x1<span style="color: #000040;">-</span>x2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>y1 <span style="color: #000080;">&lt;</span> y2<span style="color: #008000;">&#41;</span> <span style="color: #008080;">?</span> y2<span style="color: #000040;">-</span>y1 <span style="color: #008080;">:</span> y1<span style="color: #000040;">-</span>y2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawRectangle</span><span style="color: #008000;">&#40;</span>file_path, bottom_left_x, bottom_left_y, w, h, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QRectF circle_rect <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_circles</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x1 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> circle_rect.<span style="color: #007788;">center</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y1 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> circle_rect.<span style="color: #007788;">center</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal r <span style="color: #000080;">=</span> circle_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">2</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x1, y1, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawCircle</span><span style="color: #008000;">&#40;</span>file_path, r, x1, y1, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QVector<span style="color: #000080;">&lt;</span>QPointF<span style="color: #000080;">&gt;</span> polygon <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_polygons</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>polygon.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">continue</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x1 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> polygon.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y1 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> polygon.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x1, y1, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y1 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> i <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span><span style="color: #008080;">;</span> i <span style="color: #000080;">&lt;</span> polygon.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> <span style="color: #000040;">++</span>i <span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x2 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> polygon.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span>i<span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y2 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> polygon.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span>i<span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QPointF transformed_point <span style="color: #000080;">=</span> rotation_transformed<span style="color: #008000;">&#40;</span>x2, y2, hotspot_x, hotspot_y, rotation_angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y2 <span style="color: #000080;">=</span> transformed_point.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawLine</span><span style="color: #008000;">&#40;</span>file_path, x1, y1, x2, y2, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x1 <span style="color: #000080;">=</span> x2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y1 <span style="color: #000080;">=</span> y2<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// Draw arcs and ellipses</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #008000;">&#40;</span>QVector<span style="color: #000080;">&lt;</span>qreal<span style="color: #000080;">&gt;</span> arc <span style="color: #008080;">:</span> primitives.<span style="color: #007788;">m_arcs</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>arc.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">continue</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>elem_pos_x <span style="color: #000040;">+</span> arc.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>elem_pos_y <span style="color: #000040;">+</span> arc.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal w <span style="color: #000080;">=</span> arc.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal h <span style="color: #000080;">=</span> arc.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">3</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal startAngle <span style="color: #000080;">=</span> arc.<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">4</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal spanAngle <span style="color: #000080;">=</span> arc .<span style="color: #007788;">at</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">5</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawArcEllipse</span><span style="color: #008000;">&#40;</span>file_path, x, y, w, h, startAngle, spanAngle, hotspot_x, hotspot_y, rotation_angle, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #666666;">//Draw conductors</span><br />&nbsp; &nbsp; foreach<span style="color: #008000;">&#40;</span>Conductor <span style="color: #000040;">*</span>cond, list_conductors<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; foreach<span style="color: #008000;">&#40;</span>ConductorSegment <span style="color: #000040;">*</span>segment, cond <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> segmentsList<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x1 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>segment <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> firstPoint<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y1 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>segment <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> firstPoint<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x2 <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>segment <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> secondPoint<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y2 <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>segment <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> secondPoint<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawLine</span><span style="color: #008000;">&#40;</span>file_path, x1, y1, x2, y2, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">//Draw conductor text item</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ConductorTextItem <span style="color: #000040;">*</span>textItem <span style="color: #000080;">=</span> cond <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> textItem<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>textItem<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal fontSize <span style="color: #000080;">=</span> textItem <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pointSizeF</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>fontSize <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000080;">=</span> textItem <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pixelSize</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000040;">*</span><span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal x <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>textItem <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>textItem <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> pos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">-</span> fontSize<span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QStringList lines <span style="color: #000080;">=</span> textItem<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>toPlainText<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">split</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach <span style="color: #008000;">&#40;</span>QString line, lines<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal angle <span style="color: #000080;">=</span> <span style="color: #0000dd;">360</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>textItem <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> rotation<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>line.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">0</span> <span style="color: #000040;">&amp;&amp;</span> line <span style="color: #000040;">!</span><span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;_&quot;</span> <span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawText</span><span style="color: #008000;">&#40;</span>file_path, line, x, y, fontSize, angle, <span style="color: #0000dd;">0</span> <span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; angle <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">1080</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// coordinates for next line</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle<span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// no rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">180</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 180 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">270</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 270 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #666666;">// ((angle - 90) % 360 == 0) 90 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #666666;">//Draw text items</span><br />&nbsp; &nbsp; foreach<span style="color: #008000;">&#40;</span>DiagramTextItem <span style="color: #000040;">*</span>dti, list_texts<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; qreal fontSize <span style="color: #000080;">=</span> dti <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pointSizeF</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>fontSize <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000080;">=</span> dti <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> font<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">pixelSize</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; fontSize <span style="color: #000040;">*</span><span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; qreal x <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>dti<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>scenePos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; qreal y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>dti<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>scenePos<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">-</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.05</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; QStringList lines <span style="color: #000080;">=</span> dti <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> toPlainText<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">split</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; foreach <span style="color: #008000;">&#40;</span>QString line, lines<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qreal angle <span style="color: #000080;">=</span> <span style="color: #0000dd;">360</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>dti <span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span> rotation<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>line.<span style="color: #007788;">size</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">0</span> <span style="color: #000040;">&amp;&amp;</span> line <span style="color: #000040;">!</span><span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;_&quot;</span> <span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawText</span><span style="color: #008000;">&#40;</span>file_path, line, x, y, fontSize, angle, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; angle <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">1080</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">// coordinates for next line</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle<span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// no rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">180</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 180 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#40;</span>angle <span style="color: #000040;">-</span> <span style="color: #0000dd;">270</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">%</span> <span style="color: #0000dd;">360</span> <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #666666;">// 270 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">-</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">else</span> <span style="color: #666666;">// ((angle - 90) % 360 == 0) 90 degrees rotation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> fontSize<span style="color: #000040;">*</span><span style="color:#800080;">1.06</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">dxfEnd</span><span style="color: #008000;">&#40;</span>file_path<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br /> saveReloadDiagramParameters<span style="color: #008000;">&#40;</span>diagram, <span style="color: #0000ff;">false</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br /><span style="color: #008000;">&#125;</span><br />&nbsp;<br /><span style="color: #0000ff;">void</span> ExportDialog<span style="color: #008080;">::</span><span style="color: #007788;">fillRow</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> QString<span style="color: #000040;">&amp;</span> file_path, <span style="color: #0000ff;">const</span> QRectF <span style="color: #000040;">&amp;</span>row_rect, QString author, <span style="color: #0000ff;">const</span> QString<span style="color: #000040;">&amp;</span> title,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QString folio, QString date<span style="color: #008000;">&#41;</span><br /><span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; qreal x <span style="color: #000080;">=</span> row_rect.<span style="color: #007788;">bottomLeft</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">x</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; qreal y <span style="color: #000080;">=</span> row_rect.<span style="color: #007788;">bottomLeft</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>.<span style="color: #007788;">y</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; x <span style="color: #000040;">*</span><span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; y <span style="color: #000080;">=</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">sheetHeight</span> <span style="color: #000040;">-</span> y <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; qreal height <span style="color: #000080;">=</span> row_rect.<span style="color: #007788;">height</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">yScale</span> <span style="color: #000040;">*</span><span style="color:#800080;">0.7</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; y <span style="color: #000040;">+</span><span style="color: #000080;">=</span> height<span style="color: #000040;">*</span><span style="color:#800080;">0.2</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawTextAligned</span><span style="color: #008000;">&#40;</span>file_path, std<span style="color: #008080;">::</span><span style="color: #007788;">move</span><span style="color: #008000;">&#40;</span>folio<span style="color: #008000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, y, height, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.95</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; QString heading <span style="color: #000080;">=</span> tr<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Titre&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>title <span style="color: #000080;">==</span> heading<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawTextAligned</span><span style="color: #008000;">&#40;</span>file_path, title,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, y, height, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawTextAligned</span><span style="color: #008000;">&#40;</span>file_path, title,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, y, height, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000ff;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawTextAligned</span><span style="color: #008000;">&#40;</span>file_path, std<span style="color: #008080;">::</span><span style="color: #007788;">move</span><span style="color: #008000;">&#40;</span>author<span style="color: #008000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, y, height, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">3.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; x <span style="color: #000040;">+</span><span style="color: #000080;">=</span> DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">drawTextAligned</span><span style="color: #008000;">&#40;</span>file_path, std<span style="color: #008080;">::</span><span style="color: #007788;">move</span><span style="color: #008000;">&#40;</span>date<span style="color: #008000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">0.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">3</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, y, height, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x <span style="color: #000040;">+</span> <span style="color:#800080;">5.02</span><span style="color: #000040;">*</span>DiagramFolioList<span style="color: #008080;">::</span><span style="color: #007788;">colWidths</span><span style="color: #008000;">&#91;</span><span style="color: #0000dd;">3</span><span style="color: #008000;">&#93;</span><span style="color: #000040;">*</span>row_rect.<span style="color: #007788;">width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">*</span>Createdxf<span style="color: #008080;">::</span><span style="color: #007788;">xScale</span>, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br /><span style="color: #008000;">&#125;</span><br />&nbsp;<br />QPointF ExportDialog<span style="color: #008080;">::</span><span style="color: #007788;">rotation_transformed</span><span style="color: #008000;">&#40;</span>qreal px, qreal py , qreal origin_x, qreal origin_y, qreal angle<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />&nbsp;<br />&nbsp; &nbsp; angle <span style="color: #000040;">*</span><span style="color: #000080;">=</span> <span style="color: #000040;">-</span><span style="color:#800080;">3.14159265</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">180</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">float</span> s <span style="color: #000080;">=</span> <span style="color: #0000dd;">sin</span><span style="color: #008000;">&#40;</span>angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">float</span> c <span style="color: #000080;">=</span> <span style="color: #0000dd;">cos</span><span style="color: #008000;">&#40;</span>angle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #666666;">// Vector to rotate:</span><br />&nbsp; &nbsp; qreal Vx <span style="color: #000080;">=</span> px <span style="color: #000040;">-</span> origin_x<span style="color: #008080;">;</span><br />&nbsp; &nbsp; qreal Vy <span style="color: #000080;">=</span> py <span style="color: #000040;">-</span> origin_y<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #666666;">// rotate vector</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">float</span> xnew <span style="color: #000080;">=</span> Vx <span style="color: #000040;">*</span> c <span style="color: #000040;">-</span> Vy <span style="color: #000040;">*</span> s<span style="color: #008080;">;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">float</span> ynew <span style="color: #000080;">=</span> Vx <span style="color: #000040;">*</span> s <span style="color: #000040;">+</span> Vy <span style="color: #000040;">*</span> c<span style="color: #008080;">;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">return</span> QPointF<span style="color: #008000;">&#40;</span>xnew <span style="color: #000040;">+</span> origin_x, ynew <span style="color: #000040;">+</span> origin_y<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span><br /><span style="color: #008000;">&#125;</span></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Fri, 23 Aug 2019 11:26:40 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10381#p10381</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10378#p10378</link>
			<description><![CDATA[<p> <span class="bbu"><strong>Compare qet format agains dxf :</strong></span></p><br /><p>&lt;elements&gt; = dwg blocks = symbols</p><p><strong>dxf/dwg layers </strong>: are used to make it posible (in acad) to switch on and off, if u have a drawing with a lot  of information, the you can show less or more information with turning layers on and off in acad, also usefull when defining printouts and you dont wont to show some information </p><p>These layer are definet in a Layer table</p><br /><p><strong>Line types</strong></p><p>The line types are also define into a table, so in the convertion to dxf we have to create a line type table with the acad names in it and use these names when creathing the nesecary </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Thu, 22 Aug 2019 19:18:52 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10378#p10378</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10377#p10377</link>
			<description><![CDATA[<p> Hi Lauret,</p><p>Try to explain wath we need to ceat dxf export (or import)</p><p>So i try to explain tha dxf parts with a example from the code of the exporter now.</p><p>These basic function are all working i think, if not we have to check whats be wrong on them.</p><p>How the current exporter is reading the qet file is for me not clear, i have to spent to match time to figure out how qet is prosesing the qet file.</p><p>We need to change the current sequence on how the dxf file is created and add some extra function to get it to work correctly.</p><p><img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /> </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Thu, 22 Aug 2019 19:10:13 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10377#p10377</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10362#p10362</link>
			<description><![CDATA[<p> Thanks Ronny.</p><p>but convertion not read the XML but the mapscene.<br />I hope Joshua can explain it better than me. ;-) </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Tue, 20 Aug 2019 17:13:32 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10362#p10362</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10347#p10347</link>
			<description><![CDATA[<p> Tables function</p><div class="codebox"><pre><code>Function_table () /* 2 things to write to dxf file */
{

to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;SECTION&quot;
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;TABLES&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;TABLE&quot; /* line type tables starts here */
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;LTYPE&quot; /* table entry */
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;330&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;70&quot;
to_dxf &lt;&lt; &quot;1&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;LTYPE&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;14&quot;
to_dxf &lt;&lt; &quot;330&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;ByBlock&quot;
to_dxf &lt;&lt; &quot;70&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;3&quot;
to_dxf &lt;&lt; &quot; &quot;
to_dxf &lt;&lt; &quot;72&quot;
to_dxf &lt;&lt; &quot;65&quot;
to_dxf &lt;&lt; &quot;73&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;40&quot;
to_dxf &lt;&lt; &quot;0.0&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;LTYPE&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;15&quot;
to_dxf &lt;&lt; &quot;330&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;ByLayer&quot;
to_dxf &lt;&lt; &quot;70&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;3&quot;
to_dxf &lt;&lt; &quot; &quot;
to_dxf &lt;&lt; &quot;72&quot;
to_dxf &lt;&lt; &quot;65&quot;
to_dxf &lt;&lt; &quot;73&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;40&quot;
to_dxf &lt;&lt; &quot;0.0&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;LTYPE&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;16&quot;
to_dxf &lt;&lt; &quot;330&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;Continuous&quot;
to_dxf &lt;&lt; &quot;70&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;3&quot;
to_dxf &lt;&lt; &quot;Solid line&quot;
to_dxf &lt;&lt; &quot;72&quot;
to_dxf &lt;&lt; &quot;65&quot;
to_dxf &lt;&lt; &quot;73&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;40&quot;
to_dxf &lt;&lt; &quot;0.0&quot;
to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;ENDTAB&quot;

to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;TABLE&quot; /* second layer tables */
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;LAYER&quot;
to_dxf &lt;&lt; &quot;5&quot;
to_dxf &lt;&lt; &quot;2&quot;





}</code></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Mon, 19 Aug 2019 19:37:04 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10347#p10347</guid>
		</item>
		<item>
			<title><![CDATA[Re: DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10346#p10346</link>
			<description><![CDATA[<p> Header function</p><div class="codebox"><pre><code>Header_function () /* step 1 things to write to dxf file */
{

to_dxf &lt;&lt; &quot;O&quot;
to_dxf &lt;&lt; &quot;SECTION&quot;
to_dxf &lt;&lt; &quot;2&quot;
to_dxf &lt;&lt; &quot;HEADER&quot;
to_dxf &lt;&lt; &quot;9&quot;
to_dxf &lt;&lt; &quot;$ACADVER&quot;
to_dxf &lt;&lt; &quot;1&quot;
to_dxf &lt;&lt; &quot;AC1015&quot;
to_dxf &lt;&lt; &quot;9&quot;
to_dxf &lt;&lt; &quot;$DWGCODEPAGE&quot;
to_dxf &lt;&lt; &quot;3&quot;
to_dxf &lt;&lt; &quot;ANSI_1252&quot;
to_dxf &lt;&lt; &quot;9&quot;
to_dxf &lt;&lt; &quot;$INSBASE&quot;
to_dxf &lt;&lt; &quot;10&quot;
to_dxf &lt;&lt; &quot;0.0&quot;
to_dxf &lt;&lt; &quot;20&quot;
to_dxf &lt;&lt; &quot;0.0&quot;
to_dxf &lt;&lt; &quot;30&quot;
to_dxf &lt;&lt; &quot;0.0&quot;


to_dxf &lt;&lt; &quot;0&quot;
to_dxf &lt;&lt; &quot;ENDSEC&quot;


}</code></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Mon, 19 Aug 2019 19:25:36 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10346#p10346</guid>
		</item>
		<item>
			<title><![CDATA[DXF import/export  coding]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10325#p10325</link>
			<description><![CDATA[<p> <span class="bbu"><strong>I try to explain how a dxf file is constructed and what have to be changed on exportdxf.cpp to get it working again.</strong></span></p><br /><p>if we take a look at the exportdxf.cpp file, a lot of the basic drawing types are there and maybe need some fine tunning on function of the changes that have to be made for the dxf export.</p><p>How is a dxf file constructed :</p><p>The file is devide into sections, each section is starting with a 0, SECTION, 2 HEADER<br /></p><div class="codebox"><pre><code>0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1012</code></pre></div><p>The key code in a dxf file = 0<br />followed by the command = SECTION<br />The code 2 give section name.</p><br /><p>if we take a look to createdxf.cpp : <span style="color: #808000">void</span> <span style="color: #800080">Createdxf</span>::dxfBegin (<span style="color: #808000">const</span> QString&amp; fileName)<br /><span style="color: #c0c0c0"> </span><br /></p><div class="codebox"><pre><code> QTextStream To_Dxf(&amp;file);
            To_Dxf &lt;&lt; 999           &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; &quot;QET&quot;         &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; 0             &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; &quot;SECTION&quot;     &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; 2             &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; &quot;HEADER&quot;      &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; 9             &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; &quot;$ACADVER&quot;    &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; 1             &lt;&lt; &quot;\r\n&quot;;
            To_Dxf &lt;&lt; &quot;AC1006&quot;      &lt;&lt; &quot;\r\n&quot;;</code></pre></div><br /><p>The linse 58-59 have to be removed, the are not neaded and telling autocad that it is not a acad created dxf file.</p><p>A good starting point for dxf codes :[url=https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3-htm.html] acad dxf codes<br />[/url]<br />see also <a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-3F0380A5-1C15-464D-BC66-2C5F094BCFB9-htm.html">numerical list o dxf codes</a><br />A dxf file have 7 sections, so we need to created for each section a function to file it.We don&#039;t need to use them all, just the one we need.</p><p>The following functions have to be created :<br /></p><ul><li><p><a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-EA9CDD11-19D1-4EBC-9F56-979ACF679E3C-htm.html">Header</a></p></li><li><p><a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-6160F1F1-2805-4C69-8077-CA1AEB6B1005-htm.html">Classes</a></p></li><li><p><a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-A9FD9590-C97B-4E41-9F26-BD82C34A4F9F-htm.html">Tables</a></p></li><li><p><a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-1D14A213-5E4D-4EA6-A6B5-8709EB925D01-htm.html">Blocks</a></p></li><li><p><a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-7D07C886-FD1D-4A0C-A7AB-B4D21F18E484-htm.html">Entities</a></p></li></ul><p>I we look to the existhing code, everthing is put into the dxf file like it is.</p><p>The major change that have to be made is that the titelblocks and elements used i a qet page has to be writen to the block section and be used in the entities section, it is the same way you are using them in qelectrotech.</p><p>If we take a look to a simple  qeletrotech project file :</p><div class="codebox"><pre><code>&lt;project folioSheetQuantity=&quot;0&quot; version=&quot;0.70&quot; title=&quot;&quot;&gt;
    &lt;properties&gt;
        &lt;property show=&quot;1&quot; name=&quot;saveddate&quot;&gt;2019-08-18&lt;/property&gt;
        &lt;property show=&quot;1&quot; name=&quot;savedfilepath&quot;&gt;C:/Users/ronny.desmedt/OneDrive/dxf/basic file.qet&lt;/property&gt;
        &lt;property show=&quot;1&quot; name=&quot;savedtime&quot;&gt;17:53&lt;/property&gt;
        &lt;property show=&quot;1&quot; name=&quot;savedfilename&quot;&gt;basic file&lt;/property&gt;
    &lt;/properties&gt;
    &lt;newdiagrams&gt;
        &lt;border cols=&quot;17&quot; rowsize=&quot;80&quot; displaycols=&quot;true&quot; displayrows=&quot;true&quot; colsize=&quot;60&quot; rows=&quot;8&quot;/&gt;
        &lt;inset filename=&quot;&quot; folio=&quot;%id/%total&quot; auto_page_num=&quot;&quot; version=&quot;&quot; author=&quot;&quot; locmach=&quot;&quot; title=&quot;&quot; date=&quot;null&quot; indexrev=&quot;&quot; displayAt=&quot;bottom&quot; plant=&quot;&quot;&gt;
            &lt;properties&gt;
                &lt;property show=&quot;1&quot; name=&quot;project&quot;&gt;&lt;/property&gt;
                &lt;property show=&quot;1&quot; name=&quot;file&quot;&gt;&lt;/property&gt;
            &lt;/properties&gt;
        &lt;/inset&gt;
        &lt;conductors type=&quot;multi&quot; color2=&quot;#000000&quot; function=&quot;&quot; tension-protocol=&quot;&quot; bicolor=&quot;false&quot; dash-size=&quot;2&quot; vertirotatetext=&quot;270&quot; condsize=&quot;1&quot; displaytext=&quot;1&quot; onetextperfolio=&quot;0&quot; vertical-alignment=&quot;AlignRight&quot; num=&quot;_&quot; numsize=&quot;7&quot; formula=&quot;&quot; horizrotatetext=&quot;0&quot; horizontal-alignment=&quot;AlignBottom&quot;/&gt;
        &lt;report label=&quot;%f-%l%c&quot;/&gt;
        &lt;xrefs&gt;
            &lt;xref type=&quot;commutator&quot; snapto=&quot;label&quot; displayhas=&quot;cross&quot; powerprefix=&quot;&quot; master_label=&quot;%f-%l%c&quot; delayprefix=&quot;&quot; showpowerctc=&quot;false&quot; slave_label=&quot;(%f-%l%c)&quot; switchprefix=&quot;&quot; offset=&quot;0&quot;/&gt;
            &lt;xref type=&quot;coil&quot; snapto=&quot;label&quot; displayhas=&quot;cross&quot; powerprefix=&quot;&quot; master_label=&quot;%f-%l%c&quot; delayprefix=&quot;&quot; showpowerctc=&quot;false&quot; slave_label=&quot;(%f-%l%c)&quot; switchprefix=&quot;&quot; offset=&quot;40&quot;/&gt;
            &lt;xref type=&quot;protection&quot; snapto=&quot;label&quot; displayhas=&quot;cross&quot; powerprefix=&quot;&quot; master_label=&quot;%f-%l%c&quot; delayprefix=&quot;&quot; showpowerctc=&quot;false&quot; slave_label=&quot;(%f-%l%c)&quot; switchprefix=&quot;&quot; offset=&quot;0&quot;/&gt;
        &lt;/xrefs&gt;
        &lt;conductors_autonums current_autonum=&quot;&quot; freeze_new_conductors=&quot;false&quot;/&gt;
        &lt;folio_autonums/&gt;
        &lt;element_autonums freeze_new_elements=&quot;false&quot; current_autonum=&quot;&quot;/&gt;
    &lt;/newdiagrams&gt;
    &lt;diagram freezeNewConductor=&quot;false&quot; title=&quot;&quot; colsize=&quot;60&quot; cols=&quot;17&quot; filename=&quot;&quot; date=&quot;null&quot; order=&quot;1&quot; height=&quot;660&quot; indexrev=&quot;&quot; auto_page_num=&quot;&quot; freezeNewElement=&quot;false&quot; displayrows=&quot;true&quot; version=&quot;0.70-RC2+474c94469d79751d3&quot; rows=&quot;8&quot; rowsize=&quot;80&quot; locmach=&quot;&quot; author=&quot;&quot; displaycols=&quot;true&quot; displayAt=&quot;bottom&quot; folio=&quot;%id/%total&quot; plant=&quot;&quot;&gt;
        &lt;properties&gt;
            &lt;property show=&quot;1&quot; name=&quot;project&quot;&gt;&lt;/property&gt;
            &lt;property show=&quot;1&quot; name=&quot;file&quot;&gt;&lt;/property&gt;
        &lt;/properties&gt;
        &lt;defaultconductor type=&quot;multi&quot; color2=&quot;#000000&quot; function=&quot;&quot; tension-protocol=&quot;&quot; bicolor=&quot;false&quot; dash-size=&quot;2&quot; vertirotatetext=&quot;270&quot; condsize=&quot;1&quot; displaytext=&quot;1&quot; onetextperfolio=&quot;0&quot; vertical-alignment=&quot;AlignRight&quot; num=&quot;_&quot; numsize=&quot;7&quot; formula=&quot;&quot; horizrotatetext=&quot;0&quot; horizontal-alignment=&quot;AlignBottom&quot;/&gt;
        &lt;elements&gt;
            &lt;element type=&quot;embed://import/10_electric/10_allpole/200_fuses&amp;amp;protective_gears/11_circuit_breakers/disjonct-m_2f.elmt&quot; z=&quot;10&quot; x=&quot;330&quot; prefix=&quot;F&quot; uuid=&quot;{4696d54d-0f44-409b-94c5-34fc2acfb74c}&quot; orientation=&quot;0&quot; y=&quot;320&quot; freezeLabel=&quot;false&quot;&gt;
                &lt;terminals&gt;
                    &lt;terminal id=&quot;0&quot; x=&quot;-10&quot; number=&quot;_&quot; nameHidden=&quot;0&quot; orientation=&quot;0&quot; y=&quot;-26&quot; name=&quot;_&quot;/&gt;
                    &lt;terminal id=&quot;1&quot; x=&quot;10&quot; number=&quot;_&quot; nameHidden=&quot;0&quot; orientation=&quot;0&quot; y=&quot;-26&quot; name=&quot;_&quot;/&gt;
                    &lt;terminal id=&quot;2&quot; x=&quot;-10&quot; number=&quot;_&quot; nameHidden=&quot;0&quot; orientation=&quot;2&quot; y=&quot;16&quot; name=&quot;_&quot;/&gt;
                    &lt;terminal id=&quot;3&quot; x=&quot;10&quot; number=&quot;_&quot; nameHidden=&quot;0&quot; orientation=&quot;2&quot; y=&quot;16&quot; name=&quot;_&quot;/&gt;
                &lt;/terminals&gt;
                &lt;inputs/&gt;
                &lt;elementInformations&gt;
                    &lt;elementInformation show=&quot;1&quot; name=&quot;formula&quot;&gt;&lt;/elementInformation&gt;
                &lt;/elementInformations&gt;
                &lt;dynamic_texts&gt;
                    &lt;dynamic_elmt_text text_width=&quot;-1&quot; Halignment=&quot;AlignLeft&quot; Valignment=&quot;AlignTop&quot; x=&quot;16&quot; font=&quot;Sans Serif,9,-1,5,0,0,0,0,0,0,normal&quot; rotation=&quot;0&quot; uuid=&quot;{da0adb6c-9a34-488e-bc13-06186c2ec811}&quot; y=&quot;-17.3334&quot; frame=&quot;false&quot; text_from=&quot;ElementInfo&quot;&gt;
                        &lt;text&gt;&lt;/text&gt;
                        &lt;info_name&gt;label&lt;/info_name&gt;
                    &lt;/dynamic_elmt_text&gt;
                &lt;/dynamic_texts&gt;
                &lt;texts_groups/&gt;
            &lt;/element&gt;
        &lt;/elements&gt;
        &lt;shapes&gt;
            &lt;shape is_movable=&quot;1&quot; type=&quot;Rectangle&quot; x1=&quot;530&quot; z=&quot;0&quot; closed=&quot;0&quot; y1=&quot;100&quot; ry=&quot;0&quot; y2=&quot;210&quot; rx=&quot;0&quot; x2=&quot;650&quot;&gt;
                &lt;pen color=&quot;#000000&quot; widthF=&quot;1&quot; style=&quot;SolidLine&quot;/&gt;
                &lt;brush color=&quot;#000000&quot; style=&quot;NoBrush&quot;/&gt;
            &lt;/shape&gt;
            &lt;shape is_movable=&quot;1&quot; type=&quot;Line&quot; x1=&quot;810&quot; z=&quot;0&quot; closed=&quot;0&quot; y1=&quot;190&quot; y2=&quot;470&quot; x2=&quot;550&quot;&gt;
                &lt;pen color=&quot;#000000&quot; widthF=&quot;1&quot; style=&quot;SolidLine&quot;/&gt;
                &lt;brush color=&quot;#000000&quot; style=&quot;NoBrush&quot;/&gt;
            &lt;/shape&gt;
        &lt;/shapes&gt;
    &lt;/diagram&gt;
    &lt;collection&gt;
        &lt;category name=&quot;import&quot;&gt;
            &lt;names&gt;
                &lt;name lang=&quot;pl&quot;&gt;Elementy importowane&lt;/name&gt;
                &lt;name lang=&quot;en&quot;&gt;Imported elements&lt;/name&gt;
                &lt;name lang=&quot;da&quot;&gt;Importerede elementer&lt;/name&gt;
                &lt;name lang=&quot;el&quot;&gt;Εισηγμένα στοιχεία&lt;/name&gt;
                &lt;name lang=&quot;fr&quot;&gt;Éléments importés&lt;/name&gt;
                &lt;name lang=&quot;nl&quot;&gt;Elementen geïmporteerd&lt;/name&gt;
                &lt;name lang=&quot;tr&quot;&gt;İthal öğeler&lt;/name&gt;
                &lt;name lang=&quot;es&quot;&gt;Elementos importados&lt;/name&gt;
                &lt;name lang=&quot;ru&quot;&gt;Импортированные элементы&lt;/name&gt;
                &lt;name lang=&quot;hr&quot;&gt;Uvezeni elementi&lt;/name&gt;
                &lt;name lang=&quot;de&quot;&gt;Importierte elemente&lt;/name&gt;
                &lt;name lang=&quot;sl&quot;&gt;Uvoženi elementi&lt;/name&gt;
                &lt;name lang=&quot;ca&quot;&gt;Elements importats&lt;/name&gt;
                &lt;name lang=&quot;cs&quot;&gt;Zavedené prvky&lt;/name&gt;
                &lt;name lang=&quot;pt&quot;&gt;elementos importados&lt;/name&gt;
                &lt;name lang=&quot;it&quot;&gt;Elementi importati&lt;/name&gt;
                &lt;name lang=&quot;ro&quot;&gt;Elemente importate&lt;/name&gt;
            &lt;/names&gt;
            &lt;category name=&quot;10_electric&quot;&gt;
                &lt;names&gt;
                    &lt;name lang=&quot;pl&quot;&gt;Elektrotechnika&lt;/name&gt;
                    &lt;name lang=&quot;en&quot;&gt;Electric&lt;/name&gt;
                    &lt;name lang=&quot;da&quot;&gt;Elektrisk&lt;/name&gt;
                    &lt;name lang=&quot;el&quot;&gt;Ηλεκτρικά&lt;/name&gt;
                    &lt;name lang=&quot;nl&quot;&gt;Elektrotechniek&lt;/name&gt;
                    &lt;name lang=&quot;fr&quot;&gt;Electrique&lt;/name&gt;
                    &lt;name lang=&quot;ru&quot;&gt;Электротехника&lt;/name&gt;
                    &lt;name lang=&quot;es&quot;&gt;Eléctrica&lt;/name&gt;
                    &lt;name lang=&quot;de&quot;&gt;Elektrik&lt;/name&gt;
                    &lt;name lang=&quot;it&quot;&gt;Elettrica&lt;/name&gt;
                    &lt;name lang=&quot;cs&quot;&gt;Elektrotechnika&lt;/name&gt;
                &lt;/names&gt;
                &lt;category name=&quot;10_allpole&quot;&gt;
                    &lt;names&gt;
                        &lt;name lang=&quot;pl&quot;&gt;Schematy wieloliniowe&lt;/name&gt;
                        &lt;name lang=&quot;en&quot;&gt;All-pole&lt;/name&gt;
                        &lt;name lang=&quot;da&quot;&gt;Flere ledere&lt;/name&gt;
                        &lt;name lang=&quot;el&quot;&gt;Πολυγραμμικό&lt;/name&gt;
                        &lt;name lang=&quot;fr&quot;&gt;Multifilaire&lt;/name&gt;
                        &lt;name lang=&quot;nl&quot;&gt;Veel polig&lt;/name&gt;
                        &lt;name lang=&quot;ru&quot;&gt;Многополюсные&lt;/name&gt;
                        &lt;name lang=&quot;es&quot;&gt;Multifilar&lt;/name&gt;
                        &lt;name lang=&quot;de&quot;&gt;Allpolig&lt;/name&gt;
                        &lt;name lang=&quot;cs&quot;&gt;Vícežilový&lt;/name&gt;
                        &lt;name lang=&quot;it&quot;&gt;Multifilare&lt;/name&gt;
                    &lt;/names&gt;
                    &lt;category name=&quot;200_fuses&amp;amp;protective_gears&quot;&gt;
                        &lt;names&gt;
                            &lt;name lang=&quot;pl&quot;&gt;Łączniki i zabezpieczenia&lt;/name&gt;
                            &lt;name lang=&quot;en&quot;&gt;Fuses and protective gears&lt;/name&gt;
                            &lt;name lang=&quot;da&quot;&gt;Sikringer og beskyttelsesudstyr&lt;/name&gt;
                            &lt;name lang=&quot;el&quot;&gt;Ασφάλειες και εξαρτήματα προστασίας&lt;/name&gt;
                            &lt;name lang=&quot;fr&quot;&gt;Fusibles et protections&lt;/name&gt;
                            &lt;name lang=&quot;nl&quot;&gt;Zekeringen en beveiligingen&lt;/name&gt;
                            &lt;name lang=&quot;ru&quot;&gt;Предохранители и элементы защиты&lt;/name&gt;
                            &lt;name lang=&quot;es&quot;&gt;Fusibles y protecciones&lt;/name&gt;
                            &lt;name lang=&quot;de&quot;&gt;Sicherungen und Schutzeinrichtungen&lt;/name&gt;
                            &lt;name lang=&quot;it&quot;&gt;Fusibili e protezioni&lt;/name&gt;
                            &lt;name lang=&quot;cs&quot;&gt;Tavné pojistky a ochrany&lt;/name&gt;
                        &lt;/names&gt;
                        &lt;category name=&quot;11_circuit_breakers&quot;&gt;
                            &lt;names&gt;
                                &lt;name lang=&quot;pl&quot;&gt;Wyłączniki&lt;/name&gt;
                                &lt;name lang=&quot;en&quot;&gt;Circuit-breakers&lt;/name&gt;
                                &lt;name lang=&quot;ar&quot;&gt;قواطع&lt;/name&gt;
                                &lt;name lang=&quot;da&quot;&gt;Afbryder&lt;/name&gt;
                                &lt;name lang=&quot;el&quot;&gt;Αυτόματοι διακόπτες&lt;/name&gt;
                                &lt;name lang=&quot;fr&quot;&gt;Disjoncteurs&lt;/name&gt;
                                &lt;name lang=&quot;nl&quot;&gt;Lastscheiders&lt;/name&gt;
                                &lt;name lang=&quot;ru&quot;&gt;Выключатели&lt;/name&gt;
                                &lt;name lang=&quot;es&quot;&gt;Disyuntores&lt;/name&gt;
                                &lt;name lang=&quot;de&quot;&gt;Leitungsschutzschalter und Lastschalter&lt;/name&gt;
                                &lt;name lang=&quot;cs&quot;&gt;Jističe&lt;/name&gt;
                                &lt;name lang=&quot;pt&quot;&gt;Disjuntores&lt;/name&gt;
                                &lt;name lang=&quot;it&quot;&gt;Relè termici&lt;/name&gt;
                            &lt;/names&gt;
                            &lt;element name=&quot;disjonct-m_2f.elmt&quot;&gt;
                                &lt;definition type=&quot;element&quot; hotspot_y=&quot;34&quot; version=&quot;0.4&quot; height=&quot;60&quot; width=&quot;40&quot; link_type=&quot;master&quot; hotspot_x=&quot;20&quot; orientation=&quot;dyyy&quot;&gt;
                                    &lt;uuid uuid=&quot;{AFE0F3B3-00EE-4EC2-9458-E7934876F42B}&quot;/&gt;
                                    &lt;names&gt;
                                        &lt;name lang=&quot;ar&quot;&gt;قطب ثنائي القطبية قطبين محميين&lt;/name&gt;
                                        &lt;name lang=&quot;de&quot;&gt;Leitungsschutzschalter 2P&lt;/name&gt;
                                        &lt;name lang=&quot;en&quot;&gt;Circuit-breaker&lt;/name&gt;
                                        &lt;name lang=&quot;es&quot;&gt;Disyuntor termico magnetico en 2P&lt;/name&gt;
                                        &lt;name lang=&quot;it&quot;&gt;Int. Aut. Magneto-termico 2P&lt;/name&gt;
                                        &lt;name lang=&quot;fr&quot;&gt;Disjoncteur bipolaire 2 poles proteges&lt;/name&gt;
                                        &lt;name lang=&quot;pl&quot;&gt;Wyłącznik&lt;/name&gt;
                                        &lt;name lang=&quot;nl&quot;&gt;Lastscheider 2&lt;/name&gt;
                                        &lt;name lang=&quot;cs&quot;&gt;Dvojpólový jistič 2 póly chránící&lt;/name&gt;
                                    &lt;/names&gt;
                                    &lt;kindInformations&gt;
                                        &lt;kindInformation show=&quot;1&quot; name=&quot;type&quot;&gt;protection&lt;/kindInformation&gt;
                                    &lt;/kindInformations&gt;
                                    &lt;informations&gt;Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license&lt;/informations&gt;
                                    &lt;description&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-12&quot; y1=&quot;-10&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:dashed;line-weight:thin;filling:none;color:black&quot; y2=&quot;-10&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;7&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-10&quot; y1=&quot;16&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;20&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-10&quot;/&gt;
                                        &lt;arc antialias=&quot;true&quot; angle=&quot;-180&quot; x=&quot;-14&quot; height=&quot;5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; width=&quot;8&quot; start=&quot;90&quot; y=&quot;10.5&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-10&quot; y1=&quot;8&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;10&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-10&quot;/&gt;
                                        &lt;polygon antialias=&quot;true&quot; x1=&quot;-10&quot; x3=&quot;-15&quot; y3=&quot;-20&quot; closed=&quot;false&quot; y1=&quot;3&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;0&quot; x2=&quot;-10&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-10&quot; y1=&quot;8&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;8&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-5&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-5&quot; y1=&quot;3&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;8&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-5&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-10&quot; y1=&quot;3&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;3&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-5&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;10&quot; y1=&quot;16&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;20&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;10&quot;/&gt;
                                        &lt;polygon antialias=&quot;true&quot; x1=&quot;10&quot; x3=&quot;5&quot; y3=&quot;-20&quot; closed=&quot;false&quot; y1=&quot;3&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;0&quot; x2=&quot;10&quot;/&gt;
                                        &lt;input tagg=&quot;label&quot; size=&quot;9&quot; x=&quot;16&quot; y=&quot;-6.3334&quot; text=&quot;_&quot;/&gt;
                                        &lt;arc antialias=&quot;true&quot; angle=&quot;-180&quot; x=&quot;6&quot; height=&quot;5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; width=&quot;8&quot; start=&quot;90&quot; y=&quot;10.5&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;-10&quot; y1=&quot;-30&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-20&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-10&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;10&quot; y1=&quot;8&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;10&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;10&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;10&quot; y1=&quot;8&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;8&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;15&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;15&quot; y1=&quot;3&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;8&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;15&quot;/&gt;
                                        &lt;line antialias=&quot;true&quot; x1=&quot;-8&quot; y1=&quot;-22&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-18&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-12&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;10&quot; y1=&quot;3&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;3&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;15&quot;/&gt;
                                        &lt;line antialias=&quot;true&quot; x1=&quot;-12&quot; y1=&quot;-22&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-18&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;-8&quot;/&gt;
                                        &lt;line antialias=&quot;false&quot; x1=&quot;10&quot; y1=&quot;-30&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-20&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;10&quot;/&gt;
                                        &lt;line antialias=&quot;true&quot; x1=&quot;12&quot; y1=&quot;-22&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-18&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;8&quot;/&gt;
                                        &lt;line antialias=&quot;true&quot; x1=&quot;8&quot; y1=&quot;-22&quot; end2=&quot;none&quot; length2=&quot;1.5&quot; style=&quot;line-style:normal;line-weight:normal;filling:none;color:black&quot; y2=&quot;-18&quot; length1=&quot;1.5&quot; end1=&quot;none&quot; x2=&quot;12&quot;/&gt;
                                        &lt;terminal x=&quot;-10&quot; orientation=&quot;n&quot; y=&quot;-30&quot;/&gt;
                                        &lt;terminal x=&quot;10&quot; orientation=&quot;s&quot; y=&quot;20&quot;/&gt;
                                        &lt;terminal x=&quot;10&quot; orientation=&quot;n&quot; y=&quot;-30&quot;/&gt;
                                        &lt;terminal x=&quot;-10&quot; orientation=&quot;s&quot; y=&quot;20&quot;/&gt;
                                    &lt;/description&gt;
                                &lt;/definition&gt;
                            &lt;/element&gt;
                        &lt;/category&gt;
                    &lt;/category&gt;
                &lt;/category&gt;
            &lt;/category&gt;
        &lt;/category&gt;
    &lt;/collection&gt;
&lt;/project&gt;</code></pre></div><ul><li><p>&lt;properties&gt; : some parts belong to header section of a dxf file</p></li><li><p>&lt;newdiagrams&gt;: if this the basic titelblock definition then i belong to the block section an will be used in the entitie section with a &quot;INSERT&quot; dxf type</p></li><li><p>&lt;elements&gt; : use in the entitie section with a &quot;INSERT&quot; dxf type</p></li><li><p>&lt;shapes&gt; : these will be directly used in the entitie section</p></li><li><p>&lt;collection&gt; : these will alle be placed into the block section and used in the entitie section with the &quot;INSERT&quot; dxf type</p></li></ul><p>DXF coding exist of to lines i a dxf file, a code line and a value line:</p><ul><li><p>code 10 (11-18) : x coordinate</p></li><li><p>code 20 (21-28) : y coordinate</p></li><li><p>code 30 (31-38) : z coordinate</p></li></ul><p>For example a line : </p><ul><li><p>10 : value : x start point</p></li><li><p>20 : value : y start point</p></li><li><p>11 : value : x end point</p></li><li><p>21 : value : y end point</p></li></ul><p><strong>Header section</strong></p><div class="codebox"><pre><code> 0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1015
  9
$ACADMAINTVER
 70
    20
  9
$DWGCODEPAGE
  3
ANSI_1252
  9
$INSBASE
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMIN
 10
-0.0000065245499172
 20
-92.07012943410845
 30
0.0
  9
$EXTMAX
 10
245.7932157966029
 20
92.03646890741342
 30
0.0
  </code></pre></div><p>Every section starts with :<br /></p><ul><li><p>0</p></li><li><p>SECTION</p></li><li><p>2</p></li><li><p>HEADER</p></li><li><p>....</p></li></ul><p>and ends with<br /></p><ul><li><p>0</p></li><li><p>ENDSEC</p></li></ul><p>every header items starts with code 9 (only used in the header section)<br /></p><ul><li><p>9 <span style="color: #3333ff">: start code</span></p></li><li><p>$ACADVER <span style="color: #ff3333">: acad settings variable name</span></p></li><li><p>1<span style="color: #3333ff"> : Primary text value for an entity </span></p></li><li><p>AC1015<span style="color: #ff3333"> : value for code 1</span></p></li><li><p>9<span style="color: #3333ff"> : next start code for a acad settings variable</span></p></li></ul><p><span style="color: #333333">base point of a acad.dxf/dwg drawing (this must be in the export file)<br /></span></p><br /><ul><li><p><span style="color: #333333">9</span></p></li><li><p><span style="color: #333333">$INSBASE</span></p></li><li><p><span style="color: #333333">10 [color=#ff3333]: x reference</span>[/color]</p></li><li><p><span style="color: #333333">0.0 [color=#3333ff]: value of x</span>[/color]</p></li><li><p><span style="color: #333333">20 : [color=#ff3333]y reference</span>[/color]</p></li><li><p><span style="color: #333333">0.0 : [color=#3333ff]value of y</span>[/color]</p></li><li><p><span style="color: #333333">30 : [color=#ff3333]z reference</span>[/color]</p></li><li><p><span style="color: #333333">0.0 : [color=#3333ff]value of z</span>[/color]</p></li></ul><p>In DXF TABLES SECTION we need to create following tables :</p><ul><li><p>BLOCK_RECORD (posible needed, have to checkout this table)</p></li><li><p>LAYER</p></li><li><p>LTYPE</p></li></ul><p><strong><span class="bbu">Layer table</span></strong></p><p>We created layers to separate qet sections:</p><ul><li><p>Titelblock</p></li><li><p>Elements</p></li><li><p>Text</p></li><li><p>Shapes</p></li><li><p>....</p></li></ul><p>Everithing of a titelblock wil be drawn on the layer &quot;Titelblock&quot; and so on for the other types.</p><p><span class="bbu"><strong>LTYPE table</strong></span></p><p>This table is used to converd the QET line types to acad line types</p><br /><p><span class="bbu"><strong>exportdxf.CPP</strong></span></p><br /><p>connectors will be transformet to<a href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-DXF/files/GUID-9C6AD32D-769D-4213-85A4-CA9CCB5C5317-htm.html"> points in DXF</a></p><div class="codebox"><pre><code>0
SECTION
2
ENTITIES
0
POINT
8
0
10
111.9573116635928
20
4.929017205688296
30
0
6
Continuous</code></pre></div><br /><p>these points positions will be neded to convert the connector lines to dxf.</p><p>A symbol with connectors is insert at coordinates x,Y and the connector is relatief to these insert points (this is for both systems the same) so for drawing a line between to connectors we have to calculate the exact positions of the two connectors and the draw a  polyline with 3 x,y points</p><div class="codebox"><pre><code>0
LWPOLYLINE
5
31C1
330
1F
100
AcDbEntity
  8
0
  6
Continuous
100
AcDbPolyline
 90
        5
 70
     0
 43
0.364575
 10
111.9573116635928
 20
4.929017205688296
 10
116.9052366635928
 20
4.929017205688296
 10
116.9052366635928
 20
-14.7584827943117
 10
111.9573116635928
 20
-14.7584827943117
 10
111.9573116635928
 20
4.929017205688296</code></pre></div><p>Like you can see we need tree times code 10 and 20 to define a polyline </p>]]></description>
			<author><![CDATA[null@example.com (rdsivd)]]></author>
			<pubDate>Sun, 18 Aug 2019 14:25:13 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10325#p10325</guid>
		</item>
	</channel>
</rss>
