Skip to content

How to use the modeler with geometry service #1453

Closed
@emjn2

Description

@emjn2

Description of the modifications

When trying the documentation examples that use the launch_modeler() command I get an uncaught execution when creating a new design even though the connection is displayed as healthy - see below

I am using ANSYS 2024R1 and I have the geometry services installed.

modeler = launch_modeler()
print(modeler)
Ansys Geometry Modeler (0x1e83da41e90)

Ansys Geometry Modeler Client (0x1e83c6ee4d0)
Target: localhost:49721
Connection: Healthy

design = modeler.create_design('test')
CRITICAL - - logger - handle_exception - Uncaught exception
Traceback (most recent call last):
File "", line 1, in
File "Z:.venv_test\Lib\site-packages\ansys\geometry\core\modeler.py", line 174, in create_design
design = Design(name, self)
^^^^^^^^^^^^^^^^^^
File "Z:.venv_test\Lib\site-packages\ansys\geometry\core\errors.py", line 98, in wrapper
raise GeometryExitedError(
ansys.geometry.core.errors.GeometryExitedError: Geometry service connection terminated: Api.Initialize has not been called.

Useful links and references

No response

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions