TechDraw printouts - almost invisible projections

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
aapo
Posts: 619
Joined: Mon Oct 29, 2018 6:41 pm

Re: TechDraw printouts - almost invisible projections

Post by aapo »

mfraz74 wrote: Mon Apr 11, 2022 11:25 am Sorry, I meant that I had compiled FreeCAD from git and Qt 5.15.2 from Ubuntu 21.10 repositories which should have come from Debian - the highest dfsg I can find is 12. So maybe a few patches below what you are using?
Okay, that makes sense. So, that means we have essentially the same situation, and for both of us the self-compiled FreeCAD TechDraw works fine. Which kind of makes sense, because as you said Ubuntu is Debian-based. However, if I understand correctly the FreeCAD TechDraw does not work properly for some other distributions, specifically when using a self-compiled version of FreeCAD git. I presume that these other distributions do not have this Debian-specific dfsg patchset on top of Qt 5.15.2, so the culprit could still be the (standard) version of Qt 5.15.2 libraries. Or some other library, like Mesa.
User avatar
mfraz74
Posts: 161
Joined: Mon Apr 05, 2021 9:19 am
Contact:

Re: TechDraw printouts - almost invisible projections

Post by mfraz74 »

aapo wrote: Mon Apr 11, 2022 12:51 pm
mfraz74 wrote: Mon Apr 11, 2022 11:25 am Sorry, I meant that I had compiled FreeCAD from git and Qt 5.15.2 from Ubuntu 21.10 repositories which should have come from Debian - the highest dfsg I can find is 12. So maybe a few patches below what you are using?
Okay, that makes sense. So, that means we have essentially the same situation, and for both of us the self-compiled FreeCAD TechDraw works fine. Which kind of makes sense, because as you said Ubuntu is Debian-based. However, if I understand correctly the FreeCAD TechDraw does not work properly for some other distributions, specifically when using a self-compiled version of FreeCAD git. I presume that these other distributions do not have this Debian-specific dfsg patchset on top of Qt 5.15.2, so the culprit could still be the (standard) version of Qt 5.15.2 libraries. Or some other library, like Mesa.
The other issue is that it doesn't work with the FreeCAD daily builds here https://launchpad.net/~freecad-maintain ... ecad-daily which shouldn't be any different. Increasing the width of the lines from within the view box has no effect on the drawing.
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw printouts - almost invisible projections

Post by wandererfan »

aapo wrote: Mon Apr 11, 2022 12:51 pm However, if I understand correctly the FreeCAD TechDraw does not work properly for some other distributions, specifically when using a self-compiled version of FreeCAD git.
Additional discussions: git commit 6698 and https://www.forum.freecadweb.org/viewto ... 42&t=67842

For me, local build works fine, but the build from the PPA does not.

FWIW, the Qt packages on my Ubuntu VM are mostly "5.15.2+dfsg-12ubuntu1.1"

The Ubuntu VM glxinfo is
OpenGL version string: 2.1 Mesa 21.2.6
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.2.6

I've been trying to downgrade Mesa to rule that out, but haven't had any success yet.
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: TechDraw printouts - almost invisible projections

Post by jnxd »

littlelion wrote: Fri Feb 18, 2022 3:02 pm The printout looks like this (print to PDF, same is true for printout on paper):
Cannot reproduce with

Code: Select all

