How to return views on default positions?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
stefankorisnik3
Posts: 101
Joined: Sun Jul 24, 2022 12:49 pm

How to return views on default positions?

Post by stefankorisnik3 »

I accidentally moved python console and placed it like standalone view.
I know how to get i back to be side by side with report view but every time i restart FreeCAD it return to be standalone view.
I readed here for the "Reset" button but it doesn't work
https://forum.freecadweb.org/viewtopic.php?t=66581

Do i need to reinstall FreeCAD in order to get default structure for views?

View looks:
https://imgur.com/d5kZxuP

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * CurvedShapes 1.0.3
  * Curves 0.5.2
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: How to return views on default positions?

Post by onekk »

usually it suffice to reposition and exit.

If it is not working, simply find the user directory and delete system.cfg and user.cfg (usually it is not needed to delete all the directory as there is Mod and other dirs that could be useful to retain)

probably it suffice user.cfg but a couple ot test will confirm my guess.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: How to return views on default positions?

Post by adrianinsaval »

panel positions are stored in the registry, not on FreeCAD config files. Open regedit.exe and delete the HKEY_CURRENT_USER\SOFTWARE\FreeCAD key
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: How to return views on default positions?

Post by onekk »

adrianinsaval wrote: Tue Aug 02, 2022 1:39 pm panel positions are stored in the registry, not on FreeCAD config files. Open regedit.exe and delete the HKEY_CURRENT_USER\SOFTWARE\FreeCAD key
Thanks for clarification:

Are you aware where they are stored in a Linux installation?

TIA and Regards.

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: How to return views on default positions?

Post by adrianinsaval »

If I'm not mistaken $XDG_CONFIG_HOME/FreeCAD/FreeCAD.conf
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: How to return views on default positions?

Post by onekk »

adrianinsaval wrote: Tue Aug 02, 2022 1:48 pm If I'm not mistaken $XDG_CONFIG_HOME/FreeCAD/FreeCAD.conf
Many Thanks.

As I'm using multiple versions of FC I could not be 100% sure of this but it seems that this is the only file present with this name.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: How to return views on default positions?

Post by adrianinsaval »

That stuff is managed by qt not FreeCAD AFAIK, so it probably isn't affected by setting different config directories for FreeCAD. It should be affected by changing $XDG_CONFIG_HOME though
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: How to return views on default positions?

Post by onekk »

adrianinsaval wrote: Tue Aug 02, 2022 1:59 pm That stuff is managed by qt not FreeCAD AFAIK, so it probably isn't affected by setting different config directories for FreeCAD. It should be affected by changing $XDG_CONFIG_HOME though
It seems that relevant infos are also stored in $XDG_CONFIG_HOME QtProject.conf as example here there are:
  • a [FileDialog] stanza
  • a [Qt] stanza with some values for customColors variables
I've noted that as I use the Qt Filedialog in FC (I'mm aware that there is an options to override this set and use the OS supplied dialog, but I haven't used this option) some setting are spread among "Qt applications", and probably they are using this file.

For the FC main windows data I suspect that is the file you cited, as it is the only one wiht this name in my entire "user directory" and "FreeCAD directory" that in my case is the place where I store the diifferents "user directories" for FC.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: How to return views on default positions?

Post by adrianinsaval »

yes, the custom colors might be from color picker dialogs
Post Reply