In DraftSight, how to close a file by a script without saving it

Hi all

How can I close a file without having the question "Save changes made..." " ?

Since I'm in a script, I'd like to either not ask the question or answer "No" without the dialog box opening.

Thank you for your help.

Gilbert

Hello

As shown here:

http://www.cadoasis.com/write-and-run-script-files-in-draftsight/

" Script files won't run on Dialog boxes so keep dialog boxes off by using command: DISPLAYDIALOGS and select 'No'"

On the other hand, if with this option, the file is saved, I'm afraid there is no solution!

As I indicated in another answer, other free software will be more suitable for automation: FreeCAD, NanoCAD 3.5, or take the 30-day trial version of DraftSight which gives access to LISP programming, which is much more flexible.

See this question which is all in all very ilmilary

http://www.lynkoa.com/forum/draftsight/script-pour-draftsight

@+;-))

Indeed GT22, it's the same person who asked the other question! But the problem is not similar!

Hi all

Indeed, I was already the one who asked the question "Script for DraftSight".

In this case, if the script made changes to a plan (adding a number), the plan is printed and then closed.  I didn't want the original plan to be changed.

Setting the "DISPLAYDIALOGS" variable to "No" does not prevent the "Save Changes..." " to open up.

I simply solved my problem by saving the file to another name, so when I close it I don't have the backup request that appears.

Thanks to .PL and gt22 for looking into my problem.

A+

Gilbert

2 Likes