Page 1 of 1

Porous Zone Task Menu does not open

Posted: Tue Jun 28, 2022 12:51 pm
by marolas
Hello all,

When I add a Porous Zone on my CFD model, the task menu that usually opens does not. On the Traceback it appears the following lines:

14:44:25 Traceback (most recent call last):
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdZone.py", line 251, in setEdit
taskd = _TaskPanelCfdZone._TaskPanelCfdZone(self.Object)
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdZone.py", line 46, in __init__
self.NeedsCaseRewriteOrig = self.analysis_obj.NeedsCaseRewrite
<class 'AttributeError'>: '_TaskPanelCfdZone' object has no attribute 'analysis_obj'


I assume there might be something wrong with the files FreeCAD is telling, so I attach both _TaskPanelCfdZone.py and CfdZone.py files too.

I know that even without the task menu you can input the necessary data via the propierties and values that appear below, but I do prefer the menu as it is more intuitive.

Thanks so much for your help.

Marc.

Re: Porous Zone Task Menu does not open

Posted: Wed Jun 29, 2022 1:52 pm
by ondrejch
Read "Important..." and "Please.." above, then edit your post accordingly. Also post your model.

Re: Porous Zone Task Menu does not open

Posted: Thu Jun 30, 2022 7:44 pm
by oliveroxtoby
marolas wrote: Tue Jun 28, 2022 12:51 pm Hello all,

When I add a Porous Zone on my CFD model, the task menu that usually opens does not. On the Traceback it appears the following lines:

14:44:25 Traceback (most recent call last):
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdZone.py", line 251, in setEdit
taskd = _TaskPanelCfdZone._TaskPanelCfdZone(self.Object)
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdZone.py", line 46, in __init__
self.NeedsCaseRewriteOrig = self.analysis_obj.NeedsCaseRewrite
<class 'AttributeError'>: '_TaskPanelCfdZone' object has no attribute 'analysis_obj'


I assume there might be something wrong with the files FreeCAD is telling, so I attach both _TaskPanelCfdZone.py and CfdZone.py files too.
Please could you check again after updating the workbench? I suspect this is a bug that was fixed a while ago.