Grasshopper

algorithmic modeling for Rhino

How is it possibile to have a .gha plugin asking for activation?

For example like goat or karamba.

Views: 636

Replies to This Discussion

You can create a class which inherits from GH_AssemblyPriority.

This class will be constructed and called before any other and it will allow you to suspend loading, for example if the user fails to validate.

--

David Rutten

david@mcneel.com

Hi David, thanks for the answer! Then, the class I create what should do?

I mean, How does that class verify and store the validation code?

Maybe this trascends GH and requires a better knowledge of C#?

This class can look up in a specific location on the user's drive for the license file (a simple .txt document might do). If the document exists and is valid, your assembly is loaded. otherwise is prompting for a license file.

No special or extremely complex coding needed.

Best,

M.

Thanks for this

Thanks!

Could you please provide a small sample ?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service