DefaultServiceMethods
#
- class ansys.mechanical.core.embedding.rpc.server.DefaultServiceMethods(app)#
Default service methods for MechanicalEmbeddedServer.
Overview#
Run scripts using Internal python engine. |
|
Run scripts using Internal python engine. |
|
Clear the current project. |
|
List all files in the project directory. |
Get the project directory. |
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.