Is there a way to read product key from API?

Is there a way to read product key from API?

adam.krug
Advocate Advocate
481 Views
1 Reply
Message 1 of 2

Is there a way to read product key from API?

adam.krug
Advocate
Advocate

To read Revit's serial number from API we can reference UIFrameworkServices.dll and use InfoCenterService class.

 

But how about the product key? Is there any way to read it from the API?

0 Likes
482 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

I was surprised that you also brought up UIFrameworkServices today, after it was just mentioned in another thread. .

  

Then I noticed that the approach you describe was already mentioned by The Building Coder back to Determine Revit Demo Mode and Serial Number: 

  

https://thebuildingcoder.typepad.com/blog/2013/01/determine-revit-demo-mode-and-serial-number.html

  
Reference the UIFrameworkServices.dll assembly and read the Revit serial number with the InfoCenterService class static method ProductSerialNumber.

  

However, just off the top of my head, I would assume that the product key is inaccessible and carefully protected.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes