Description
Here using meshing
to mean the root session object
In the Python Console:
>>> hasattr(meshing, "Graphics")
True
From PyFluent with the same session:
>>> hasattr(meshing, "Graphics")
False
To reproduce: launch or connect to a Fluent meshing session with graphics available using PyFluent
It is listed in the PyFluent documentation
https://fluent.docs.pyansys.com/version/dev/api/meshing/datamodel/meshing/Graphics/Graphics_contents.html
Edit: meshing.meshing.Graphics.ClippingPlane(InsertClippingPlane=False)
does work as a workaround for this, for now
Should Graphics
be moved up to the root level? It was originally developed more towards Web UI and graphics interface usage, but I can see that it will be useful for some PyFluent users as well
Also separate note, but I think the documentation is a bit misleading, as it seems to imply that there should be a .datamodel
child of the root session
Another note: I think possibly renaming the meshing
child of the root object to datamodel
would make sense too