.NET

Reply
Valued Contributor
Ertqwa
Posts: 98
Registered: ‎10-03-2011
Message 1 of 5 (268 Views)
Accepted Solution

Get short-cuts - open

268 Views, 4 Replies
08-18-2012 11:53 PM

Hello Forum,

 

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?

 

Thank you.

Ty for your reply.

 

the registry key that contains the shortcuts in 'OPEN' looks something like this for AutoCAD2009:

 

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.2\ACAD-7005:409\Profiles\<<Profile>>\Dialogs\AllAnavDialogs

 R17.2 means it is AutoCAD2009, which you can get with the code you suggested. But what does "ACAD-7005:409" stand for?

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 5 (249 Views)

Re: Get short-cuts - open

08-19-2012 12:04 PM in reply to: Ertqwa

Try this one

Dim appver As Object = TryCast(My.Computer.Registry.GetValue("HKEY_CURRENT_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

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Valued Contributor
Ertqwa
Posts: 98
Registered: ‎10-03-2011
Message 3 of 5 (203 Views)

Re: Get short-cuts - open

09-26-2012 11:27 AM in reply to: Hallex

Ty for your reply.

 

the registry key that contains the shortcuts in 'OPEN' looks something like this for AutoCAD2009:

 

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.2\ACAD-7005:409\Profiles\<<Profile>>\Dialogs\AllAnavDialogs

 R17.2 means it is AutoCAD2009, which you can get with the code you suggested. But what does "ACAD-7005:409" stand for?

ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 4 of 5 (186 Views)

Re: Get short-cuts - open

09-28-2012 07:32 AM in reply to: Ertqwa

Please refer to this for the details on ProductID and LocaleID :

 

http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=9120436&linkID=9240617

 

http://through-the-interface.typepad.com/through_the_interface/2006/09/automatic_loadi.html

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Valued Contributor
Ertqwa
Posts: 98
Registered: ‎10-03-2011
Message 5 of 5 (175 Views)

Re: Get short-cuts - open

09-28-2012 10:35 AM in reply to: Balaji_Ram

Great, ty!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.