LicenseUtils

public static class LicenseUtils
License Manager Utilities.

Methods

AskUserForLicense

#Since v6.0
public static bool AskUserForLicense(int productType, bool standAlone, object parentWindow, string textMask, ValidateProductKeyDelegate validateProductKeyDelegate, OnLeaseChangedDelegate onLeaseChangedDelegate, string product_path, string product_title, Guid pluginId, Guid licenseId, LicenseCapabilities capabilities)
This version of Rhino.PlugIns.LicenseUtils.AskUserForLicense is used by Rhino C++ plug-ins.
productType (int)
standAlone (bool)
parentWindow (object)
textMask (string)
validateProductKeyDelegate (ValidateProductKeyDelegate)
onLeaseChangedDelegate (OnLeaseChangedDelegate)
product_path (string)
product_title (string)
pluginId (Guid)
licenseId (Guid)
capabilities (LicenseCapabilities)

AskUserForLicense

#Since v6.0
public static bool AskUserForLicense(int productType, bool standAlone, object parentWindow, string textMask, ValidateProductKeyDelegate validateProductKeyDelegate, OnLeaseChangedDelegate onLeaseChangedDelegate, VerifyLicenseKeyDelegate verifyLicenseKeyDelegate, VerifyPreviousVersionLicenseDelegate verifyPreviousVersionLicenseKeyDelegate, string product_path, string product_title, Guid pluginId, Guid licenseId, LicenseCapabilities capabilities)
productType (int)
standAlone (bool)
parentWindow (object)
textMask (string)
validateProductKeyDelegate (ValidateProductKeyDelegate)
onLeaseChangedDelegate (OnLeaseChangedDelegate)
verifyLicenseKeyDelegate (VerifyLicenseKeyDelegate)
verifyPreviousVersionLicenseKeyDelegate (VerifyPreviousVersionLicenseDelegate)
product_path (string)
product_title (string)
pluginId (Guid)
licenseId (Guid)
capabilities (LicenseCapabilities)

CheckInLicense

#Since v5.0
public static bool CheckInLicense(Guid productId)
Checks in a previously checked out license to the Zoo server from which it was checked out.
productId (Guid)The Guid of the product that you want to check in.
true if the license was checked in successful. false if not successful or on error.

CheckOutLicense

#Since v5.0
public static bool CheckOutLicense(Guid productId)
Checks out a license that is on loan from a Zoo server on a permanent basis.
productId (Guid)The Guid of the product that you want to check out.
true if the license was checked out successful. false if not successful or on error.

ConvertLicense

#Since v5.0
public static bool ConvertLicense(Guid productId)
Converts a product license from a standalone node to a network node.
productId (Guid)The Guid of the product that you want to check in.
true if the license was successfully converted. false if not successful or on error.

DeleteLicense

#Since v6.0
public static bool DeleteLicense(Guid productId)
Deletes a license along with its license file.
productId (Guid)

Echo

#Since v5.0
public static string Echo(string message)
Test connectivity with the Zoo.
message (string)

GetLicense

#Since v6.0
public static bool GetLicense(ValidateProductKeyDelegate validateProductKeyDelegate, OnLeaseChangedDelegate leaseChangedDelegate, int product_type, int capabilities, string textMask, string product_path, string product_title, Guid pluginId, Guid licenseId)
This version of Rhino.PlugIns.LicenseUtils.GetLicense is used by Rhino C++ plug-ins.
validateProductKeyDelegate (ValidateProductKeyDelegate)
leaseChangedDelegate (OnLeaseChangedDelegate)
product_type (int)
capabilities (int)
textMask (string)
product_path (string)
product_title (string)
pluginId (Guid)
licenseId (Guid)

GetLicense

#Since v6.0
public static bool GetLicense(ValidateProductKeyDelegate validateProductKeyDelegate, OnLeaseChangedDelegate leaseChangedDelegate, VerifyLicenseKeyDelegate verifyLicenseKeyDelegate, VerifyPreviousVersionLicenseDelegate verifyPreviousVersionLicenseKeyDelegate, int product_type, int capabilities, string textMask, string product_path, string product_title, Guid pluginId, Guid licenseId)
validateProductKeyDelegate (ValidateProductKeyDelegate)
leaseChangedDelegate (OnLeaseChangedDelegate)
verifyLicenseKeyDelegate (VerifyLicenseKeyDelegate)
verifyPreviousVersionLicenseKeyDelegate (VerifyPreviousVersionLicenseDelegate)
product_type (int)
capabilities (int)
textMask (string)
product_path (string)
product_title (string)
pluginId (Guid)
licenseId (Guid)

GetLicenseCapabilities

#Since v5.5
public static LicenseCapabilities GetLicenseCapabilities(int filter)
Converts an integer to a LicenseCapabilities flag
filter (int)

GetLicenseStatus

#Since v5.0
public static LicenseStatus[] GetLicenseStatus()
Returns the current status of every license for UI purposes.

GetLicenseType

#Since v5.0
public static int GetLicenseType(Guid productId)
Returns the contentType of a specified product license
productId (Guid)

GetOneLicenseStatus

#Since v5.5
public static LicenseStatus GetOneLicenseStatus(Guid productid)
Returns the current status of a license for UI purposes.
productid (Guid)

Initialize

#Since v5.0
public static bool Initialize()
Initializes the license manager.

IsCheckOutEnabled

#Since v5.0
public static bool IsCheckOutEnabled()
Returns whether or not license checkout is enabled.

LicenseOptionsHandler

#Since v6.0
public static bool LicenseOptionsHandler(Guid pluginId, Guid licenseId, string productTitle, bool standAlone)
pluginId (Guid)
licenseId (Guid)
productTitle (string)
standAlone (bool)

LoginToCloudZoo

#Since v6.0
public static bool LoginToCloudZoo()

LogoutOfCloudZoo

#Since v6.0
public static bool LogoutOfCloudZoo()

ReturnLicense

#Since v5.0
public static bool ReturnLicense(Guid productId)
OBSOLETE - REMOVE WHEN POSSIBLE.
productId (Guid)

ShowBuyLicenseUi

#Since v5.5
public static void ShowBuyLicenseUi(Guid productId)
productId (Guid)

ShowLicenseValidationUi

#Since v5.0
public static bool ShowLicenseValidationUi(string cdkey)
ShowLicenseValidationUi
cdkey (string)

ShowRhinoExpiredMessage

#Since v6.0
public static bool ShowRhinoExpiredMessage(Mode mode, ref int result)
Show Rhino or Beta expired message
mode (Mode)
result (ref int)