Hello,
I've noticed that linking in things from other files modifies those files and I'd like to ask why.
This does not play well with VCS. Imagine you have a well drawn independent model in its final fixed version in file A and you link it to file B and now the A is modified even though your intent was to just use it.
Thanks
App::Link modifies linked file
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: App::Link modifies linked file
Could you share an example file? I'm not sure what's being modified while you're only trying to use it.
Regards / Viele Grüße
Max
Max
Re: App::Link modifies linked file
1. Here is a file which is supposed to be linked in an other file:
3. Both files are immediately marked as modified. 4. I save both files so you can you can compare what is actually modified in the BlankTopPanel file: I'm on
2. I create a new file TopPanel.FCStd and link BlankTopPanel part from BlankTopPanel file into it.3. Both files are immediately marked as modified. 4. I save both files so you can you can compare what is actually modified in the BlankTopPanel file: I'm on
OS: Gentoo/Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21614 (Git)
Build type: Release
Branch: (HEAD detached at refs/git-r3/HEAD)
Hash: fc6a449fbae1fda767d52f414cb8c53424dff607
Python version: 3.7.7
Qt version: 5.14.2
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
Re: App::Link modifies linked file
Ah, I've recognized that too. To be honest, I've just started to use App:Link. But besides the "file has been modified-mark", nothing changed, right?
Regards / Viele Grüße
Max
Max
Re: App::Link modifies linked file
Well, some things certainly have changed. You can diff the .xml files. I do not know if those changes are important and whether I can revert them in VCS.
Re: App::Link modifies linked file
Could it be that only the timestamp gets an update? When opening an assembly file with links in it, the report view reports something like this:
Code: Select all
<App> Document.cpp(2817): ASSEMBLY-FILENAME#Link.LinkedObject: Time stamp changed on link LINK-SOURCE-FILENAME#Body012
Regards / Viele Grüße
Max
Max
Re: App::Link modifies linked file
Actually many things are changed. You can see them if you compare those attached files.