Hi,

I have a question regarding aligning differently shaped parts.

I can't share the models for confidentiality reasons but imagine I have 2 parts:

Part A is shaped like the number 8 with the origin at the center of the lower circle.

Part B is a simple rectangular shape with the origin in one of the corners.

Part B could be either smaller, exactly the same size or bigger than Part A.

What I want to do is align Part B over Part A so that whatever size it is the gap between any of the edges is the same.

Also I want to be able to change the size of Part B and have the central relationship update (at the moment if I change the size of Part B then the 'extra' is all on 1 side of my assembly, it's not distributed equally).

I hope that makes sense, thanks in advance.

I have a question regarding aligning differently shaped parts.

I can't share the models for confidentiality reasons but imagine I have 2 parts:

Part A is shaped like the number 8 with the origin at the center of the lower circle.

Part B is a simple rectangular shape with the origin in one of the corners.

Part B could be either smaller, exactly the same size or bigger than Part A.

What I want to do is align Part B over Part A so that whatever size it is the gap between any of the edges is the same.

Also I want to be able to change the size of Part B and have the central relationship update (at the moment if I change the size of Part B then the 'extra' is all on 1 side of my assembly, it's not distributed equally).

I hope that makes sense, thanks in advance.

I suppose if I was designing them from scratch then I'd make sure they were designed around center but as I'm simply creating the assembly I was hoping for something more generic that would work regardless of origin location.

Any other suggestions?

Thanks.

Unfortunately I'm somewhat self-taught on SolidWorks right now so can you clarify what you mean?

How can I create equations for the location of a plane?

I know how to do it to control the size of the part and it's location around the origin using equations to drive dimensions but how does that work for reference plane locations?

Also, how could I create central planes on the figure 8 shape?

Thanks for the help.

I'm sorry I should have been more specific on the shape of the part at the beginning, it is 'basically' a figure 8 shape but the top and bottom circles are not the same size, in fact they're not even circles more oval shaped.

What I *think* I need to do is to calculate the overall length and width of the figure 8 shape, calculate the same for the rectangular and set half the difference as the offset value of the 2 Top and Right planes.

Any idea how to get the overall length and width in an equation?

Thanks.

It sounds like though, that you are dealing with irregular geometry, which isn't going to be as accurate.

One last question, is there any way to put a simple 'bounding box' rectangle around a part?

Just by using the min/max limits?

Thanks.

WT