Bug 86206 - Exporting a SolidWorks DXF to SVG breaks dashed lines
Summary: Exporting a SolidWorks DXF to SVG breaks dashed lines
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2014-11-12 15:10 UTC by Panagiotis Issaris
Modified: 2024-04-09 17:00 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
The dashed lines in the ODG (48.43 KB, image/png)
2014-11-12 15:11 UTC, Panagiotis Issaris
Details
The dashed thin lines as exported by LibreOffice Draw (95.95 KB, image/png)
2014-11-12 15:12 UTC, Panagiotis Issaris
Details
Original DXF drawing from SolidWorks (324.16 KB, image/vnd.dxf)
2014-11-21 15:35 UTC, Panagiotis Issaris
Details
Test case test1.odg (9.77 KB, application/vnd.oasis.opendocument.graphics)
2023-01-12 17:19 UTC, Roland Baudin
Details
Test case test1.svg (9.05 KB, image/svg+xml)
2023-01-12 17:19 UTC, Roland Baudin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Issaris 2014-11-12 15:10:16 UTC
When exporting a Drawing to SVG, the dashed thin lines appear as thick full lines.

So, the ODG in LibreOffice looks fine, opening the SVG in Firefox 33.2, Inkscape 0.48.2 and Chrome 38.0 shows the dashed lines as full lines.
Comment 1 Panagiotis Issaris 2014-11-12 15:11:29 UTC
Created attachment 109347 [details]
The dashed lines in the ODG
Comment 2 Panagiotis Issaris 2014-11-12 15:12:06 UTC
Created attachment 109349 [details]
The dashed thin lines as exported by LibreOffice Draw
Comment 3 V Stuart Foote 2014-11-12 16:10:19 UTC
@Panagiotis,

The PNG clips are fine--we can see the issue. But, please clip out a portion of the problem .ODG and save to a new .ODG drawing, verify that it continues to have the issue, and then attach the sample to this bug so we can check if we can reproduce the issue.

Stuart
Comment 4 Panagiotis Issaris 2014-11-12 17:00:51 UTC
Hi Stuart,

As soon as I right-click and select "Break", the dashed lines turn into solid thicker lines. So, I do not know how to simplify the drawing. It should be noted that I did not create the drawings myself, a person in the company I am currently working for drew it using SolidWorks.
Comment 5 Panagiotis Issaris 2014-11-12 17:02:19 UTC
Oh, and the ODG I was using was imported from a SolidWorks DXF export.
Comment 6 V Stuart Foote 2014-11-14 20:29:08 UTC
@Panagiotis,

Are you able to attach the .DXF? Or the .ODG?
Comment 7 Panagiotis Issaris 2014-11-21 15:35:00 UTC
Created attachment 109803 [details]
Original DXF drawing from SolidWorks
Comment 8 Panagiotis Issaris 2014-11-21 15:36:45 UTC
Yes, I've just attached the original file.

Apologies for the delay, I had to verify that I was allowed to upload it.
Comment 9 Buovjaga 2014-11-27 13:26:16 UTC
Reproduced.

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: b144f0ac8695dd62a2053b4e88212d0b109c9a41
TinderBox: Win-x86@51-TDF, Branch:MASTER, Time: 2014-11-25_00:14:54
Comment 10 QA Administrators 2015-12-20 16:15:08 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2017-01-03 19:49:09 UTC Comment hidden (obsolete)
Comment 12 eisa01 2017-08-26 14:28:03 UTC
Can replicate the issue on both Mac and Windows, so setting OS to all

Adding to the block of the SVG save metabug

Version: 5.4.0.3
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
Locale: en-US (en_US.UTF-8); Calc: group

Version: 5.4.0.3 (x64)
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
CPU threads: 1; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group
Comment 13 V Stuart Foote 2017-08-26 17:03:12 UTC
Also present on Windows builds of current master.

Export to PDF, or Ghostscript based print to PDF correctly handle the dashed lines, but the SVG exports only solid lines.

