Dashed lines not showing when printing

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
jon925
Posts: 5
Joined: Mon Apr 19, 2021 11:58 am

Dashed lines not showing when printing

Post by jon925 »

OS: Linux Mint 20.1 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.24693 (Git) AppImage
Build type: Release
Branch: master
Hash: e01f0d25d5f3ef9ceb66aa087212121e9f2f2e8b
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United Kingdom (en_GB) &

FreeCAD_0.19-22756-Linux-Conda_glibc2.12-x86_64.AppImage

Not sure if I am doing something wrong but when I print out (hidden line style) dashed lines they are shown as continuous.Print preview
shows them correctly.
I have printed out dashed lines in LibreOfficeDraw and they are shown correctly.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Dashed lines not showing when printing

Post by jmaustpc »

Welcome to FreeCAD.

Can you please attach a file that demonstrates the issue?
jon925
Posts: 5
Joined: Mon Apr 19, 2021 11:58 am

Re: Dashed lines not showing when printing

Post by jon925 »

I am attaching screenshot and its relevant file.
Thanks.
Attachments
Fan-Support.svg
(100.8 KiB) Downloaded 73 times
M25-209-Fan-Support x4.FCStd
(33.6 KiB) Downloaded 56 times
mendy
Posts: 262
Joined: Mon May 21, 2018 2:16 pm

Re: Dashed lines not showing when printing

Post by mendy »

Hi just confirming works here in

OS: Ubuntu 20.04.2 LTS (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.24720 (Git) AppImage
Build type: Release
Branch: master
Hash: 8b0c58d1b45017ad42bf0fa8f827f1cf22a398e7
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)

Did have to change my setting in edit preferences techdraw. Mine was set to solid. Changed to dashed and had to close page and reopen to show
dashed lines. Prints out ok for me.
Attachments
hl.jpg
hl.jpg (75.44 KiB) Viewed 3181 times
jon925
Posts: 5
Joined: Mon Apr 19, 2021 11:58 am

Re: Dashed lines not showing when printing

Post by jon925 »

Thanks but already had this showing in my preferences.
If I print to file and then view, the dashed lines are shown as solid.
If I export to PDF the dashed lines are shown as solid.
I have even updated my weekly build but the results are the same.
Thanks for your time but I think this maybe a bug.
mendy
Posts: 262
Joined: Mon May 21, 2018 2:16 pm

Re: Dashed lines not showing when printing

Post by mendy »

Did still have the original version you posted and verified that in all the scenarios you list it views and prints properly. Also same resulst in the 0.19 276. Even printed to a different printer. Use Brother Laser and Epson Inkjet.
Possibly you may have a problem in your configuration files. You can back up then delete and restart FreeCAD. New ones will be generated. You can always copy the backed up files back.
Mine are located in home/user name/.FreeCAD user.cfg and system.cfg
And in home/user name/.config/FreeCAD/FreeCAD.conf
Other than that don't have any other idea as your file works correctly in three different versions on my system.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Dashed lines not showing when printing

Post by jmaustpc »

When I first opened your file it did not work for me since my "hidden lines" setting was not set to dashed. However when I changed the setting to dashed, closed the techdraw page and opened it again, then it worked both with Export PDF and print then select print to file pdf (that is a PDF printer in my O/S)

first two with the FreeCAD TechDraw Hidden Lines setting not dashed
hiddenlines_exporttopdf.pdf
(13.05 KiB) Downloaded 74 times
hiddenlines_print_to_pdf.pdf
(13.05 KiB) Downloaded 57 times

Second two with the FreeCAD TechDraw Hidden Lines setting set to dashed
hiddenlines_exporttopdf2_dashed.pdf
(13.09 KiB) Downloaded 72 times
hiddenlines_print_to_pdf2_dashed.pdf
(13.09 KiB) Downloaded 59 times
I changed the setting as mendy said.
Screenshot_20210420_232304.png
Screenshot_20210420_232304.png (124.1 KiB) Viewed 3105 times

this setting specifically
Screenshot_20210420_232413.png
Screenshot_20210420_232413.png (8.88 KiB) Viewed 3105 times
I changed this to Dashed (closed and opened the TechDraw Page) and then it worked
Screenshot_20210421_000758.png
Screenshot_20210421_000758.png (8.19 KiB) Viewed 3103 times
this is a zoom in screen shot of the hidden lines dashed in FreeCAD.
Screenshot_20210420_232530.png
Screenshot_20210420_232530.png (8 KiB) Viewed 3105 times

Since you are on Mint, you might be able to install the PPA version of FreeCAD from either the Daily or Stable Ubuntu PPAs. The problem may be just in the Appimage version of FreeCAD.

OS: Ubuntu 20.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.stable PPA
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/Australia (en_AU)
jon925
Posts: 5
Joined: Mon Apr 19, 2021 11:58 am

Re: Dashed lines not showing when printing

Post by jon925 »

Thanks mendy and jmaustpc.
I now have the dashed lines showing in the TechDraw section.
The only software that shows the saved PDF correctly that I have is Scribus,but Scribus will not print it out unless I save as a PNG image.
However if I print from scribus a TechDraw PDF that does not have dashed lines it prints correctly.
So I can only assume that my printer which is quite old is not up to the job.
Thanks to both of you and I hope I have not wasted too much of your time.
jon925
Posts: 5
Joined: Mon Apr 19, 2021 11:58 am

Re: Dashed lines not showing when printing

Post by jon925 »

jmaustpc I have followed your suggestion and installed the FreeCAD Daily Build and the problem has now disappeared.
The PDF now views and prints correctly.

I did notice that the PDF file from the AppImage gave the following error when I tried to view it from
Midnight Commander "Syntax error (856): no current point in closepath" which might have been the problem.

Thanks again for your time.
kortak
Posts: 4
Joined: Sun Dec 11, 2016 10:34 am

Re: Dashed lines not showing when printing

Post by kortak »

Hi I have excalty the same issue, even with the FreeCAD_weekly-builds-33345-2023-06-11 appimage . I would be surprised if this is a bug since your last post is from 2021, and in fact I have used different freecad versions even from realthunder and they all show the same issue.

In the "Preferences", conventions for "Hidden line style" is set to Dashed

Here is the info about Freecad:

Code: Select all

OS: Ubuntu 22.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33345 (Git) AppImage
Build type: Release
Branch: master
Hash: a3c4f4bb01f5201daf666852444a8f9c5adbda8d
Python 3.10.11, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.60k
  * Help 1.0.3
  * Assembly4 0.12.6
And attached, a copy my file and the exported pdf which look exactly the same as the print.

The only solution I did not try is to install Freecad from PPA as mentionned by @jmaustpc...I am working on it

Thanks for your help...
Attachments
Page001.pdf
(177.89 KiB) Downloaded 37 times
Tube_pompage_ISO_KF80.FCStd
(48.38 KiB) Downloaded 32 times
Last edited by kortak on Thu Jun 15, 2023 12:47 pm, edited 2 times in total.
Post Reply