LicenseInfo

Namespace: Digi21.DigiNG
Assembly: Digi21.DigiNG.Plugin

Identification of the dongle used to run Digi3D.AI.

public sealed class LicenseInfo

The class has no public constructors. Obtain the object through the static DigiNG.LicenseInfo property, which throws NullReferenceException if no drawing window is open.

Properties

Property Description
string KeyID Dongle identifier. The value is read when the drawing window is activated.

Example

This command writes the dongle identifier to the results window:

using Digi21.Digi3D;
using Digi21.DigiNG;
using Digi21.DigiNG.Plugin.Command;

namespace Ejemplos;

[Command(Name = "ESCRIBE_LLAVE")]
public class EscribeLlave : Command
{
    public EscribeLlave()
    {
        Initialize += (sender, e) =>
        {
            Digi3D.OutputWindow.Show();
            Digi3D.OutputWindow.WriteLine($"Llave de protección: {DigiNG.LicenseInfo.KeyID}");
            Dispose();
        };
    }
}