# Export file name

**URL:** <https://forum.grid.space/t/export-file-name/299>\
**Category:** Kiri:Moto\
**Created:** [March 23, 2021, 6:05pm UTC](https://forum.grid.space/t/export-file-name/299 "2021-03-23T18:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrice](https://forum.grid.space/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@patrice](https://forum.grid.space/u/patrice)\
**Post date:** [March 23, 2021, 6:05pm UTC](https://forum.grid.space/t/export-file-name/299/1 "2021-03-23T18:05:26Z")

</div>

Hi Stewart,

within version 2.8 (and probably from some older versions but I’m too lazy to test all of them 😉 ) the filename for an export is automatically computed with the 20 first characters of the STL file, then a dash and an iteration counter. As I use very long filenames I must for each new export reset it to the whole input filename.  
Would it be possible to set in the preferences or the machine definition tab a file naming scheme using macros like for example {file}-{version} or {file:20}-{version} ? Anything between { and } will be macros, their list is to be defined : in my example I used {file} for the STL input filename without its extension and {version} for the iteration counter. By default the whole value of a marker will be used, the syntax :xxx could be used to reduce its length : {file} is the full filename, {file:20} is the filename truncated at 20 characters. All the characters outside {} will be constants to use as is in the filename generation.  
The Gcode file extension, defined in the machine definition should be appended to the generated filename.

Patrice

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [March 23, 2021, 9:41pm UTC](https://forum.grid.space/t/export-file-name/299/2 "2021-03-23T21:41:23Z")

</div>

This makes total sense. I will add a preference to control this. Thanks for the suggestion.

I filed a ticket so we can track this. [https://github.com/GridSpace/grid-apps/issues/148](https://github.com/GridSpace/grid-apps/issues/148)
