Page 1 of 1

Pull Component Configs to Assembly

Posted: Wed Mar 17, 2021 7:46 am
by Rob
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/englis ... G_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.

Re: Pull Component Configs to Assembly

Posted: Tue Oct 05, 2021 8:50 am
by Scott Lyon
Did you by chance ever get around to posting these two mentioned macros Rob?

Re: Pull Component Configs to Assembly

Posted: Wed May 08, 2024 1:39 pm
by Slasher
@Rob I don't see the Macro anymore; would be possible to re-upload it again please?

Re: Pull Component Configs to Assembly

Posted: Wed May 08, 2024 2:46 pm
by Rob
Hi @Slasher

Here you go..

https://github.com/Jack-Badger/SWMacros ... nfigs1.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.