Jump to content

Recommended Posts

Posted

:(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

Posted

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

Posted

It Works Perfect!!!!

You Make My Works Easy

 

Thanks Viva.:)

  • 11 months later...
Posted

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

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...