Keywordkid Posted June 20, 2012 Posted June 20, 2012 Using ACAD 2012 I have an enterprize cui which contains a company workspace that I'd like all users to get as a starting point. I have tried using a switch on the shortcut to load the workspace but it refuses to open the desired wksp: /w "SWD drafting" I have found I can add a command in the acaddoc to achieve this but that has the problem of loading every time a drawing is opened: (defun-q mystartup () (command "_wscurrent" "SWD Drafting") ) Is there a way to get an initial company startup but allow users to swap to their workspaces after and remain on them when changing dwg files? Quote
SLW210 Posted June 20, 2012 Posted June 20, 2012 Keywordkid, Please read the CODE POSTING GUIDELINES and edit your post. acad.lsp only loads once as long as you have ACADLSPASDOC = 0 Quote
Keywordkid Posted June 20, 2012 Author Posted June 20, 2012 Edited post, hope I've set this out properly now? Can I add ACADLSPASDOC = 0 into my acaddoc? Is this how it would be formated? Still getting to grips with lisp! Thanks. Quote
Keywordkid Posted June 20, 2012 Author Posted June 20, 2012 My settings for ACADLSPASDOC are already set to 0 but the workspace still loads each time I change drawings even if a different wksp was preset? Quote
SLW210 Posted June 20, 2012 Posted June 20, 2012 Add your code to ACAD.lsp and (SETVAR "acadlspdoc" 0) to ACADDOC.lsp Quote
BlackBox Posted June 20, 2012 Posted June 20, 2012 FWIW - Using ACAD 2012 I have an enterprize cui which contains a company workspace that I'd like all users to get as a starting point. I have tried using a switch on the shortcut to load the workspace but it refuses to open the desired wksp: /w "SWD drafting" I have found I can add a command in the acaddoc to achieve this but that has the problem of loading every time a drawing is opened: (defun-q mystartup () (command "_wscurrent" "SWD Drafting") ) Is there a way to get an initial company startup but allow users to swap to their workspaces after and remain on them when changing dwg files? Just to offer another approach, we used to force-load a workspace through the application icon's /b switch, which would load a Script (SCR) that resided in the user's personal network space (which is incorporated into our SFSP). ** Edit - While seemingly unnecessary, as AutoCAD _should_ restore the previously active workspace at last close, this method worked quite well for us in years past. 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.