Author Topic: Retrieving and Setting Autocad Registry Settings  (Read 5164 times)

0 Members and 1 Guest are viewing this topic.

jjs

  • Guest
Retrieving and Setting Autocad Registry Settings
« on: April 27, 2007, 10:33:52 AM »
Having trouble figuring out the appname and section
Code: [Select]
varreturn = GetSetting("HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.1\ACAD-6006:409\Profiles\AutoCAD MEP (US Imperial)\Dialogs", "AecbElec55-DeviceAdd", "SymbolName", "test")
Anybody done this before want to give me a hand?


Chuck Gabriel

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #2 on: April 27, 2007, 12:26:25 PM »
That was too easy.  :-)

jjs

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #3 on: April 27, 2007, 01:07:10 PM »
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.

Chuck Gabriel

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #4 on: April 27, 2007, 01:32:23 PM »
I believe AutoCAD only reads settings from the registry at load time (for the most part), so registry hacking probably won't prove to be a very effective way to change settings on a live session.

Guest

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #5 on: April 27, 2007, 01:39:07 PM »
I don't think there's a straight-forward way to add a device using VBA (not that I've found anyways).  You're most likely going to have to use SendCommand for some of this.    :-(

jjs

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #6 on: April 27, 2007, 02:21:58 PM »
chuck, back in the vbdesign days, I thought you had some program you needed to install and you needed to change the registry and randall figured out a way to get it to update. It was either you or hatch i thought.

Chuck Gabriel

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #7 on: April 27, 2007, 02:59:21 PM »
chuck, back in the vbdesign days, I thought you had some program you needed to install and you needed to change the registry and randall figured out a way to get it to update. It was either you or hatch i thought.

It must've been Hatch (but wouldn't he have just answered his own question). :D

Dnereb

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #8 on: May 09, 2007, 05:29:09 PM »
chuck, back in the vbdesign days, I thought you had some program you needed to install and you needed to change the registry and randall figured out a way to get it to update. It was either you or hatch i thought.

Did you search Expresso Café for it?

jjs

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #9 on: May 09, 2007, 11:56:53 PM »
I have the version he gave away a long time ago. But the only way I have to search it is with windows search. I could not find out how to make windows search use two words for the search such as
registry AND reload

it would always search for any of the words I type in. Do you know of any other way to search it?

Dnereb

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #10 on: May 10, 2007, 03:37:23 AM »
Mmmmm,

I've bought a version less then a year before cadvaults shutdown.
The html structure is quite organized. I'm currently at my day time job.
And I don't have expresso here. I will search it tonight to see if randall included something that fits your description.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Retrieving and Setting Autocad Registry Settings
« Reply #11 on: May 10, 2007, 04:20:57 AM »
I've just been scanning a couple of backup cd's.
Came across a heap of PM backups and forum Page backups.

To those who made that time a pleasure, thanks. You know who you are.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Dnereb

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #12 on: May 10, 2007, 09:57:31 AM »
Grmpfffffff, you had to exclude me didn't you.... ;-)

Dnereb

  • Guest
Re: Retrieving and Setting Autocad Registry Settings
« Reply #13 on: May 10, 2007, 04:55:21 PM »
jjs,

I've searched my version and here's no article that hints on reloading changed registry values as far as I could find. :-(

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Retrieving and Setting Autocad Registry Settings
« Reply #14 on: May 10, 2007, 08:02:56 PM »
Grmpfffffff, you had to exclude me didn't you.... ;-)

Hi Berend ..

Nope !  :-)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.