However, if I rename the directory with a different name, and try to open the file asm_tuto1.FCStd again, the assembly is not displayed and I get the following error messages:
Code: Select all
<PropertyLinks> PropertyLinks.cpp(2566): document not found /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/axis.FCStd
<PropertyLinks> PropertyLinks.cpp(2566): document not found /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/bearing.FCStd
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
3.68e-07 <App> Document.cpp(2549): asm_tuto1#axis.LinkedObject: Link not restored
Linked object: Model
Linked file: /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/axis.FCStd
9.6373e-05 <App> Document.cpp(2549): asm_tuto1#bearing_1.LinkedObject: Link not restored
Linked object: Model
Linked file: /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/bearing.FCStd
0.000144121 <App> Document.cpp(2549): asm_tuto1#bearing_2.LinkedObject: Link not restored
Linked object: Model
Linked file: /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/bearing.FCStd
0.0001885 <App> Document.cpp(2549): asm_tuto1#bearing_3.LinkedObject: Link not restored
Linked object: Model
Linked file: /home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/bearing.FCStd
This seems to be an absolute filepath problem in the links to objects.
Inside the Document.xml file of my asm_tuto1.FCStd I've seen that all XLinks have the absolute filepath:
<XLink file="/home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/bearing.FCStd"... />
<XLink file="/home/test/Documenti/FreeCAD/Forum/Assemly4/Tutorials/Tut1/axis.FCStd"... />
instead in Document.xml of asm_V4.FCStd all XLinks have the relative filepath:
<XLink file="Crankshaft.FCStd"... />
<XLink file="Cylindre.FCStd"... />
<XLink file="Bielle/asm_Bielle.fcstd" ... />
<XLink file="Piston/Piston.FCStd" ... />
Is there a way to tell Assembly4 to use the relative filepath when creating an assembly?
Thank you in advance for your help.
(Sorry for my english, I have used an online translator)
Assembly4 version: 0.6.3
OS: Linux Mint 18.1 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18614 (Git) AppImage
Build type: Release
Branch: master
Hash: efd55884ad7d40e77571a60c5bb906bbd8d1cbbd
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)