This is my code:
Code: Select all
filename = App.ActiveDocument.Name
Yet in the Python console of FreeCAD:
Code: Select all
>>> App.ActiveDocument.Name
'naca2412_BH'
Thanks
Code: Select all
filename = App.ActiveDocument.Name
Code: Select all
>>> App.ActiveDocument.Name
'naca2412_BH'
I ran the Python command in CfdOF workbench in FreeCAD
I am not using the "FreeCADvasca library".This information is crucial as if you want to use "FreeCADvasca library" younshoukd read the wiki page describing sone caveats as it is not a "common use case", not exotic but not so common.
Code: Select all
App = FreeCAD
filename = App.ActiveDocument.Name
From a single line of code it is difficult to guess what you are importing and what not.