InternalGeometryManager#

class ansys.saf.product_manager.geometry.InternalGeometryManager(**kwargs: Any)#

Bases: ansys.saf.glow.solution.InstanceManager[ansys.geometry.core.modeler.Modeler, GeometryStateInfo]

A private class to manage a Geometry instance with secure gRPC connections.

Overview#

get_product_name_implement

Return the name of Geometry in the PIM environment.

initialize

Initialize and start the Geometry server.

get_client_object_implement

Connect to the Geometry instance and provides an API to control it.

close_client_object_implement

Close the Modeler client.

save_state_implement

Save changes to the project data and settings.

load_state_implement

Load the state of the product instance.

shutdown_implement

Let GLOW shutdown the instance.

Import detail#

from ansys.saf.product_manager.geometry import InternalGeometryManager

Property detail#

property InternalGeometryManager.project_file_path_for_product: str#

Attribute detail#

InternalGeometryManager.PRODUCT_NAME = 'geometry-secure'#
InternalGeometryManager.SERVICE_NAME = 'grpc'#

Method detail#

InternalGeometryManager.initialize(version: str | None = None)#

Initialize and start the Geometry server.

classmethod InternalGeometryManager.get_product_name_implement() → str#

Return the name of Geometry in the PIM environment.

InternalGeometryManager.get_client_object_implement(hostname: str, port: int) → ansys.geometry.core.modeler.Modeler#

Connect to the Geometry instance and provides an API to control it.

InternalGeometryManager.close_client_object_implement() → None#

Close the Modeler client.

InternalGeometryManager.save_state_implement() → None#

Save changes to the project data and settings.

InternalGeometryManager.load_state_implement() → None#

Load the state of the product instance.

Subclasses must implement the logic required to restore the state of the product instance.

InternalGeometryManager.shutdown_implement() → None#

Let GLOW shutdown the instance.