Closed luzpaz closed 1 year ago
One of those hidden gems...
Maybe we should make a wiki page for this type of tip (besides Fine tuning
I agree but then you end up with a workaround of a workaround. This is insane. @ FC they didn't bother to document it so we are required to document it...
In my UML branch (https://github.com/Jee-Bee/FreePDM/tree/uml-model. You can also view the resulting images in your browser) I already was thinking about a solution for that see the ACT_StoreFile diagram.
My basic idea is store every time it is checked in twice. Once as the default [Filename].FCStd
and once as [Filename].FCStd.#
/ [Filename].#.FCStd
, where the #
is a iterator.
In this way you can always go back to a requested previous version. And If an old version is required for some reason It shouldn't be difficult to rename it automatically.
Edit: I am thinking about to give every version an own image so that it is more easy to compare iterations.
@luzpaz, It still leaves one question: How do you know weather a file is open in FC or closed?
@Jee-Bee, yes it can work, but only when you add the dot at the end, like [Filename].FCStd.#
because you need to distinguish those files from the rest. I don't really like it but that seems a way to solve this issue. The other way is to use a VCS.
Edit: I am thinking about to give every version an own image so that it is more easy to compare iterations.
In that case I better work on the assembly structure ;-)
The new filesystem deals with these issues.
Question:
Answer:
Ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=47727