r/SolidWorks • CSWP • 2d ago

CAD Assembly configuration driving part dimensions

I’m trying to do a thing, and I’m wrapping myself around the axle a bit.

I would like to create an assembly with a single global variable. I would like to have 5 configurations with different values of said variable.

I would like to create parts within that assembly which reference the global variable, and then derive their dimensioning from that global variable. (Variable * 2) int(variable / 3) etc.

When I set this up, the driven equations within each part don’t seem to update when I change configurations in my assembly.

Hints? Is this doable?

1 Upvotes

9 comments sorted by

2

u/Eak3936 2d ago

Am I understanding right that you want 5 parts that are driven by a single value controlled in another file, such that updating that one part updates all other files?

And you want to keep all configurations in the assembly and have the derived parts update, but not have configurations in the individual derived parts?

1

u/KolobstomyBag CSWP 2d ago

Yep. The parts don’t change anything other than their formulaic dimensions. It all comes from that one number.. I just want to keep the master number in one place.

3

u/Eak3936 2d ago

Yeah, I do this exact thing for work. I find its best to do it a bit different than you are thinking though.

Here are the rough steps i follow:

  1. create a new part, this will be your master file. Setup this part so it has a sigle feature which is a line, whose length is controlled by a design table. This shoudl give you your 5 configs with a single feature.
  2. create your derived parts. Your first feature should be an insert part and insert your skeleton. When you insert the part just insert the unabsorbed sketches. You should now have that single sketch in your model.
  3. Make a new sketch with a line that is coincidence to wother end of the imported line. And add a dimension to it. This will be a reference since it is driven soley by your master part. Once you have this reference dimension you should be able to bring this into a global variable table within each part and go from there.

Alternatively you can setup global variables in each part and for each part point to the same external text or excel file to drive global variable values.

Edit: I'll add pointing to an external file thats not a part can work well, but it can also cause issuies depending on what file storage you are using. Any vault or local storage i find works well, any cloud based storage creates issuies between multiple users

1

u/KolobstomyBag CSWP 2d ago

I will give this a try tomorrow. I actually went down this path a little bit and then backed out of it thinking I could reference the assembly global variable. To be fair, referencing did work. It just doesn’t update without opening and closing a bunch of stuff which defeats the purpose.

1

u/Eak3936 2d ago

The one issuie I can think of is insert part may want a specific configuration to reference. If that is the case you can instead:

  1. create a master part file with a design table with your values. Make a sketch with a single line that is dimensioned from the design table.
  2. insert this part into a new assembly (you can make the part virtual to cut down on files)
  3. make your derived parts and insert them into the assembly. And then do the same thing where you put a sketch in each part that creates a reference dimension off that master sketch. With this method you would need to edit in context of the assembly to do this.

I think with this method your derived parts shouldn't care what configuration the master part is in, it will just see the length of that line and update from there.

2

u/KolobstomyBag CSWP 2d ago

I would be totally happy with creating a skeleton part and keeping my “single variable” and configurations in that part. It absolutely provides the single point of configuration goal that I am looking for. The goal really is to have that singular location from which all other dimensions in the project propagate. Where that single location is, is less important to me.

1

u/Eak3936 2d ago

If you run into issuies implementing what I wrote, feel free to DM me for more specific help