I know that is a strange requests, but I'm trying to do some experiment in automating this workflow:
https://github.com/Zolko-123/FreeCAD_Ex ... /README.md
It is somewhat related to:
https://forum.freecadweb.org/viewtopic.php?f=22&t=72011
Now I have to save the file and reopen it, so I do:
Code: Select all
doc1_fname = f"{DOC1_NAME}.FCStd"
doc1.FileName = doc1_fname
doc1.save()
FreeCAD.closeDocument(DOC1_NAME)
I was expecting something like
Code: Select all
doc_path = doc1.save()
Anyone know an easy way to retrieve this thing.
What I know is that if you don't specify a path actually on Linux it save the file in the "user directory", I could do two things:
- Create e repository explicitly, using the path to prepend it to all filenames
- Trust that if I don't specify a path it is saved across different OS in the "user directory", but how to find what is across different OS
Code: Select all
obj = Part.show(solid, "solid_name")
Carlo D.