Command prompt to name the file


#1

I wrote a small script to save selection as custom DXF format and want to replace the “1.dxf” part of the script with a command prompt where I can put the name of the file that will be saved and can’t find any option to do this. Know somebody how to make this script to ask for filename when saving?

! _-Export
1.dxf
Scheme
R12N
_Enter


Suppress/remove/eliminate/hide multiple export dialogs
(Dale Fugier) #2

Hi Macuso,

In order to provide a unique file name, you’ll need to write a more advanced script using either RhinoScript or Rhino.Python.

Check the developer samples repo, as there are a bunch of sample script that get you started.

https://github.com/mcneel/rhino-developer-samples/tree/6/rhinoscript
https://github.com/mcneel/rhino-developer-samples/tree/6/rhinopython

– Dale