Export to current working directory?

By default the export function opens the browser in the last used directory.

Can I use a macro or script to open the file browser into the directory where the current 3dm file is located ?

I am usually working on multiple projects at the same time and I constantly find myself needlessly browsing between directories because of this.

Hi Simon - see if this does the right thing -

ExportToCurrentFileFolder.py (677 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

1 Like

Sorry for the late reply, I wasn’t able to test this until now.

Happy to report that this works flawlessly.

Thanks a lot !

Could I add a line to this script that copies the entire filename’s filepath to the clipboard ?

Hi Simon - updated above to clipboard the path but not the file name, which as currently written, the script does not know, that will take a slightly different approach…

-Pascal

Thanks again !