Disable "Save in AutoCAD 2018 Drawing format?" dialogue box

Disable "Save in AutoCAD 2018 Drawing format?" dialogue box

andrew.taylorCSQX9
Contributor Contributor
5,185 Views
5 Replies
Message 1 of 6

Disable "Save in AutoCAD 2018 Drawing format?" dialogue box

andrew.taylorCSQX9
Contributor
Contributor

Hello there

 

Every time I try to close a DXF, this message pops up and I have to click no. I don't want to use something other than a DXF. Some days I have to open upwards of 100 DXFs and I have to press the no button every time I close them.

 

The default highlighted option is "No" so you all recognise that the option is not wanted and yet I still have to press it. Get rid of the prompt please. If I wanted to convert it to a DWG I would have done that myself. I don't need a prompt to remind me to use a less prolific file format.

 

Best regards

Andrew

Save in AutoCAD 2018 Drawing format.jpg

Accepted solutions (2)
5,186 Views
5 Replies
Replies (5)
Message 2 of 6

fatal.error
Advocate
Advocate
0 Likes
Message 3 of 6

andrew.taylorCSQX9
Contributor
Contributor

Hi There

 

The button suggested only changes the default selected file type in the save as menu to .dxf (unless the save as menu is opened from the aforementioned annoying dialogue box).

The DXFOUT command just opens a save as dialogue box with .dxf as the default save option

 

I tried to implement the LISP code suggested but this hasn't done anything.

 

Best regards

Andrew

0 Likes
Message 4 of 6

fatal.error
Advocate
Advocate
Accepted solution

Please download the Lisp routine attached in a location that you will not change.

 

To load it, drag-and-drop the .lsp file into the drawing, select Always Load and type savedxf in the command line.

 

It will save the active drawing as DXF and close it without any prompt/warning, regardless it was originally a DWG or DXF.

 

If the active drawing has never been saved before, it will be saved by default in C:\Users\your_user_name\Documents. Otherwise, it will remain in it's original location.

 

To customize the command name, open the .lsp with a text-editor such as Notepad and replace the savedxf on the first line as desired.

 

Finally, to automatically load the routine every time a drawing is opened, type CUI in the command line.

Scroll down to the LISP Files category in the Customization in All Files column, right-click on it, and choose Load Lisp from the context menu. Navigate to the location of where your .lsp file is, and it will appear in the list.

 

Furthermore, to assign the routine to a toolbar button, type again CUI, click on Screenshot 2021-05-27 140953.jpg Create New Command button, change it's Name and Images as desired and type ^C^C_savedxf in Macro. Drag-and-drop the newly command to any toolbar.

Message 5 of 6

andrew.taylorCSQX9
Contributor
Contributor
Accepted solution

Hello FatalError

 

Thank you for this.

 

It did not work quite how you have said.

Step1: Save the lisp file to the C:\Program Files\Autodesk\AutoCAD 2021\Acadm folder.

Step2: Type APPLOAD.

Step3: Select and load the file.

Step4: Select contents. Add. Select file. Open. Close. Close

 

As you say,

Now instead of clicking the save and close buttons, type the file name (savedxf) and hit enter.

Find a smaller file name for faster typing (like QW for Qwit which has no existing results).

 

I therefore modified the code to:

(defun c:qw ()
(command "_saveas" "dxf" "version" "2018" "16" "" "yes")
(command "_close" "no" "yes")
);

For my use

 

I then created the command button with the following values.

Name: Qwit

Description: FastSaveAndQuit

Extended Help File

Command Display Name: QW

Macro: ^C^C_qw

Tags:

Element ID: MMU_240_8104F

 

And added the following to the acaddoc.lsp file for good measure:

(load "C:\Program Files\Autodesk\AutoCAD 2021\Acadm\qw.lsp" "qw Failed to Load")

 

Best regards

Andrew

0 Likes
Message 6 of 6

fatal.error
Advocate
Advocate

Glad you have resolved it via Startup Suite.

Keep in mind that this method will load the .lsp every time a drawing is opened and changes will not be migrated to future installations.

 

The CUI method works just fine for me (AutoCAD 2020 ver Q.47.0.0).

Make sure selecting Always Load instead of Load Once to set .lsp's folder as a trusted location.

Alternatively, add it with TRUSTEDPATHS system variable.

 

Here's an article explaining pros and cons of each one:

https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-FDB4038D-1620-4A56-8824-D37729D42520

0 Likes