DefaultServiceMethods#

class ansys.mechanical.core.embedding.rpc.server.DefaultServiceMethods(app)#

Default service methods for MechanicalEmbeddedServer.

Overview#

run_python_script

Run scripts using Internal python engine.

run_python_script_from_file

Run scripts using Internal python engine.

clear

Clear the current project.

list_files

List all files in the project directory.

project_directory

Get the project directory.

__repr__

Return the representation of the instance.

Import detail#

from ansys.mechanical.core.embedding.rpc.server import DefaultServiceMethods

Property detail#

property DefaultServiceMethods.project_directory#

Get the project directory.

Method detail#

DefaultServiceMethods.__repr__()#

Return the representation of the instance.

DefaultServiceMethods.run_python_script(script: str, enable_logging=False, log_level='WARNING', progress_interval=2000)#

Run scripts using Internal python engine.

DefaultServiceMethods.run_python_script_from_file(file_path: str, enable_logging=False, log_level='WARNING', progress_interval=2000)#

Run scripts using Internal python engine.

DefaultServiceMethods.clear()#

Clear the current project.

DefaultServiceMethods.list_files()#

List all files in the project directory.