Hi,
I would like to write everything that is output to the python console during a FreeCAD session to a file (and I do not want to copy the text from the console window). In this way, if FreeCAD crashes I could just rerun the content of the file as a macro. Or I could use the file as a starting point for writing my own functionallity.
Any ideas or are there other solutions?
Thanks
Write console output to file
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Write console output to file
Hi jelias,
Do you know the macro recording feature of FreeCAD ?
You can find it under Macro ==> Recording macro... It make a macro for freecad, it's just a python script whith the output of python console, and you can edit it.
Don't know if the file is saved automaticaly if FreeCAD crash...
Do you know the macro recording feature of FreeCAD ?
You can find it under Macro ==> Recording macro... It make a macro for freecad, it's just a python script whith the output of python console, and you can edit it.
Don't know if the file is saved automaticaly if FreeCAD crash...
Formations - Assistance - Développement : https://freecad-france.com
Re: Write console output to file
Thank you, I will look into that.