[Solved] Linked Object File/Path
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!
[Solved] Linked Object File/Path
How do I get the file/path of a Linked Object?
Last edited by leoheck on Tue Oct 04, 2022 4:19 pm, edited 1 time in total.
Re: Linked Object File/Path
In a terminal do :-
readlink -f (filename)
readlink -f (filename)
Re: Linked Object File/Path
hahahaha
Is this Freecad Forum, right?
I am asking if there is a way to get the File Path, of a File, that is being Linked, in the "Linked Object" property on an Object of the "App::Link" type.
Is this Freecad Forum, right?
I am asking if there is a way to get the File Path, of a File, that is being Linked, in the "Linked Object" property on an Object of the "App::Link" type.
Re: Linked Object File/Path
I could find the answer to my own question.
Since I could solve my issue I could make this
https://gist.github.com/leoheck/0933ca6 ... 0e2a4f811b
It lists linked files if you need to find all files related to the current one.
And it also shows the files in a tree.
Code: Select all
filepath = obj.getLinkedObject().Document.FileName
https://gist.github.com/leoheck/0933ca6 ... 0e2a4f811b
It lists linked files if you need to find all files related to the current one.
And it also shows the files in a tree.