The Courage Dog Posted June 14, 2009 Posted June 14, 2009 :(Hi, I have several WORKSPACE saved on my autocad. is there lisp or a way to suprress the message "Do you wish to replace it? [Yes/No]? " when choosing SAveas from the workspace selection if that particular workspace already exists? What i do is that i keep on replacing workspace everytime i change PROFILE so that the profile settings (i.e. support file paths, toolbars, etc...) will appear or active again when i close & open my autocad. hope i explained it well.. thanks Quote
VVA Posted June 14, 2009 Posted June 14, 2009 How about this (defun C:SW () ;;;Save WorkSpace (command "_.WorkSpace" "_Save" "[color="Red"]MyWorkSpace[/color]" [b];;;_ Type this your workspace name[/b] ) (while (> (getvar "CMDACTIVE") 0)(command "_Y")) (princ) ) Instead of MyWorkSpace type your workspace name Quote
The Courage Dog Posted June 14, 2009 Author Posted June 14, 2009 It Works Perfect!!!! You Make My Works Easy Thanks Viva. Quote
Drwo Posted May 20, 2010 Posted May 20, 2010 I'm trying to make this lisp code a part of a script.. and failing miserably (command "_.WorkSpace" "_Save" "tmp") (while (> (getvar "CMDACTIVE") 0)(command "Y")) could anything like the above be the solution or not.... i can't seem to get the script to confirm and continue on with the rest of the script code after theese lines 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.