Keywordkid,
Please read the CODE POSTING GUIDELINES and edit your post.
acad.lsp only loads once as long as you have ACADLSPASDOC = 0
Registered forum members do not see this ad.
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:
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:Code:/w "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?Code:(defun-q mystartup () (command "_wscurrent" "SWD Drafting") )
Keywordkid,
Please read the CODE POSTING GUIDELINES and edit your post.
acad.lsp only loads once as long as you have ACADLSPASDOC = 0
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()
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.
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?
Add your code to ACAD.lsp and (SETVAR "acadlspdoc" 0) to ACADDOC.lsp
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()
Thanks SLW210, this works a treat!![]()
You are welcome!![]()
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()
Registered forum members do not see this ad.
FWIW -
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.
"Potential has a shelf life." - Margaret Atwood
Bookmarks