UILauncher
#
- class ansys.mechanical.core.embedding.ui.UILauncher(dry_run: bool = False)#
Launch the GUI using a temporary mechdb file.
Overview#
Save the active mechdb file. |
|
Save a new mechdb file with a temporary name. |
|
Open the original mechdb file from save_original(). |
|
Launch the GUI for the mechdb file with a temporary name from save_temp_copy(). |
Import detail#
from ansys.mechanical.core.embedding.ui import UILauncher
Method detail#
- UILauncher.save_original(app: ansys.mechanical.core.embedding.App) None #
Save the active mechdb file.
- Parameters:
- app: ansys.mechanical.core.embedding.app.App
A Mechanical embedding application.
- UILauncher.save_temp_copy(app: ansys.mechanical.core.embedding.App) pathlib.Path | pathlib.Path #
Save a new mechdb file with a temporary name.
- Parameters:
- app: ansys.mechanical.core.embedding.app.App
A Mechanical embedding application.
- UILauncher.open_original(app: ansys.mechanical.core.embedding.App, mechdb_file: str) None #
Open the original mechdb file from save_original().
- Parameters:
- app: ansys.mechanical.core.embedding.app.App
A Mechanical embedding application.
- mechdb_file: str
The full path to the active mechdb file.
- UILauncher.graphically_launch_temp(app: ansys.mechanical.core.embedding.App, temp_file: pathlib.Path) subprocess.Popen | str #
Launch the GUI for the mechdb file with a temporary name from save_temp_copy().
- Parameters:
- app: ansys.mechanical.core.embedding.app.App
A Mechanical embedding application.
- temp_file: pathlib.Path
The full path to the temporary mechdb file.
- Returns:
subprocess.Popen
The subprocess that launches the GUI for the temporary mechdb file.