Search code examples
autocadcaddxf

DXF file's circle coordinates changed its sign in text data


When this ASCII .dxf file is opened in software like AutoCAD, (x,y)coordinate of circle-center is positive signed. But, when I read the file in text data using note++ software, x coordinate of circle changed its sign to negative(at line number 5250) while line coordinates remains the same, that is, the circle origin changes from (91.7577, 103.4859) to (-91.757655,103.48592) in text. I have tried other dxf file's including circles and lines, but there is no changes in sign. Is there something that triggered to change the sign of x in circle while reading the data in text?

In DraftSight Software, the circle is between two vertical lines, but when I take the coordinates of entities from text data and plot in Geogebra, the circle is outside the two vertical lines. enter image description here


Solution

  • Check the normal (code 210). May be it's reversed (0 0 -1). Also if you circle is in the BLOCKS section, it can be part of a block inserted with a negative scale.