Page 1 of 3

A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 8:59 am
by Koemi
For instance (from Z:\blabla\FreeCAD_files\ to another like for instance D:\raldiedal\etc\FreeCAD_files\).

So I am expecting that parts cannot be found, drawings unreachable etc.

How to handle this?

Any workbench available, or will this be a week of hell to recreate new assemblies / changing locations of every part.... :shock:

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 9:10 am
by chrisb
Moved from Install/Compile to Assembly.

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 10:15 am
by kbwbe
Koemi wrote: Wed Dec 19, 2018 8:59 am For instance (from Z:\blabla\FreeCAD_files\ to another like for instance D:\raldiedal\etc\FreeCAD_files\).

So I am expecting that parts cannot be found, drawings unreachable etc.

How to handle this?

Any workbench available, or will this be a week of hell to recreate new assemblies / changing locations of every part.... :shock:
Hi Koemi !
Which Assembly Module ? A2/A2p ?
With A2p you can you can use the option "use project folder" in preferences. Everything (assemblies, sourcefiles) have to below this, regardless where.

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 10:27 am
by Koemi
Unfortunately; it differs.

Some are with A2P, and most files are with A2...

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 1:09 pm
by kbwbe
Koemi wrote: Wed Dec 19, 2018 10:27 am Unfortunately; it differs.

Some are with A2P, and most files are with A2...
A2 is a problem. Perhaps filenames could be replaced by a script. Does only the beginning of your pathes change ?

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 2:04 pm
by Koemi
Correct kbwbe. I think in 90% of all cases I think that only the beginning of the path changes. The exact path is not known yet.

I expected there would be more people with this 'problem'...

Searched for a solution, but could not find any.

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 3:12 pm
by kbwbe
Koemi wrote: Wed Dec 19, 2018 2:04 pm Correct kbwbe. I think in 90% of all cases I think that only the beginning of the path changes. The exact path is not known yet.

I expected there would be more people with this 'problem'...

Searched for a solution, but could not find any.
Hi Koemi,
i think i can help you with a small script. But you would have to run it for each assembly separately. I do not have the time for a more complete solution. Would this be ok ?

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 4:47 pm
by chrisb
Mabe this is naive, but if I understand correctly the issue occurs, because A2Plus uses absolute paths. Is it possible to use relative paths instead?

Re: A change in file location; how to handle this?

Posted: Wed Dec 19, 2018 5:01 pm
by kbwbe
chrisb wrote: Wed Dec 19, 2018 4:47 pm Mabe this is naive, but if I understand correctly the issue occurs, because A2Plus uses absolute paths. Is it possible to use relative paths instead?
Hi Chris,
the problem are the A2 files, not the A2plus ones. With A2plus you can use absolute/relative pathes and an option called "project folder", where simply everything has to be inside, regardless where. So A2plus files are portable.

Koemi want to have his old A2 files ported.

Re: A change in file location; how to handle this?

Posted: Thu Dec 20, 2018 7:56 am
by Koemi
kbwbe wrote: Wed Dec 19, 2018 3:12 pm
i think i can help you with a small script. But you would have to run it for each assembly separately. I do not have the time for a more complete solution. Would this be ok ?
That would be more than perfect, of course!

Could also help other FreeCAD addicts with this problem. Still having the strange feeling I am the only one... :?

Maybe I can help a bit?
- (almost) all my work is in one main folder (obviously this main folder will be moved). This main spreads out to many other folders, and so on.
- FreeCAD files are unrecognisable if they are assemblies or parts. Luckily I have named all my assemblies beginning with "SAM_".
- Sometimes I use assemblies inside another assembly. These are named "SUBSAM_".
- My part-files can have any name.
- I have no drawing files. Yet.

At the moment my files are present in an external drive (easy backup purposes). I the near future this will be a local drive (with external backup drive). I expect this change speeds up load and save processes of my work.