<div dir="ltr"><div>Hi all,</div><div>Sorry for a somewhat long post, but here we go:<br></div><div>I am converting a .dxf having a sequence of simple lines and arcs which form a continuous (poly)line, (correctly) ordered by EntityHandle. The arcs are converted (to shp) as well as displayed (Qgis) in the opposite direction as the simple lines. Checking the codes and docs, this appears wrong.</div><div>Below the minimal relevant information, I can add the complete .dxf, but I think attached files are frowned upon?</div><div><br></div><div>Docs cited:<br><a href="https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-0B14D8F1-0EBA-44BF-9108-57D8CE614BC8">https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-0B14D8F1-0EBA-44BF-9108-57D8CE614BC8</a><br>ARC (DXF)     <br>The following group codes apply to arc entities.      <br>Arc group codes       <br>Group code    Description <br>100               Subclass marker (AcDbCircle) <br>39               Thickness (optional; default = 0) <br>10          Center point (in OCS) DXF: X value; APP: 3D point<br>20, 30               DXF: Y and Z values of center point (in OCS) <br>40               Radius<br>100             Subclass marker (AcDbArc)<br>50           Start angle<br>51         End angle<br>210          Extrusion direction (optional; default = 0, 0, 1) DXF: X value; APP: 3D vector<br>220, 230        DXF: Y and Z values of extrusion direction (optional) <br><br><a href="https://ezdxf.readthedocs.io/en/stable/tutorials/dxf_primitives.html">https://ezdxf.readthedocs.io/en/stable/tutorials/dxf_primitives.html</a><br>The arc goes always in counter-clockwise orientation around the z-axis more precisely the extrusion vector of OCS, but this is beyond the scope of this tutorial.<br><br>The case (extracted, whole .dxf file available):<br>AcDbEntity<br>  8<br>0000-001_09_AND1N<br>  6<br>Continuous<br> 62<br>    18<br>100<br>AcDbCircle<br> 10<br>130974.661837<br> 20<br>497502.478468<br> 30<br>0.0<br> 40<br>7576.094430000001<br>100<br>AcDbArc<br> 50<br>305.5444330000001<br> 51<br>344.795475<br>  0<br>LINE<br>  5<br>2E<br>330<br>1A0<br>100<br><br>The arc is converted (.shp) and drawn (qgis) from end angle to start angle, without a 210 code to alter default behavior, which obviously is the other way around, noting counter clock around (positive) Z-axis.<br>The applicability of this convention also follows from the (correct) position of the arc in the conversion and drawing.<br>Only begin- and endpoints are interchanged.</div><div><br></div><div>Please advice,</div><div>Thanks in advance,</div><div>Jan<br></div></div>