pycatia.system_interfaces.license_setting_att

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-09 09:53:18.676780

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.system_interfaces.license_setting_att.LicenseSettingAtt(setting_controller)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
LicenseSettingAtt

Interface to handle the licensing settings.
Role: This interface is implemented by a component which represents the
controller of the static Licenses.
To access this property page:
Click the Options command in the Tools menu
Click General
Click the Licensing Property Page

This interface defines:
A method to set each License
A method to get the value of each License
A method to lock/unlock each parameter
A method to retrieve the information concerning each parameter
property demo_mode

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
o Property DemoMode() As boolean

Retrieves or Sets the demo mode.
Role: Retrieves or sets the value of the parameter describing if the demo
mode is active.
Returns:

bool

property frequency

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
o Property Frequency() As float

Retrieves or Sets the contact frequency.
Role: Retrieves or sets the value of the parameter describing the server
contact frequency in minutes. Note that a null value represents the maximum
contact frequency value. For more information about the range and maximum,
refers to the Infrastructure documentation.
Returns:

float

get_demo_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetDemoModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DemoMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

get_frequency_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetFrequencyInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the Frequency setting
parameter.
Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

get_granted_licenses_list(i_default_licenses)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetGrantedLicensesList(long iDefaultLicenses) As
CATSafeArrayVariant

Deprecated:
V5R15 CATSysLicenseSettingAtt#GetLicensesList
Parameters:

i_default_licenses (int) –

Returns:

tuple

get_license(i_license)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetLicense(CATBSTR iLicense) As CATBSTR

Retrieves the value of the license.
Role: Retrieves the mapping between a name of a license and the value of
the license. The license does not need to be returned by GetLicensesList(). But
if the license is not installed the license will be
“NotRequested”

Parameters:

iLicense
the name of the License: “PMG.prd”, “_MD2.slt+”, “_MD2.slt+GSD” for
example.
“PMG.prd” represent the license of the product
PMG.
“_MD2.slt+” represent the license of the solution
MD2.
“_MD2.slt+GSD” represent the license of the solution MD2, with the
AddOn product GSD.

Returns:
the value of the License:
NotRequested : License is not Requested
key : the name of the license, the default available license has been chosen by the user.
License is Requested.
License Number : a specific license number has been chosen by the user. License is Requested.
Parameters:

i_license (str) –

Returns:

str

get_license_info(i_license, io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetLicenseInfo(CATBSTR iLicense,
CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the License setting parameter.
Refer to SettingController for a detailed description.
Parameters:
  • i_license (str) –

  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

get_licenses_list(i_default_licenses)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetLicensesList(long iDefaultLicenses) As
CATSafeArrayVariant

Retrieves the list of the requested or locked licenses.
Role: Retrieves the list of the requested or locked licenses. There is no
SetLicensesList() because the list is initialized using
LUM.

Parameters:

iDefaultLicenses
If iDefaultLicenses!=0 and the settings are empty, returns the
default licenses, that is, the visible nodolocked licenses. If iDefaultLicenses
== 0 and the settings are empty, returns the selected licenses (not yet stored,
because not yet validated by OK button).

Returns:
The array of Licenses.
character meaning in license name:
“_”: internal notation for a license configuration
“+”: you chose “Any license” mode, example of returned value:
_ME1.slt+FS1
When the return value is a serial number (_ME1.slt_SerialNumber), you
have chosen the “Explicit” license mode. In this case the add on product is not
indicated in the license name.
Parameters:

i_default_licenses (int) –

Returns:

tuple

get_licenses_list_info(io_admin_level, io_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetLicensesListInfo(CATBSTR ioAdminLevel,
CATBSTR ioLock) As boolean

Retrieves information about the LicensesList setting
parameter.
Role: Retrieves information about the LicensesList setting locking state
(global lock for the LicensesList). It is used to get the lock status of the
List of the Licenses. If the LicensesList is locked all the licenses are
locked. When the licenses are locked, it means that an administrator has locked
the attribute. It does not means that an administrator has changed the value of
the attribute. The value of the setting is not updatable because it refers to a
lock on a list. That is why the return value is false.

Parameters:

ioAdminLevel:
Level of administrator.
ioLock:
Locked/Unlocked.

Returns:
False
Information returned in the dump:
Parameter 1 : “Value taken in case of reset” : useless. Default value : “Default value”
Parameter 2 : “Locking state” value : unlocked / locked / locked at Admin Level n
Parameter 3 : “Returned value” : useless, default value : False

Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_lock (str) –

Returns:

None

get_nodelock_alert_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetNodelockAlertInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the license expiry alert setting
parameter.
Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

get_server_time_out_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetServerTimeOutInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the TimeOut setting parameter.
Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

get_show_license_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Func GetShowLicenseInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ShowLicense setting
parameter.
Refer to SettingController for a detailed description.
Parameters:
  • io_admin_level (str) –

  • io_locked (str) –

Returns:

None

property nodelock_alert

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
o Property NodelockAlert() As long

Retrieves or Sets the license expiry alert.
Role: Retrieves or sets the value of the parameter describing the lthe
license expiry alertt in days. For more information about the range and
maximum, refers to the Infrastructure documentation.
Returns:

int

property server_time_out

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
o Property ServerTimeOut() As float

Retrieves or Sets the server time out.
Role: Retrieves or sets the value of the parameter describing the licensing
server time out in minutes. For more information about the range and maximum,
refers to the Infrastructure documentation.
Returns:

float

set_demo_mode_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetDemoModeLock(boolean iLock)

Locks or unlocks the DemoMode setting parameter.
Refer to SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

set_frequency_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetFrequencyLock(boolean iLock)

Locks or unlocks the Frequency setting parameter.
Refer to SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

set_license(i_license, i_value)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetLicense(CATBSTR iLicense,
CATBSTR iValue)

Sets the License.
Role: Sets the value of the license.

Parameters:

iLicense
the name of the License: “PMG.prd”, “_MD2.slt+”, “_MD2.slt+GSD” for
example.
“PMG.prd” represent the license of the product
PMG.
“_MD2.slt+” represent the license of the solution
MD2.
“_MD2.slt+GSD” represent the license of the solution MD2, with the
AddOn product GSD.
iValue

the value of the License:
NotRequested : License is not Requested
key : the name of the license, the default available license has been chosen by the user.
License is Requested.
License Number : a specific license number has been chosen by the user.
License is Requested.
Parameters:
  • i_license (str) –

  • i_value (str) –

Returns:

None

set_license_lock(i_license, i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetLicenseLock(CATBSTR iLicense,
boolean iLock)

Locks or unlocks the License setting parameter.
Refer to SettingController for a detailed description.
Parameters:
  • i_license (str) –

  • i_lock (bool) –

Returns:

None

set_licenses_list_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetLicensesListLock(boolean iLock)

Locks or unlocks the LicensesList setting parameter.
Role:Locks or unlocks the LicensesList setting parameter. Locks or unlocks
the parameter describing the list of installed licenses, if the operation is
allowed in the current administrated environment. It is the global lock on all
the licenses. When the LicenseList is locked all the licenses are locked. When
the LicenseList is unlocked all the licenses are unlocked.

Parameters:

iLock
the locking operation to be performed:
True: to lock the parameter.
False: to unlock the parameter.
Refer to

SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

set_nodelock_alert_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetNodelockAlertLock(boolean iLock)

Locks or unlocks the license expiry alert setting
parameter.
Refer to SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

set_server_time_out_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetServerTimeOutLock(boolean iLock)

Locks or unlocks the TimeOut setting parameter.
Refer to SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

set_show_license_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780))
o Sub SetShowLicenseLock(boolean iLock)

Locks or unlocks the ShowLicense setting parameter.
Refer to SettingController for a detailed description.
Parameters:

i_lock (bool) –

Returns:

None

property show_license

Note

CAA V5 Visual Basic Help (2020-06-09 09:53:18.676780)
o Property ShowLicense() As boolean

Retrieves or Sets the show license .
Role: Retrieves or sets the value of the parameter describing the complete
license information. When the parameter is set, the user gets more information
about the reason of the failure to request a license.
Returns:

bool