Ok, got a more difficult one for you. I have it writing the value to the registry now. The problem is that autocad must not be reading from the registry each time. How do I force autocad to get its values from registry again.
The actual thing I am doing is with Autocad MEP deviceadd command. I am trying to set the devicestyle before I run the command so that it will use the device I want it to. This is not implemented in the vba object it seems. I coudl do it with lots of sendcommands, but that might be a problem, since I would not know if the command had finished. and I hate sendcommand.