Skip to content

PyFluent can't access meshing.Graphics methods #3882

Open
@raph-luc

Description

@raph-luc

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

Image

Another note: I think possibly renaming the meshing child of the root object to datamodel would make sense too

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyFluentdocumentationDocumentation related (improving, adding, etc)question

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions