Skip to content
On this page

Developer documentation

Integrate the Drawspan .NET SDK

Add licensing to a Windows plugin without making the host wait for the network. Start one handle, read its current state where work begins, and dispose it when the plugin unloads.

Quick start

Install Drawspan.Client.V1 from NuGet, add the generated vendor configuration, and start one license handle for the lifetime of your plugin. See installation commands and supported runtimes.

App.cs
using Drawspan.Client;

_license = DrawspanLicense.Start(new DrawspanOptions
{
    ProductId = "your-product-id",
    VendorConfig = YourVendorConfig.Instance,
    HostApp = "Your host",
    HostVersion = "2026"
});

Before protected work, read Status. Licensed and Warning allow work; Unlicensed does not.

Follow the integration path

Rules to keep

  • Keep one DrawspanLicense handle for the plugin lifetime.
  • Read Status again where each protected action begins.
  • Marshal from StateChanged before touching host UI APIs.
  • Open ShowResolutionUi() only from a control the person chose.
  • Follow the guide for Revit, Rhino and Grasshopper, or Windows desktop for your integration.