diegosouza / adskflex_core

Abstraction to deal with AutoCAD's licenses file (adskflex.opt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ADSK Flex (.NET Core)

Build Status

Why?

To manage programmatically AutoCAD's licenses you have to deal with the adskflex.opt file. The options file takes several options. To deal with them easily, you may use this library.

How?

try
{
    var lines = AutoCadFile.GetLines(fileContent);
    var options = AutoCadFile.GetOptions(lines);
    var adskflex = new ADSKFlex(options);

    // now you'd change adskflex object to later call .ToString()
}
catch (InvalidAutoCadOption ex)
{
    // your way to deal with the exception
}

Tests

dotnet test ADSKFlexCoreTests

About

Abstraction to deal with AutoCAD's licenses file (adskflex.opt)


Languages

Language:C# 100.0%