How to change Registry Keys for Acad?

How to change Registry Keys for Acad?

Anonymous
Not applicable
424 Views
2 Replies
Message 1 of 3

How to change Registry Keys for Acad?

Anonymous
Not applicable
I am pretty familiar with the Registry. I just don't know how to change
entries programmically. Can anyone help me out with an example? Thanks for
the help in advanced.

Bryan
0 Likes
425 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
i'm using SaveSetting to save infomation to the registry and GetSetting to read the infomation how it works "see help file in vb"
0 Likes
Message 3 of 3

Anonymous
Not applicable
I am not sure if this is a question or answer
for a question.

Anyway, SaveSettings method od VB creates registry
keys only under one fixed key in the registry. Hence to access/modify
anywhere in the registry.

Use Win32 API functions
RegOpenKeyEx

RegSetValueEx

 

or the WScript object.

 

example:


'create a instance of Wsript object
Set po_scr =
CreateObject("Wscript.Shell")
'get the Autocad class ID
ps_CLSID =
po_scr.regread("HKCR\AutoCAD.Application.15\CLSID\")

 

Cheers,

Murali


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
i'm
using SaveSetting to save infomation to the registry and GetSetting to read
the infomation how it works "see help file in vb"
0 Likes