Print preview error

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
drmacro
Veteran
Posts: 8868
Joined: Sun Mar 02, 2014 4:35 pm

Print preview error

Post by drmacro »

With only a rectangle and dimension draw in Draft workbench.

Clicking File>Print preview produces: "<Exception> Empty group name"

Same, if geometry from, for example, Part workbench.

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31641 (Git) AppImage
Build type: Release
Branch: master
Hash: d28d63b87b60161419c6c0c532fbbfaed96926b8
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Manipulator 1.4.9
  * Defeaturing 1.2.0
  * Curves 0.6.5
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * fasteners 0.4.54
  * A2plus 0.4.60h
  * Assembly4 0.12.5
  * sheetmetal 0.2.60
  * CurvedShapes 1.0.4
  * lattice2 1.0.0
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Print preview error

Post by Syres »

I don't know enough about Linux yet but my with my old IT Support hat on, I assume you've a happily working print driver. Testing using yesterday's AppImage all is fine here including test of Draft Rectangle and dimension.

PrintPreviewAppImage.png
PrintPreviewAppImage.png (114.2 KiB) Viewed 936 times

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31709 (Git) AppImage
Build type: Release
Branch: master
Hash: e188802ca6997d2564e7570ab648462e6a059f87
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * ThreadProfile 1.84.0
  * QuickMeasure-main 2022.10.28
  * A2plus 0.4.60f
  * freecad.gears 1.0.0
  * Curves 0.6.5
  * ExtremeProDark 1.0.4
  * Plot 2022.4.17
  * fasteners 0.4.54
  * sheetmetal 0.2.59
drmacro
Veteran
Posts: 8868
Joined: Sun Mar 02, 2014 4:35 pm

Re: Print preview error

Post by drmacro »

Syres wrote: Mon Jan 30, 2023 1:50 pm I don't know enough about Linux yet but my with my old IT Support hat on, I assume you've a happily working print driver. Testing using yesterday's AppImage all is fine here including test of Draft Rectangle and dimension.

...
Yep, that was it that particular machine has no printers installed.

Thanks!
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
jgrandar
Posts: 5
Joined: Sun Feb 12, 2023 12:48 pm

Re: Print preview error

Post by jgrandar »

Same here, yesterday I could preview and print, today I can't, got "<Exception> Empty group name".

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git) Snap 517
Build type: Release
Branch: tag: 0.20.2
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: Spanish/Spain (es_ES) [ OS: English/United Kingdom (en_GB) ]
Installed mods: 
  * Help 1.0.3
  * BIM 2021.12.0
drmacro
Veteran
Posts: 8868
Joined: Sun Mar 02, 2014 4:35 pm

Re: Print preview error

Post by drmacro »

It'll work if you define a system printer. Even a local pdf printer works.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
jgrandar
Posts: 5
Joined: Sun Feb 12, 2023 12:48 pm

Re: Print preview error

Post by jgrandar »

Thanks @drmacro, just don't know where define a system printer, I marked my printer as default in Ubuntu configuration but didn't work, however I realised I could preview and print opening the same project file in my old Freecad 0.19
drmacro
Veteran
Posts: 8868
Joined: Sun Mar 02, 2014 4:35 pm

Re: Print preview error

Post by drmacro »

jgrandar wrote: Sun Feb 12, 2023 6:59 pm Thanks @drmacro, just don't know where define a system printer, I marked my printer as default in Ubuntu configuration but didn't work, however I realised I could preview and print opening the same project file in my old Freecad 0.19
If you have a system printer defined it should just work. 0.19 or otherwise.

You are referring to the File>Print or File>Print preview menus in FreeCAD, right?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
jgrandar
Posts: 5
Joined: Sun Feb 12, 2023 12:48 pm

Re: Print preview error

Post by jgrandar »

drmacro wrote: Sun Feb 12, 2023 7:29 pm
jgrandar wrote: Sun Feb 12, 2023 6:59 pm Thanks @drmacro, just don't know where define a system printer, I marked my printer as default in Ubuntu configuration but didn't work, however I realised I could preview and print opening the same project file in my old Freecad 0.19
If you have a system printer defined it should just work. 0.19 or otherwise.

You are referring to the File>Print or File>Print preview menus in FreeCAD, right?
Yes, File>Print or File>Print preview menus doesn't work, Image

I was looking for printer options in Edit -> Preferences but could't see any printer reference. When you say define a system printer I am not sure if it is done in FreeCAD options or at OS level.
Attachments
Screenshot from 2023-02-12 22-45-09.png
Screenshot from 2023-02-12 22-45-09.png (76.93 KiB) Viewed 541 times
drmacro
Veteran
Posts: 8868
Joined: Sun Mar 02, 2014 4:35 pm

Re: Print preview error

Post by drmacro »

Nothing to do in FreeCAD. It simply looks at what is defined in the system printer settings.

In Ubuntu, you go to the application selector and type printers, and select the Add printers tool and set up a printer and set it as default. This is all system level, not in FreeCAD.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply