Keywordkid Posted August 15, 2013 Posted August 15, 2013 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. Quote
nestly Posted August 15, 2013 Posted August 15, 2013 I can't help you with the code, but perhaps it could be related to the order the CUI's are loaded? http://www.blog.cadnauseam.com/2008/09/01/what-is-loaded-at-autocad-startup-and-when/ Quote
Keywordkid Posted August 15, 2013 Author Posted August 15, 2013 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. Quote
Recommended Posts
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.