Pull Component Configs to Assembly

Library for macros
User avatar
Rob
Posts: 128
Joined: Mon Mar 08, 2021 3:46 pm
Answers: 2
Location: Mighty Glossop, UK
x 787
x 207
Contact:

Pull Component Configs to Assembly

Unread post 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.
Scott Lyon
Posts: 3
Joined: Mon Apr 05, 2021 7:18 am
Answers: 0
x 5

Re: Pull Component Configs to Assembly

Unread post by Scott Lyon »

Did you by chance ever get around to posting these two mentioned macros Rob?
Slasher
Posts: 30
Joined: Mon Oct 23, 2023 6:13 pm
Answers: 0
x 30
x 13

Re: Pull Component Configs to Assembly

Unread post by Slasher »

@Rob I don't see the Macro anymore; would be possible to re-upload it again please?
User avatar
Rob
Posts: 128
Joined: Mon Mar 08, 2021 3:46 pm
Answers: 2
Location: Mighty Glossop, UK
x 787
x 207
Contact:

Re: Pull Component Configs to Assembly

Unread post 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.
Post Reply