2

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!

  • Do you have a chance to update to Eyeshot 2022? – NineBerry Dec 08 '22 at 15:45
  • I might. I'll have to ask the company. What in the 2022 version would be the solution? Edit: oh, i see there is a LicenseManager Class – Adam Degerman Dec 08 '22 at 15:57
  • The 2022 version comes with sample code how to use the library in a Console application. There is also a new LicenseManager class that you can use to activate the license directly. – NineBerry Dec 08 '22 at 16:00
  • See https://documentation.devdept.com/2022/topic_00000000000056F8.html – NineBerry Dec 08 '22 at 16:03
  • I think it's quite strange how they had the ability to unlock in console applications in earlier version, then remove it, only to add it again. – Adam Degerman Dec 08 '22 at 16:04
  • I can see that there is an ASP.net WebForms sample in the 2021 version. You could check how the activation is done in that example. Sadly, I can't find a download of the trial version of the 2021 version – NineBerry Dec 08 '22 at 16:06
  • Well, thanks for the help berry hopefully I'm allowed to update. Else I hope someone might know a way to do it 2021 version – Adam Degerman Dec 08 '22 at 16:07
  • I've been looking all over for a 2021 trial version/samples, i sent an email to devdept, hopefully they can help. I appreciate you looking into if for me! – Adam Degerman Dec 08 '22 at 16:11
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/250270/discussion-between-nineberry-and-adam-degerman). – NineBerry Dec 08 '22 at 16:12

1 Answers1

3

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");
NineBerry
  • 26,306
  • 3
  • 62
  • 93