On Windows 10 Home 64-bit en-US with
Version: 6.0.0.0.alpha0+ (x64)
Build ID: c420f36d9a19bb0b9da5cefa0c1b54b60ccb41a8
CPU threads: 4; OS: Windows 6.19; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-08-26_00:07:29
Locale: en-US (en_US); Calc: CL
Comment 14 Roman Kuznetsov 2018-06-20 19:45:16 UTC
still repro in 6.1 beta 1
Comment 15 QA Administrators 2019-06-21 02:53:59 UTC Comment hidden (obsolete)
Comment 16 eisa01 2019-08-10 20:39:03 UTC
Still present

Version: 6.4.0.0.alpha0+
Build ID: 54028dc503fc08eb12e287919d5e2850cff05b73
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2019-07-31_01:48:19
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 17 QA Administrators 2021-08-10 03:49:02 UTC Comment hidden (obsolete)
Comment 18 James Harkins 2021-11-03 05:30:00 UTC
I have just encountered this bug, 2021-November -- therefore it is still a current bug.

1. New odg.
2. Add a line.
3. Set it to dashed style.
4. Export to SVG.
5. The SVG line is not dashed -- it's solid.
Comment 19 daviding 2022-01-02 18:34:48 UTC
Seems similar to ...
Bug 146527 - SVG: Ellipse dotted line in ODG exports to SVG as solid 
... at https://bugs.documentfoundation.org/show_bug.cgi?id=146527 .
Comment 20 dainius.mazuika 2022-02-28 09:32:32 UTC
Faced the same bug today

Version: 7.3.0.1 (x64) / LibreOffice Community
Build ID: 840fe2f57ae5ad80d62bfa6e25550cb10ddabd1d
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 21 Roman Kuznetsov 2022-11-01 18:54:33 UTC
*** Bug 148179 has been marked as a duplicate of this bug. ***
Comment 22 Rajasekaran Karunanithi 2022-11-16 22:37:24 UTC
Still reproducable in LO 7.4.2.3 under Windows 10(x64).

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ta-IN (en_IN); UI: en-US
Calc: threaded
Comment 23 Roland Baudin 2023-01-12 17:18:57 UTC Comment hidden (off-topic)
Comment 24 Roland Baudin 2023-01-12 17:19:32 UTC Comment hidden (off-topic)
Comment 25 Roland Baudin 2023-01-12 17:19:55 UTC Comment hidden (off-topic)
Comment 26 pglpm 2023-06-06 22:52:03 UTC
Same bug appears in Impress:

Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 16; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 27 Stéphane Guillou (stragu) 2023-07-04 16:05:22 UTC
Comment 24 / comment 25 is a different issue:

(In reply to Roland Baudin from comment #24)
> Created attachment 184620 [details]

With this attachment, the exported SVG has the thin dashed line as numerous single paths, and the thick dashed line as a single path.
Not sure why the two lines gives different results, given that they use the same stroke settings except for the width (0 vs 0.08 cm).

However, that's a regression from commit b71d9a6d15cfb8a50afdea5ac064f40d84c561f8, already tracked in bug 155211 (bibisected with linux-64-7.2 repo).

---

Regarding the original issue, I can reproduce with the DXF attachment in OOo 3.3, so marking as inherited. (Same with the breaking observation in comment 4.)

Still the case in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ec60d354359067f8c5c686ef2239ee705916de43
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

(and the lines are way too thick)
Comment 28 Stéphane Guillou (stragu) 2023-11-08 13:58:16 UTC
LibreCAD 2.2.1 only displays the horizontal guidelines as dashed, but also exports everything solid to SVG.

Inkscape 1.3, FreeCAD 0.21.1 only display the model when importing the DXF, no dimensions layer. That might be because they are blocks and not proper dimensions...
Comment 29 erry 2024-04-09 17:00:02 UTC Comment hidden (spam)