Pull Component Configs to Assembly

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.

Did you by chance ever get around to posting these two mentioned macros Rob?

Rob I don’t see the Macro anymore; would be possible to re-upload it again please?

Hi Slasher

Here you go..

https://github.com/Jack-Badger/SWMacros/blob/master/Assembly/Configuration/PullConfigs1.bas

Probably easiest to create your own new macro and paste in the code ignoring the first line.

Its a rough and ready macro written in a hurry but it has served me well.