SoLicensesInfoCheck Method (String, Single, String, Boolean, String) |
Query if Open Inventor or an extension module is licensed on this machine.
Namespace: OIV.Inventor.Lock
public static int Check( string productName, float version, string licenseString, bool printWarning, out string errReport )
: Product to be licensed (no blanks), e.g. OpenInventor or VolumeVizLDM.
: Version to be licensed (see ()).
: (optional) Embedded application password string, if any.
: If true, error and warning messages (if any) will be displayed to user.
: 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.
< 0 If product or version is NOT licensed on this machine. >= 0 If product and version are licensed and can be used.
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.