From: Matadem
Good day.
When I do 3d print spacers/part i do a few versions in a day.
Is there a script so when I select the solid to export it automatically and save it in a folder?
This would save me some time.
Also for the computer gurus out there is there a way to automate tasks??
for example the stl file needs to go into prusa slicer and export as gcode.
my settings are always the same.
is there a way to automate these tasks?
From: Michael Gibson
Hi Matadem,
re:
> When I do 3d print spacers/part i do a few versions in a day.
> Is there a script so when I select the solid to export it automatically and save it in a folder?
What should the file name be?
> Also for the computer gurus out there is there a way to automate tasks??
> for example the stl file needs to go into prusa slicer and export as gcode.
> my settings are always the same.
It's possible the slicer software may support a scripting language to automate tasks but you would probably need to ask their support e-mail or forum to find out about it.
It is also possible to automate software that does not have its own script language support by sending key press events using AutoHotkey.
- Michael
From: Matadem
If possible...stl1, stl2 etc.
I only convert stl file to print nothing else.
Tnx!
From: Michael Gibson
Hi Matadem, also when you export to an .stl file normally the "Meshing options" dialog box is shown so you can adjust the mesh density.
Do you want that dialog to be shown or do you want it to use some some specific mesh settings each time and if so what settings?
- Michael
From: Matadem
Attached is what I use.
I does not even need to pop up since I do not change anything...
Thanks!
Image Attachments:
Capturemoi.JPG
From: Michael Gibson
Hi Matadem, try this script you can put it in as the "Command" part of a shortcut key:
script: var dir = 'c:\\scripts\\'; var filename; var counter = 0; while ( 1 ) { ++counter; filename = dir + 'stl' + counter + '.stl'; if ( !moi.filesystem.fileExists( filename ) ) { break; } } moi.geometryDatabase.saveAs( filename, 'NoUI=true;Angle=3.0' );
Change the 'c:\\scripts\\' to your output directory, backslashes need to be doubled and there should be a backslash at the end.
It will write an .stl file named stl1.stl, stl2.stl, etc... , bumping up the number until it finds an unused one.
- Michael
From: Matadem
Nice Thank you! work great.