From one of the most valuable pages in the Solidworks help
Best practice is to have a one-to-one (1:1) relationship between configurations of the assembly and the configurations of the part.
https://help.solidworks.com/2018/english/SolidWorks/sldworks/HID_EXTERN_REFS_MSG_WARNING_HELP.htm
Sometimes I write nice macros and sometimes I write dirty ones.
The attached macro definitely falls into the latter camp.
There is no error checking but it’s a big time saver if you need it.
- Pre select a component with configurations
- Run the macro
- Configurations are created in the assembly and the component is configured to match.
One day I will refine it
I have a companion macro that pushes configs from the assembly to components and is more powerful I will get round to uploading.