Page 1 of 1

Open file dialog..... setting dxf as Standard instead of dwg

Posted: Thu May 06, 2021 12:11 am
by Christian
Is it possible to change the standard file format for PE PLUS to dxf or to make it use the last used format instead of always dwg? We get the drawing data from solidworks addon which creates sheetmetal flat patterna as dxf and use CMS PE PLUS to edit and prepare these files for cnc programming. We need dwg for a customer drawing twice a day and dxf 50-100 times.

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Thu May 06, 2021 12:44 am
by sln8458
Hi Christian,

I am not aware that you can change the default file type in the way you ask, however there may be a work-around.

Are you able to create a toolbar + buttons?
we could write a short script/macro to saveas (DXF) and then close or exit.

SteveN

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Thu May 06, 2021 7:01 am
by Christian
Saving is not the problem.... the option what filetype to create is available. It is about opening which is always dwg and you have to change every time you open a file...

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Thu May 06, 2021 6:11 pm
by QuanNguyen
Yes, the "Open file dialog for select a DXF file" can be customized by a script/macro.
But as Steve mentioned, can you able to create a toolbar + buttons?

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Fri May 07, 2021 1:13 am
by Christian
Creating buttons or userdefined buttons or Lisp-routines ...yes

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Wed May 19, 2021 2:28 am
by Christian
I found no way to use a script or Lisp-routine to change the open file dialogue to remember .dxf instead .dwg . Bricscad as example remembers the last opened filetype. If it is possible to get it to work that way, it would be a great help.

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Wed May 19, 2021 4:29 am
by sln8458
Hi Christian,
NOTE: use this as a 'NEW' open button 👍
try this:
(defun c:opendxf ( / sl)
(setq sl (getfiled "Pick a DXF file to open"
"E:/Stylemark Designs/"
"dxf"
10
);getfiled
);setq
(command "open" sl)
(princ)
);defun
(princ)
Change the default path to suit :)
SteveN

Re: Open file dialog..... setting dxf as Standard instead of dwg

Posted: Wed May 19, 2021 10:18 pm
by Christian
Yes , as a lisp Routine it will be useless until you have already openened another file for having your Lisp-routines autoloaded, but if you put
(getfiled "OPEN DXF" "" "dxf 10)
in the command line of the userdefined button it does exactly what we need!

Thank you very much for your support :-)