.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Local machine vs current user, where does AutoCAD read it's user profiles?

7 REPLIES 7
Reply
Message 1 of 8
ottosson_mathias
475 Views, 7 Replies

Local machine vs current user, where does AutoCAD read it's user profiles?

Hi

 

How do I know which user profile is going to be used when I start AutoCAD or accoreconsole?

I have seen user profiles with the same name in both HKEY_LOCAL_MACHINE as well as HKEY_CURRENT_USER in the Windows registry. I want to modify some values in a custom profile under current user, but how can I be sure AutoCAD reads from current user and not local machine?

 

Thanks!

7 REPLIES 7
Message 2 of 8
SENL1362
in reply to: ottosson_mathias

it depends to how you start AutoCAD or CoreConsole.

 

When you Add '/p "..\youreprofile.arg"' to the AutoCAD start (lnk) then the name of the profile will be looked up in de Registry "HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R24.3\ACAD-7101:409\Profiles\...".

When found these Registry settings will be used, otherwise the settings from the Arg file will be loaded into the registry and then used.

Without the addition to the AutoCAD start, the current Profile will be used:

HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R24.3\ACAD-7101:409\Profiles\default=CurrentProfileName

 

Message 3 of 8
ottosson_mathias
in reply to: SENL1362

Thanks, so if I start using the /p switch it will always use the HKCU profiles (if it exist)? My experience is that if the profile does not exist it will be created in the registry. But when will the HKLM profiles be used then?

Message 4 of 8
SENL1362
in reply to: ottosson_mathias

I have never seen any AutoCAD profiles in HKLM, other than the default <<Unnamed Profile>>
Can you show us the Registry location?
And what version of AutoCAD?

Message 5 of 8
ottosson_mathias
in reply to: SENL1362

ottosson_mathias_0-1710791653515.png

 

 

AutoCAD 2024, profiles located in the same path as for current user, but in local machine.

Message 6 of 8
kdub_nz
in reply to: ottosson_mathias

Perhaps save a profile with a unique name, close AutoCAD, then do a registry search for the name.

. . . just to make sure.


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.
Sometimes the question is more important than the answer.

class keyThumper<T> : Lazy<T>;      another  Swamper

Message 7 of 8
ottosson_mathias
in reply to: kdub_nz

From what I've seen, new profiles are created in HKCU. But since I'm deploying features to users I need to be sure that they always end up there and not in HKLM. Sure I could do an initial check each time, but that feels excessive...

But the question then is why there are profiles in HKLM if they are never used... In what scenarios are they used?

Message 8 of 8
SENL1362
in reply to: ottosson_mathias

In normal working conditions  HKLM is not accessible for the user. Exceptions are Installations of course.

I suppose AutoCAD copies this HKLM version of the profile during the First Run Operation.

(I'll assume you're company is using a Roaming Windows environment)

Try this (for AutoCAD 2024):

1. Change the HKLM version of the default Profile.

2. Rename HKCU\SOFTWARE\Autodesk\AutoCAD\R24.3 and %appdata%\Autodesk\AutoCAD 2024\R24.3
which wil enforce the First Run Operation of AutoCAD (HKCU, etc)

3. Start AutoCAD
After the First Run Operation check the HKCU version of the default Profile for the change you made.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report