.STL Export macro

I’m trying to make a macro button to do a quick export of and stl. I came up with this:

! _-Export /Volumes/Cassidy/People/Owen/Print/print.stl Choose STL option ( ExportFileAs=Binary ExportUnfinishedObjects=No UseSimpleDialog=No UseSimpleParameters=No )Tolerance=0.01mm Choose STL option ( ExportFileAs=Binary ExportUnfinishedObjects=No UseSimpleDialog=No UseSimpleParameters=No )Binary=True

It’s not quite right. What do I need to do to get the command to run silently? Currently it still pops up the menu prompts.

1 Like

I would challenge your command approach.
Generally, a closed, solid, polysurface will generate a good, clean, mesh but not always.

I would suggest first checking to be sure your object IS in fact closed, and solid. Then run the Mesh command and tweak the settings to optimized it.
Then check the mesh to be sure it is a “good” mesh and closed.
Then export the checked mesh to STL and you’d enjoy a 100% success rate.

Look for some kind of option to “suppress dialogue boxes” or something like that. I had the same problem a while back but suppressing those popups was as easy as putting in an -r or something like that.

Almost all commands have a “scriptable” version (no dialog interface), is the leading character is a dash or hyphen.

“Layer” opens dialog version.
“-Layer” runs command line version.