Script to automatically export and save stl file
All  1-4  5-7

Previous
Next
 From:  Matadem
11823.5 
Attached is what I use.
I does not even need to pop up since I do not change anything...

Thanks!
Image Attachments:
Size: 20.2 KB, Downloaded: 52 times, Dimensions: 284x265px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11823.6 In reply to 11823.5 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Matadem
11823.7 
Nice Thank you! work great.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-4  5-7