Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Forcing Update to Registry

0 views
Skip to first unread message

Jeffery_P_Sanders

unread,
Apr 2, 2004, 12:43:22 PM4/2/04
to
I am attempting to modify the registry with vl-registry-write. I am adding a program to the startup suite. This works sometimes after restarting windows, restarting autocad, and starting a new drawing. Half of the time it is ignored. I have tried this with AutoCAD 2000 thru 2004 with the same results. Is there a simple solution? Any thoughts?
Thanks in advance.
Jeff Sanders

Matt Stachoni

unread,
Apr 2, 2004, 2:39:30 PM4/2/04
to
Got code?

Matt
msta...@comcast.net
msta...@bhhtait.com

On Fri, 02 Apr 2004 17:43:22 GMT, Jeffery_P_Sanders <nos...@address.withheld>
wrote:

JPSanders

unread,
Apr 7, 2004, 10:39:09 AM4/7/04
to
The code is fine. The registry is being modified.

I've recently discovered two things:

1. If you write to the registry and immediately exit AutoCAD the registry will be updated.

2. If you write to the registry and then open a new drawing before closing AutoCAD, the registry will not be updated.

I thought AutoCAD read the registry when starting up and stored the information in memory. When starting a new drawing it would get the values from memory. This makes sense. This explains the reason why AutoCAD ignores registry changes until after a restart. But, this does not explain the disappearance of registry changes.

Anyone have a grip on this issue?

Jeff Sanders

Matt Stachoni

unread,
Apr 7, 2004, 6:27:58 PM4/7/04
to
>2. If you write to the registry and then open a new drawing before closing AutoCAD, the registry will not be updated.

That's weird - vl-registry-write makes immediate modifications to my
Registry...(A2K2).

Test it with this command utility:

(defun c:regtest ()
(vl-registry-write
"HKEY_CURRENT_USER\\Software\\ZZ_MYAPP"
"ZZ_VALUE"
"MyData"
)
)

While AutoCAD is open, run Regedit and navigate to the HKCU\Software key. In
AutoCAD, run REGTEST, and in the Registry Editor hit F5 to refresh it. You
should see the ZZ_MYAPP key with the value ZZ_MYVALUE = "MyData."

Matt
msta...@comcast.net
msta...@bhhtait.com

0 new messages