Jump to content

Quick Access Toolbar disappears when saving a new workspace


Recommended Posts

Posted

I am currently testing my configurations for deploying AutoCAD 2014, currently I'm testing with 2013 before changing my licenses.

 

Anyway I have set up a default workspace that will load for everyone and then on the first run will be saved as the "loginname" to personalise it. My default CUI has the QAT loaded from an 'Enterprise' but when I do a .WSSAVE and define a new name the QAT disappears from the new workspace, I'm going round in circles trying to work out why this is happening. I'm using the following code from a sartup.scr to perform the name change:-

(vl-load-com)
(defun c:SetOrMakeUserWs (/ wsTemplate _WsCurrent user)
 ;; Change this string to be the name of the standard
 ;; workspace to be copied as the user workspace:
 (setq wsTemplate "SWD-2013")
 ;; _WsCurrent sub-function:
 (defun _WsCurrent (workspace)
   (if (vl-catch-all-error-p
         (vl-catch-all-apply
           'setvar
           (list 'wscurrent workspace)
         )
       )
     nil
     T
   )
 )
 ;;
 ;; Main code:
 ;;
 ;; If you cannot set the user's workspace current
 ;; (meaining it does not exist)
 (if (not (_WsCurrent (setq user (getvar 'loginname))))
   ;; Attempt to set the template workspace current
   (if (_WsCurrent wsTemplate)
;;(_WsCurrent wsTemplate)
     (progn
       ;; If successful, save the template workspace
       ;; as the user workspace
       (command "._wssave" user)
       ;; Now that the user workspace exists, set
       ;; it current
       (_WsCurrent user)
(command "._workspace" "delete" "SWD-2013" "y")
     )
   )
 )
;;(command "._workspace" "delete" "Default" "y")
 (princ)
)

(c:SetOrMakeUserWs)

 

Looking forward to some suggestions on where I'm going wrong.

Posted

Thanks nestly,

 

I'll be taking a copy of the information in that link to keep to hand. It may be related to the order, I seem to have resolved it but not from the 'Ent'.

 

I copied the QAT into the Main from the Ent and made this CUIX my new default, I've tested as three different users and success, all appears as I'd planned. The only issue is it now limits any future updated menu improvements that I could have rolled out through the Ent for the QAT but I can still control our company ribbon and menu drop downs so I'm not overly concerned.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...