Macro to list all sub assemblies within main assembly

Hi all

Am looking for a macro or add-in within solidworks 2021, to allow me to search within a main assembly and list all the sub assemblies

Once I have a list would like to show them within a popup window with a check box next to them, Then i want to be able to select or deselect the check box and hit a run button to compile the selected sub assemblies for drawing packs and other macros

has anyone done this before?

thanks