How to get registry key of running instance of AutoCAD

How to get registry key of running instance of AutoCAD

Ed__Jobe
Mentor Mentor
2,209 Views
3 Replies
Message 1 of 4

How to get registry key of running instance of AutoCAD

Ed__Jobe
Mentor
Mentor

I need to get HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R22.0\ACAD-1007:409\FixedProfile\General of the current instance of acad. The problem is that the section in blue can vary, for my app can run in multiple versions of acad. I can't use the exe path as an indication because that remains in "c:\program files\autodesk\autocad 2018" regardless of the vertical app. Is there a direct way of determining the proper key for FixedProfile?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Accepted solutions (1)
2,210 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant
Accepted solution

Hi,

Whate about using HostApplicationServices.UserRegistryProductkey?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

_gile
Consultant
Consultant

If you need to get AutoCAD registry keys from outside AutoCAD, you can see the little AutocadRegistryServices library at TheSwamp.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 4 of 4

Ed__Jobe
Mentor
Mentor

Thanks Gilles, that was exactly what I needed.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes