set_license_type#

Mechanical.set_license_type(license_type: str = 'Pool') bool#

Change the license type between "Pack" and "Pool".

Parameters:
license_typestr, optional

Type of license type, which can be either "Pack" or "Pool".

Returns:
bool

True.

Note

Because of an API limitation, the command returns True even when the key is wrong.

References

>>> oDesktop.SetRegistryString

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> app.set_license_type()