if you use AutoCAD's command "open", on the left side there are short-cuts. I want to retreive the names and paths of those shortcuts. How do I get them? I know they are in the registry, but the registry path is quite complicated and I fear the path will be different for other systems with other AutoCAD versions. Or is there some kind of logic to such a registry path of AutoCAD?
Solved! Go to Solution.
Try this one
Dim appver As Object = TryCast(My.Computer.Registry.GetValue("HKEY_CURREN
T_USER\Software\Autodesk\AutoCAD", "CurVer", Nothing), Object) If appver IsNot Nothing Then MsgBox("you have " + "Autocad.Application." + appver.ToString() + " installed") Else MsgBox("Out of luck, sorry, use your old code instead") End If
Ty for your reply.
the registry key that contains the shortcuts in 'OPEN' looks something like this for AutoCAD2009:
R17.2 means it is AutoCAD2009, which you can get with the code you suggested. But what does "ACAD-7005:409" stand for?
Please refer to this for the details on ProductID and LocaleID :
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register