Comment 11 for bug 657284

Revision history for this message
Alvin Penner (apenner) wrote :

yes, this file is readable by both QCad and Inkscape. I gather that your QCad is slightly older than mine. Yours is dxflib 2.0.4.8 and mine is dxflib 2.1.2.0 in the dxf file.

This file displays quite reasonably if I use automatic scaling on import. The problem with automatic scaling is that one does not know what the scale factor is, so the file contains this factor as an svg:desc element which is:
C:\WINDOWS\Temp\topo-QCad.dxf - scale = 28.649385
When using automatic scaling, both the scale and the origin are specified using the EXTMIN and EXTMAX values.

If you use manual scaling then the origin will be far below the bottom of the page. Neither EXTMIN nor EXTMAX are used in this case. The reason was that I encountered some files previously that had outrageously large values for these parameters so I was not able to use them for manual scaling.

However, I think there may be a solution by allowing the choice of scale and the choice of origin to be two separate choices, not tied together as they currently are. In this case the origin is apparently chosen very well by the automatic scaling routine, but unfortunately one would like to specify the size scale manually (independently), in order to achieve proper engineering units, for example. So if I can solve the problem by making these into two separate choices, that would be fairly straightforward to implement.