Jump to content

Recommended Posts

Posted

hi all,

 

I'm pretty tired of the " save before closing" message , I have to close and re open dwg's very often and i'm always aware of what im doing so I really want to get rid of this.

How can I do it? i googled around and I just found crazy complicated LISPS or adjustment in the registry.... isn't it there a straightforward way?

 

many thanks!

Screenshot - 21_04_2016 , 15_07_05.png

Posted (edited)
Previously asked... and answered. Refer to this thread.

 

http://www.cadtutor.net/forum/showthread.php?59167-Close-without-saving

 

thank you, i checked thread but as i thought, it gives for granted that one knows where to put the code and how, and i dont.

can you tell me where to put this code? i need a step by step guidance if possible

 

Code:
(defun c:cln () ;Close No save

   (setvar "cmdecho" 0)

   (command "close" "No")

   (setvar "cmdecho" 1)    

thanks!

Edited by SLW210
Posted

I don't think you completely read the thread. You want the solution given by Tharwat. Keep reading.

 

Re: running an autolisp program. Read this tutorial by Lee Mac.

 

http://lee-mac.com/runlisp.html

Posted
I don't think you completely read the thread. You want the solution given by Tharwat. Keep reading.

 

Re: running an autolisp program. Read this tutorial by Lee Mac.

 

http://lee-mac.com/runlisp.html

 

there's nothing, here's how the thread ends, " I recommend you to depend on the Visula lisp editor which is attached with Cad , that would help you a lot and much easier than notepad without a comparison at all . "

 

I need a guide step by step on how to upload the code. it's not enough to know that i can be done with the visual lisp attached with cad.

 

sorry, i'm a beginner.

Screenshot - 21_04_2016 , 15_56_23.jpg

Posted

The solution by Tharwat is given in post #2 of the thread I provided the link to. I know because I checked it...twice.

 

Lee Mac's tutorial explains in clear and concise detail how to load and run a lisp routine using any of three methods.

Posted

OK...keeping it simple.

 

Download the lisp below. In AutoCAD type the APPLOAD command, find and upload the lisp routine. To run it type DOA at the command line then press the Enter key. Now kiss your drawing goodbye changes and all as it won't be saved.:ouch:

 

Be careful what you wish for.:twisted:

 

Kill.lsp

 

BTW...yes, it works. I know because I tested it...three times.

Posted
hi all,

 

I'm pretty tired of the " save before closing" message , I have to close and re open dwg's very often and i'm always aware of what im doing so I really want to get rid of this.

 

 

 

I don't understand.

If you open a drawing and the drawing is changed, it's GOING TO ask you if you want to save changes.

This is standard operating procedure in any application.

 

If you're specifically talking about "Drawing1.dwg", then REMOVE whatever startup code you have running that is making a change to "Drawing1.dwg" (And causing DBMOD /= 0)

As soon as you do that, "Drawing1.dwg" will close without asking you to save, because it won't be modified.

Posted
OK...keeping it simple.

 

Download the lisp below. In AutoCAD type the APPLOAD command, find and upload the lisp routine. To run it type DOA at the command line then press the Enter key. Now kiss your drawing goodbye changes and all as it won't be saved.:ouch:

 

Be careful what you wish for.:twisted:

 

[ATTACH]57759[/ATTACH]

 

BTW...yes, it works. I know because I tested it...three times.

 

perfect thanks a lot! I managed to make it work :)

just a note, i can only run for a given opened CAD though, i mean if i have 2 CADs windows open and i want to close one, first i need to load the lisp and then i can close files within it,.... i mean is there a way to have this lisp automatically loaded to any CAD windows opened?

Posted

I get the impression you didn't fully read the tutorial. Yes, there is a way. It was all explained in Method 2 of the previously mentioned tutorial.

Posted

Anybody does this in my shop gets walking papers.

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