Matt
msta...@comcast.net
msta...@bhhtait.com
On Fri, 02 Apr 2004 17:43:22 GMT, Jeffery_P_Sanders <nos...@address.withheld>
wrote:
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
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