Incorrect plotting of dxf files #1178
-
Hi, I am trying to plot simple dxf files with a variety of shapes. For some reason (when dxf files contain the entities arcs or circles), some entities seem to be plotted wrong. For some dxf files this behaviour seems to be quite random as e.g. in the same plot, some arcs can be plotted correctly on the positive plane, while others seem to be mirrored (x=-x). Adding x=-x however would mess up the correctly plotted entities, so this would not be a solution. Also, when plotting some dxf files, there is no problem at all. The problem seems to occur due to the use of dxf.center. Is this a known problem or am I using it wrong? I added screenshots of this behaviour below and the code i use for this part is as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Are you aware of the ezdxf drawing add-on? Have you compared your implementation with that to see where the logic differs? |
Beta Was this translation helpful? Give feedback.
-
Could you provide a link to what you mean? I basically only need to plot dxf files correctly for this part, so if this already available somewhere, other logic would be fine as well. |
Beta Was this translation helpful? Give feedback.
-
You have to take the Object Coordinate System (OCS) into account. |
Beta Was this translation helpful? Give feedback.
You have to take the Object Coordinate System (OCS) into account.
Please read this: https://ezdxf.mozman.at/docs/concepts/ocs.html