OS: Manjaro Linux (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.28769 +1 (Git)
Build type: Debug
Branch: fem-expand-add-remove (ignore this, one UI commit in FEM)
Hash: 7b231149b3545316502f41e779b767f0189241b8
Python 3.10.4, Qt 5.15.3, Coin 4.0.1, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * Curves 0.3.0
My latest (or last) project: B-spline Construction Project.
kevinz
Posts: 68
Joined: Fri Oct 18, 2019 2:58 pm

Re: TechDraw printouts - almost invisible projections

Post by kevinz »

I'm also having this problem with my set-up (see below). The printed lines are light grey and thin. When exporting to PDF (both File->Export PDF and selecting the File->Print Print to File (PDF)) lines remain the same: thin and light grey.

I also tried exporting to SVG. I tried File->Export... flattened SGV and got the error "getViewer" and the report view said:

Code: Select all

14:37:15  'Page': no Shape, calculate manual bounding box
14:37:15  Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/share/freecad/Mod/Draft/importSVG.py", line 1811, in export
    bb.add(Draft.get_bbox(obj))
  File "/usr/share/freecad/Mod/Draft/draftutils/gui_utils.py", line 745, in get_bbox
    region = view.getViewer().getSoRenderManager().getViewportRegion()
<class 'AttributeError'>: getViewer
When I tried File->Export... Drawing (*.svg *.svgz *.dxf), I got the error, "Export of this object type is not supported by Drawing module." I also got:

Code: Select all

14:46:37  Traceback (most recent call last):
  File "<string>", line 4, in <module>
<class 'TypeError'>: Export of this object type is not supported by Drawing module
When I tried File->Export... File type: Technical Drawing, the export worked. After importing to Inkscape, It printed okay, mostly. The Rich Text I had used for annotations printed normally, and not Bold, as I had selected.

Just more information to help diagnose this problem. Is the Technical Drawing type export the only correct one?

-Kevin


OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.
Build type: Release
Branch: unknown
Hash: 22f524c0c755003c12234fab1bad6a9f696b661a
Python 3.10.6, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods:
* Help 1.0.3
kevinz
Posts: 68
Joined: Fri Oct 18, 2019 2:58 pm

Re: TechDraw printouts - almost invisible projections

Post by kevinz »

Here's two screenshots, showing the original in FreeCAD TechDraw (top one at 15-05-19) and how it looked after opening the Technical Drawing .SVG file in Inkscape (bottom one at 15-04-53).
Screenshot from 2022-12-18 15-05-19.png
Screenshot from 2022-12-18 15-05-19.png (32.64 KiB) Viewed 1168 times
Screenshot from 2022-12-18 15-04-53.png
Screenshot from 2022-12-18 15-04-53.png (42.96 KiB) Viewed 1168 times

As you can see, the Bold attribute was lost, and the line spacing is corrupted.

Sure wish I could just print from FreeCAD.

-Kevin
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw printouts - almost invisible projections

Post by wandererfan »

kevinz wrote: Sun Dec 18, 2022 8:14 pm Sure wish I could just print from FreeCAD.
The AppImage version seems to work properly.
Attachments
thinLinesAITest.png
thinLinesAITest.png (91.67 KiB) Viewed 1107 times
thinLinesAITest.pdf
(209.45 KiB) Downloaded 40 times
thinLinesAITest.FCStd
(19.47 KiB) Downloaded 31 times
User avatar
FrViPofm
Posts: 14
Joined: Mon Feb 13, 2017 3:12 pm

Re: TechDraw printouts - almost invisible projections

Post by FrViPofm »

Hi every body
It looks like one year later there is no solution exposed to the forum.
I still get the same problem with thin drawing lines in the pdf export.

So I publish here my configuration. I hope it could help to make a diagnotic.:

Bad result on :

Code: Select all

OS: Ubuntu 22.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.
Build type: Release
Branch: unknown
Hash: 1faf86c3da12c1712e1d5ec015721d9aa02f8672
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: French/France (fr_FR)
Installed mods: 
  * fcgear 1.0.0
  * parts_library
  * Assembly4 0.12.5
  * Render 2022.4.0
  * BOLTSFC
  * BIM 2021.12.0
  * A2plus 0.4.60h
  * ExplodedAssembly
  * fasteners 0.4.54
  * sheetmetal 0.2.60
  * symbols_library
Vincent Pottier aka FrViPofm
felix_fuchs
Posts: 2
Joined: Wed Jun 24, 2020 7:36 pm

Re: TechDraw printouts - almost invisible projections

Post by felix_fuchs »

I can confirm the behavior of FreeCAD on my computer. The vertices are also not shown when Frame name are shown. My FreeCAD configuration:

Code: Select all

OS: Ubuntu 22.04.2 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.1.
Build type: Release
Branch: unknown
Hash: 22f524c0c755003c12234fab1bad6a9f696b661a
Python 3.10.6, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * fasteners 0.4.54
  * Assembly4 0.12.5
Post Reply