Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

AutoCAD profiles 'bugs' / weird behaviour

Moshe-A
Mentor

AutoCAD profiles 'bugs' / weird behaviour

Moshe-A
Mentor
Mentor

Hi Guys,

 

i have googled on this issue numerous time and found noting...so this one is for Experts

 

if you have (let's say) 2 profiles with some differences between them, when you change profiles (set current)

AutoCAD will apply some (if not most of them) settings from the current profile to the target profile.

 

i have discovered this last night when i tried to create another profile (beside <<Unnamed Profile>>)

with a different application loaded list on APPLOAD. on each profile switch, AutoCAD is coping the loaded application list to the target profile

i have also checked to see if this is done to other settings and found it is true!

 

this 'bug' is crossing version and it looks like AutoDesk does not aware on this.

 

Thanks in advance for your educated answer

Moshe

 

 

 

 

 

0 Me gusta
Responder
Soluciones aceptadas (1)
1.152 Vistas
11 Respuestas
Respuestas (11)

dmfrazier
Advisor
Advisor

I don't think the APPLOAD list of loaded applications is stored in the profile.  (There are many "settings" that are not stored in the profile and therefore would not necessarily be affected by changing the current profile.)

Perhaps you can test this out for yourself by exporting one of your profiles (to an ARG file) and examining it by opening it in a text editor.

cadffm
Consultant
Consultant

Some things stored in a Profile, Acad read this data at Start (from current Profile), from this Moment is it "current for the active session",

by closing Acad it is stored in current Profile, which can be another as your startprofile.

 

The List for SYSVARMON is one of these things too.

 

Sebastian

0 Me gusta

cadffm
Consultant
Consultant

Oh you talk about "loaded application list"

 

The "loaded Files List" is not stored, it is display the loaded files in current namespace. (I am hoping thats the right word)

 

*.lsp files is loaded to a document (DWT,DWG,DXF), change current drawing to file where the abc.lsp is not loaded,

  the *.lsp disappear from the list.

*.dll ist loaded in program session and you will see that from loading to AcadExit in the list.

*.arx you can unload during the session.

 

 

 

Sebastian

0 Me gusta

dgorsman
Consultant
Consultant

While you can switch profiles mid-session it's generally best that you start with the correct profile in the first place.  There's some effects with Enterprise/Main CUIx files and workspaces, support files that load at start-up, and so on.

 

This becomes very important when you have third-party application add-ons.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Me gusta

Moshe-A
Mentor
Mentor

thank you all for your replys

 

to make my self clear i'm talking about Startup suite list (and it does have a records there)

and i change profiles by running AutoCAD from command line switchs

 

C:\Program Files\Autodesk\AutoCAD 2015\acad.exe /p "myprofile"

 

and...i go into Regedit and AutoCAD does change the startup suit list

 

does Autodesk ever released a fix to this?

 

 

0 Me gusta

dmfrazier
Advisor
Advisor

You are correct: the Startup Suite contents are stored in the profile, in the registry, and this information is included in the ARG file when a profile is exported.

 

You are also correct that the Startup Suite contents do not appear to change correctly when switching from one profile (existing in the registry) to another profile (existing in the registry). (This is based on my seat of 2014.)

 

(Note that starting AutoCAD using the /p switch can set an existing profile current, but it cannot (does not) import a profile from an ARG file.)

 

It also appears that importing a saved profile from an exported ARG file, over-writing a registry-stored profile of the same name (if it exists), also fails to change the Startup Suite contents as you would expect it to based on the lines in the ARG file that (supposedly) store that information.

 

Looks like a "bug".

Moshe-A
Mentor
Mentor

DMFrazier,

 

1) Thank you for your comfirmation on this (i did check it with R2011 & R2015 - work the same)

 

2) i do not use arg file i do duplicate (with c# program) the default profile "<<Unnamed Profile>>" or any other one that is currently set

then call autocad with startup switches (to run script) as i mention before

either way it works bad the same.

 

3) (Note that starting AutoCAD using the /p switch can set an existing profile current, but it cannot (does not) import a profile from an ARG file.)

are you saying that if the profile already exist? and you call autocad with /p it will set it current but will not override the existing profile?

 

4) have you notice when switching to another profile autocad does copy the starup suite list of the current profile to the target profile?

and as i mention, it also copies other settings along (free on the house Emoticono muy feliz)

 

 

Moshe

 

 

 

0 Me gusta

Moshe-A
Mentor
Mentor
Solución aceptada

got an idea how to solve my problem... i will change the current profile directly in registry

this way i will pass over AutoCAD process of setting the current profile, YES!  Emoticono muy feliz

 

 

 

 

0 Me gusta

dmfrazier
Advisor
Advisor

"are you saying that if the profile already exist? and you call autocad with /p it will set it current but will not override the existing profile?"

 

No.  I'm saying that the /p switch can only set an existing profile (exists in the registry) current.  This means the profile you specify must already be one that would normally appear in the list of available profiles on the Profiles tab of the Options command. So, if the profile you specify does not exist in the registry, then AutoCAD will create a new profile (in the registry) based on default AutoCAD settings and it will name it based on the name you specify, and then set that profile current. (AutoCAD actually issues an alert before this happens.)

 

"have you notice when switching to another profile autocad does copy the starup suite list of the current profile to the target profile?"

 

I agree, based on my own limited testing, that AutoCAD seems to "distribute" the Startup Suite contents registry settings to all existing profiles (in the registry) when the Startup Suite contents are changed.  This is why I think you must do an import of a saved profile (ARG file) if you want to change Startup Suite contents by changing the profile. (But I'm not certain that this will work, either. Honestly, I have not had time to test this thoroughly.)

0 Me gusta

dmfrazier
Advisor
Advisor

"i will change the current profile directly in registry"

 

I think you will have to replace the registry settings with an exported profile (ARG file) which has the Startup Suite settings you want, before you can set that profile current.

0 Me gusta

Moshe-A
Mentor
Mentor

As i said (see above) firstly i duplicating the current profile to my profile (named it and i do not need ARG

cause i'm doing it by C Sharp program) then change the current default profile name (directly in registry)

to my profile and i have already test it and it works beautfuly.

(my only concern is the script file to be run smoothly with out interference at it's end comeback to my program

so i could restore the previous profile name and the user will sense no change in his profile)

 

i hope some one from Autodesk will see this thread and pass it to the Development Team.

 

Thank you very much

Moshe

 

 

 

 

 

0 Me gusta