Being able to create multiple bodies in a single SW file can hugely speed up design, because not every ‘part’ deserves its own *.sldprt. However, you’ll usually want to export the bodies as separate STL’s for printing. Here’s a simple script that works similar to the normal macro but adds a random number after the file name so you can do the following trick:
- hide all bodies except one that you want to export
- click the macro
- hide the one you just exported
- unhide the next body
- click the macro
- rinse and repeat for as many bodies as you want
This way, you don’t have to manually save the STL’s or rename the exports. Download is below the image.

Like this? You might be interested in my latest project. It's a desk light made completely from a single sheet of printed circuit board. Check it out:
