How do I unlock Eyeshot in C# console-app

391 Views Asked by At

I’m a student doing a project with the company. As part of this project, I’m developing a console application using eyeshot 2021. I’ve used an activation key before for a WPF project and that application worked fine.

This console-app is created under the same solution but I get the message that I have no license when running BallPivoting.DoWork(). Because this is a console-app I cannot use the class model which requires a Viewport/PresentationFramework. I was therefore wondering how to unlock the application.

I've seen old documentation that says to use UtilityEx.Unlock(), but that does not work for Eyeshot 2021

Thanks for the support!

1

There are 1 best solutions below

0
NineBerry On

In Eyeshot version 2022 you can use the devDept.LicenseManager.Unlock method to activate the library.

Use it like this:

devDept.LicenseManager.Unlock(typeof(devDept.Eyeshot.Workspace), "YOURACTIVATIONCODEHERE");