The ide_config.py module#

Summary#

cli

CLI tool to update settings.json files for autocomplete with ansys-mechanical-stubs.

Description#

Convenience CLI to run mechanical.

Module detail#

ide_config.cli(ide: str, target: str, revision: int) None#

CLI tool to update settings.json files for autocomplete with ansys-mechanical-stubs.

Parameters:
ide: str

The IDE to set up autocomplete settings. By default, it’s vscode.

target: str

The type of settings to update. Either “user” or “workspace” in VS Code. By default, it’s user.

revision: int

The Mechanical revision number. For example, “242”. If unspecified, it finds the default Mechanical version from ansys-tools-path.