exit#

Client.exit()#

Close the connection with the server.

If the client had launched the server, then this will also kill the server process.

Examples

>>> import ansys.meshing.prime as prime
>>> prime_client = prime.launch_prime() # This will launch a server process
>>> model = prime_client.model
>>> fileio = prime.FileIO(model)
>>> result = fileio.read_pmdat('example.pmdat', prime.FileReadParams(model=model))
>>> print(result)
>>> prime_client.exit() # Sever connection with server and kill server