Does anyone know it it is possible to make a script and attach this to to a button in the UI which can travel through all parts in an assembly and export each separate part as ,STP file to a defined output directory?
Could you perhaps add that in future version - like in Office365 where you can attache a macro to a button. Could be cool to be able to run a script from the menus
Adding a button to launch a nominated script has been requested (logged).
There's a lot of example of exporting scripts - I suspect there may even be one here on the forum that does what you are looking for (or maybe it does STL export and you just have to change one command).
I don't know how to do this in Alibre, but there's a software called Analysis Situs that has a feature to do exactly what you're looking for.
The software is free to use. You can check out their documentation here: --> https://analysissitus.org/features/features_ex-break-down-asm.html
Once you install and run the software, just type the command asm-xde-unload into the Active Script area and press Enter. A dialog window will pop up where you can select your STEP file and destination folder using the graphical interface. Finally, click the 'Convert' button and wait. It will extract all parts as individual STEP files and also create a Bill of Materials in CSV format.
Couldn't find a good way to get each of the individual model STEP or STL out from an Assembly for printing, except opening each manually to export. This exports all, and deduplicates multiple used parts by filename.
www.alibre.com
You should be able to edit the script to match your precise goals.