Click or drag to resize
SoLicensesInfoCheck Method (String, Single, String, Boolean, String)

Query if Open Inventor or an extension module is licensed on this machine.

Namespace: OIV.Inventor.Lock
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public static int Check(
	string productName,
	float version,
	string licenseString,
	bool printWarning,
	out string errReport
)

Parameters

productName
Type: SystemString

: Product to be licensed (no blanks), e.g. OpenInventor or VolumeVizLDM.

version
Type: SystemSingle

: Version to be licensed (see ()).

licenseString
Type: SystemString

: (optional) Embedded application password string, if any.

printWarning
Type: SystemBoolean

: If true, error and warning messages (if any) will be displayed to user.

errReport
Type: SystemString

: If not NULL, will be set to point to the text of the error or warning messages (if any). Note! This address is an internal static buffer and must not be freed by the application.

Return Value

Type: Int32

< 0 If product or version is NOT licensed on this machine. >= 0 If product and version are licensed and can be used.

Remarks

Note: If productName is "ScaleViz" and ScaleViz is licensed on this machine. Then the return value is the number of render nodes allowed.

FlexNet Notes:

  • Before checking for a FlexNet license token, OIV.Inventor.Lock.SoLicensesInfo.Check(System.String, System.Single, System.String, System.Boolean, System.String@) will automatically append "SDK" to the productName when you need an SDK license to run on the current machine.

See Also