custom toolbar not docking

custom toolbar not docking

jdfnnl
Advocate Advocate
1,204 Views
15 Replies
Message 1 of 16

custom toolbar not docking

jdfnnl
Advocate
Advocate

I have a very simple workspace that has a toolbar with a position that is not correctly saved. This was not a problem until I started switching workspaces and this toolbar would revert to the floating position when returning to this workspace. I would like to redefine the position of this toolbar from here:

 

2023-08-13 10_41_25-Autodesk AutoCAD 2015 - [20 El Prado [roof model].dwg].png

to here:

 

2023-08-13 10_41_40-Autodesk AutoCAD 2015 - [20 El Prado [roof model].dwg].png

as I look in the 'cui' dialog at the entry for this toolbar, it shows the default location as (1,1) and 'top' but there are no settings for being docked. I would like to lock this toolbar docked under the menu bar.

 

2023-08-13 10_47_38-Autodesk AutoCAD 2015 - [20 El Prado [roof model].dwg].png

0 Likes
1,205 Views
15 Replies
Replies (15)
Message 2 of 16

paullimapa
Mentor
Mentor

you can always run this code to force it to dock:

(vl-cmdf "_.Toolbar" "Minimal" "_T" "0,0")

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 16

jdfnnl
Advocate
Advocate

Code works, though I am looking for a way to save the position to a cuix file so I don't need to reposition the toolbar each time switching to the workspace. I assume the cui dialog is capable of this, though I am not sure where ..

0 Likes
Message 4 of 16

Michiel.Valcke
Advisor
Advisor

cuix don't save positions of palettes or toolbars, workspaces do, make a workspace and make it your default.

0 Likes
Message 5 of 16

jdfnnl
Advocate
Advocate

I was referring to the .cuix file created when saving a workspace.

Can I define the toolbar position in the workspace to save as a cuix file?

Correct me if I misunderstand.

0 Likes
Message 6 of 16

Michiel.Valcke
Advisor
Advisor

honestly I haven't used toolbars since they introduced the ribbon in 2013, but unless you're encountering a bug. I would expect that if you save the position in a workspace and you save the workspace as part of a .cuix file it should remember its position. But if you share your .cuix with other workstations, you might notice it still needs adjusting, because it is a different system so it might be affected by different graphic settings / screen size etc...

0 Likes
Message 7 of 16

jdfnnl
Advocate
Advocate

okay here is my workspace file

0 Likes
Message 8 of 16

paullimapa
Mentor
Mentor

well if for some reason your toolbar doesn't go back to the saved workspace position, your best bet is to use code by creating a function like WSM to restore your Minimal workspace & dock your Minimal toolbar on the top row:

(defun c:WSM ()(vl-cmdf "_.WSCurrent" "Minimal" "_.Toolbar" "Minimal" "_T" "0,0"))

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 9 of 16

Michiel.Valcke
Advisor
Advisor

I'm rereading the post and I'm not sure why you wish to export the workspace to a cuix file. As far as I'm understanding the problem is on your own workstation. You don't have to save the workspace to a separate cuix. you can just add it to the main cuix. (or just don't care about .cuix files)

Adjust the toolbar's position and re-save the workspace. Doesn't that solve your problem? Are you using external monitors and switching a lot between them?

0 Likes
Message 10 of 16

pendean
Community Legend
Community Legend
@jdfnnl are you fighting LOCKUI setting by chance?

Otherwise... your old 2015 is messed up most likely, or damaged CUIx, or a locked CUIx that does not allow for editing, or... ? We seem to be able to dock toolbars in 2022-23-24 here in our office all day long.
0 Likes
Message 11 of 16

jdfnnl
Advocate
Advocate

It seems like a basic configuration: I am surprised there is not a setting for docking toolbars as there is for palettes:

 

2023-08-14 10_31_53-Customize User Interface.png

 

@Michiel.Valcke reason to save the cuix files is to reload on other machines or after a system restore. The CUI dialog seems so archaic that I have generally gone with the most basic operation of saving my 'minimal' workspace in the transfer tab 'customizations in new file' pane. Are you suggesting saving the workspace in a different way for use at a later time? I actually tried clicking the save buttons under the 'customizations in main file' and 'customizations in all files' panes but the button doesn't respond. Could this be how you are suggesting saving the main cuix?

 

2023-08-14 11_21_52-Customize User Interface.png

Is there a goto method that people have for saving their workspaces for setting up new systems?

0 Likes
Message 12 of 16

pendean
Community Legend
Community Legend

@jdfnnl wrote:

It seems like a basic configuration: I am surprised there is not a setting for docking toolbars as there is for palettes....


AutoCAD2015 users are going to be tough to find here to help you diagnose the issue. Sorry. You should be able to drag-and-drop it into place too with your mouse button.

 

AND... Autodesk wants all of us to give up on Toolbars, so your "ask" is not likely to ever happen. But you sure can shoot for that yourself by asking for it here https://www.autodesk.com/company/contact-us/product-feedback 

 

In more modern versions we all have the QAT to satisfy toolbar needs wit the Ribbon, if you ever upgrade, it's good for 100+icons above or below the Ribbon https://www.google.com/search?q=autocad+qat 

0 Likes
Message 13 of 16

paullimapa
Mentor
Mentor

Even if there's an "Allow Docking" option under Toolbars to match with Palettes (which each behave differently so there are different features to enable vs disable), this option just allows or prevents the user from docking it. What you're looking for is already there which is under Orientation. As long as Floating is not selected, any of the other options are supposed to dock the Toolbar.  Since in your case it's not staying docked where you last left it when switching to your Minimal workspace, then either there's a bug with the old AutoCAD version or there's a problem with your system. Perhaps you have access to another computer that has 2015 installed where you can test. Or try installing the latest 2024 version and see if the problem is resolved.

paullimapa_0-1692047721231.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 14 of 16

jdfnnl
Advocate
Advocate

Well I enabled 'Automatically save workspace settings' and the various elements seem to be sticking. I would still like to know how to lock the current configuration into a cuix file so I am not dealing with floating toolbars upon restoring my settings to a new system. Is there a straightforward way of ensuring this.

 

Why do the save buttons here not respond when clicking them?

 

2023-08-14 21_50_15-Customize User Interface.png

2023-08-14 21_50_01-Customize User Interface.png

  

0 Likes
Message 15 of 16

cadffm
Consultant
Consultant

Hi,

 

>>"Automatically save workspace"

Stupid option, disable it and save your workspace manually if you want to do it.

 

Save to cuix.

WSSAVE

 

Save button.

They works, the problem is by ws(auto)save or restore- function.

I didn't checked it, it doesn't matter.

 

Offtopic:

Please stop to use the quick reply formular, start to use the reply buttons 

if you replying to a specific post.

You always replying to yourself and it is harder to follow you!

 

PS; U can use PAINT or all other graphic programs, also word and other tools to combine multiple screenshots.

 

 

Sebastian

0 Likes
Message 16 of 16

pendean
Community Legend
Community Legend

@jdfnnl wrote:

.... I would still like to know how to lock the current configuration into a cuix file so I am not dealing with floating toolbars upon restoring my settings to a new system. Is there a straightforward way of ensuring this.


LOCKUI command as mentioned before and explained in HELP in 2015 too

https://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-19C5EEB0-D2DD-4726-89A7-3D346B513715

 

Online tutorials and overviews abound too, like

https://cadsetterout.com/autocad-tutorials/lock-down-the-user-interface/

https://allaboutcad.com/how-to-lock-autocads-user-interface/

 

 

 

0 Likes