Std_Refresh

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
drmacro
Veteran
Posts: 8983
Joined: Sun Mar 02, 2014 4:35 pm

Std_Refresh

Post by drmacro »

What does Std_Refresh do?

According to the wiki it is just a recompute.

And why would it improve document load time by a factor of 10? As some claim?
:?:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
onekk
Veteran
Posts: 6206
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Std_Refresh

Post by onekk »

drmacro wrote: Tue Aug 02, 2022 10:13 am What does Std_Refresh do?

According to the wiki it is just a recompute.

And why would it improve document load time by a factor of 10? As some claim?
:?:
I don't remember precisely but I've seen a forum discussion about a simila argument, I will use my memory "that has proven to be broken" :-D

As the FCStd file is a "container" it contains many things, and there is a command that will "clean the file" to delete "not necessary files" as they could be "recreated" "when needed" and usually this "when needed" is when a document is reopened.
This was made to "make FCStd file" more compact in case of archiving or email transmission.

From what I remeber it delete some brp files that contains "shapes" that are kept in the file to speed up visualization, some of them are "complicate" to be recompute and "some time is needed" during the recreation phase.


see maybe:
Some more issues:
StdCmdForceRefresh replaces StdCmdRefresh because it uses the same name command Std_Refresh. But the current refresh command must not be replaced as it's much faster. Doing a force recompute can take a very long time to finish.
In this old post:

https://forum.freecadweb.org/viewtopic. ... 89#p250089


Probably it is better to ask to @wmayer the precise working of things.

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/
Post Reply