DXF import missing/wrong dimension, arrow and decimal value added.

Bug #764387 reported by tatankam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

Hallo.
When I import a dxf, some dimension are strange : the dxf import added a decimal (es. 49 become 49.0 ) even if there wasn't in the original, and the arrows are missing, and some orizonthal and vertical line of the dimension are missing.

See
In the attachment orig.zip you see.
1) original.dxf : the dxf to import
2) screenshot.jpg : screenshot of the original.dxf opened with eDrawings Solidworks
3) original.swf : generated from the original.dxf

thanks for your help.
Mario

Tags: dxf importing
Revision history for this message
tatankam (tatankam) wrote :
su_v (suv-lp)
tags: added: dxf importing
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.1 and 0.48+devel r10178 on OS X 10.5.8

Notes:
1) The diagonal 'ticks' used to mark the dimensioning lines (as well as their default line width) are scaled far smaller in current trunk than in Inkscape 0.48.1.
2) From inspecting the DXF file in DraftSight, the properties for the dimension values (e.g. regarding the precision, or display of leading/trailing zeros) can be set globally as well as individually for each dimension measured. Providing full support for these apparently vast number of options might be beyond Inkscape's scope (certainly as long as Inkscape doesn't provide a native feature for parameterized dimensions like CAD-programs).

Setting bug status to 'Wishlist' - a feature request to provide better support for dimensions when importing DXF files from CAD applications.

Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

    This is somewhat off-topic, but I have attached a modified version of the dxf input to try to address a few long-standing issues. The attached version contains a new adjustable origin position, in units of the source dxf document. This origin is used only when manual scaling is specified. Also, in this version, the anchor point used when scaling the drawing is the lower left corner, not the top left. I believe this addresses the issue mentioned previously in Bug 657284, comment 6.
https://bugs.launchpad.net/inkscape/+bug/657284/comments/6

    Using this method, the file 'original.dxf' was imported, using the manual settings : scale = 1.8, xmin = -62, ymin = - 40, result attached. This was done to try to address the issue of Bug 685707, comment 12 (gray lines are larger than the original).
https://bugs.launchpad.net/inkscape/+bug/685707/comments/12
When scaling objects, the behaviour of Inkscape will be different than AutoCad. Inkscape will normally scale linewidths so they grow with the document as it is scaled up, while in AutoCad, and also in the dxf import routine, the linewidth will stay constant during scaling. By scaling the drawing up during import, not in Inkscape, the originally narrow line width has been retained in the attached drawing.

    Finally the issue of markers on the dimensioning lines. Here I do not know what to do. The size of the markers was originally chosen to match as closely as possible the drawing EG-dxf-r14-mayer-hk.dxf (exact origin forgotten) and also the drawing Erdgeschoss.dxf from Christian Mayer. These drawings contained a great deal of very fine detail, so the markers were defined to be small. These markers can actually be edited in Inkscape, in the Fill and Stroke dialog. Open the attached drawing, and select a line with markers. In the Fill and Stroke dialog, in the Stroke Style tab, the Start Markers and End Markers will both be shown as DistanceX, which is the custom marker created during the import. If the style is wrong, you can choose a different one from the menu. Unfortunately, I do not know how to change the size of a marker inside Inkscape, other than editing it in the XML editor in the defs section of the document. The ideal result, I think, would be if it were possible to choose a marker element from the Fill and Stroke dialog during import, but I do not know how to implement such a communication system, perhaps a verb would need to be created to do this.

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

committed to bzr rev 10192

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.