> My understanding:
> There is the system variable "MENUBAR" which toggels the visibility
Yes AND NO! This can't be answered so easy! It's depending on some things.
In theory and without going into profiles and work areas: Yes
> There is the part in the cuix that defines what is part of my menubar
That's right, but the <current Workspaces> and the saved workspaces are
storing the information about available GUI parts are visible or not.
>>"If I open AutoCAD with my Profile the variable "MENUBAR" is 0."
The way I showed above (or with a desktoplink with the same content) ?
It is important how you open ACAD, how to force the Profile and if you used the /w parameter or not.
But the variable MEENUBAR should be 1, like you leaved the profile with this setting!
Please try this:
Set menubar to 1, close acad, open acad by doubleclick on a .dwg file
Right profile loaded, right WS loaded -> Check MENUBAR again.
1 or 0 ?
If 0, it does not work as it should! We have to find the issue first.
> I thought the workspace changes accordingly to the profile.
The full story needs a lot of sentences (as you can see by my reply)
If you are talking about to switch a profile during a session,
see my note above: bad news for you, because the profiles concept isn't working 100& the way the most thinking.
(when toggle profiles)
Toggle profiles does not a full "set workspace current" like WSCURRENT would do that,
or better: The profile does not change alle the stored settings.
MENUBAR is stored in Profiles, but if you switch from one(0) to another(1) profile,
menubar will not set to 1.
There are other things too, a nightmare how adesk handles profile toggles:
Loaded applocation, SYSVARMON and Workspaces - I don't know what more.
TEST: Toggle your profile,
followed by WSCURRENT<enter><enter>
> To see if my profile is causing the issue I set the "AutoCAD Architecture (global)" as current,
So you toggle a Profile during the session..
>closed AutoCAD and opend it again by double-click on a drawing (cause I thought it will start it with the last settings used)
Right!
>In this szenario the "MENUBAR" did not change it's value.
Perfect
But the same will happen with your profile!
Set your profile current, set menubar =1 and make sure it is visible
close acad
start acad by doubleclick on .dwg
Menubar should be 1 and visible
>Used WSCURRENT to set MyWS current
No need, it is current after wssave
>Menubar is visible
>Closed AutoCAD
>Started AutoCAD by "C:\Program Files\Autodesk\AutoCAD 2022\acad.exe" /product "ACA" /p "MyProfile"
>Menubar not visible
>"MENUBAR" = 0
I would say, this is not the case with a standard installation
>How I usually start my AA:
>"C:\Program Files\Autodesk\AutoCAD 2022\acad.exe" /ld "C:\Program Files\Autodesk\AutoCAD 2022\AecBase.dbx" /p "C:\HSCAD\Architecture\MyProfile.arg" /product "ACA" /language "en-US"
>The MyProfile.arg contains:
Thanks for sharing
You know that, onced created a profile "MyProfile", the .arg file is out the game. ARG-file content is used just for the first time, if no profile with the name is available