Menu

#493 Open file by command line differs from file open by menu

2.0
open-fixed
nobody
5
2015-10-21
2015-01-04
LordOfBikes
No

As discussed in the forum, when open the attached file by command line argument some entities (polylines) are missing.

OP used Win 7, same on Ubuntu 14.04, with different LC versions (1.0.2, 2.0.6, 2.0.7)

To reproduce follow this steps:

  • fire up a terminal
  • call librecad schematic.dxf
  • the small circles in the line intersections are missing
  • close the file
  • open it again using the file open dialog
  • the circles are present now
  • don't use the recent files list, because the circles are not shown too then

The missing entities are polylines, lines and circles are shown correct in both ways.

1 Attachments

Discussion

  • Dongxu Li

    Dongxu Li - 2015-01-05

    the bug is due to dxf file version detection, which returns dxf1 version by default, while dxfrw version is needed for schematic.dxf.

    pushed a fix in master branch: https://github.com/LibreCAD/LibreCAD/commit/07afe84a0b0f02a40a350449e6a7bf6dc45322cb

    the default for dxf is by dxfrw now, and to use dxf1, it's required to use File->Open and specify DXF 1.0 for file format.

     
  • LordOfBikes

    LordOfBikes - 2015-01-06
    • status: open-accepted --> open-fixed
     
  • Dongxu Li

    Dongxu Li - 2015-01-06

    need more work on dxf version detection

     
  • efa

    efa - 2015-10-21

    On LibreCAD 2.0.8 I got empty circles with Open dialog too "Drawing Exchange (.dxf)".
    Forcing "QCad 1.x file (.dxf)" I got no circle at all.

     

Log in to post a comment.