Driving part dimensions & relations in assemblies

Hello,

I have an assembly with two cylinders. For each part, the radius is defined but the length is not, so the part is underdefined.

In the assembly, I wish to:

  • Define the length directly from the assembly
  • Define the distance between the cylinders dynamically, i.e., they are spaced 0.05" apart, or AB = radius(A)+radius(B)+.05

So far I've tried to add the dimensions in the assembly, but they do not appear to be editable (the 'Primary Value' field is greyed-out). I can add an equation, and the equation evaluates as desired in the editor, but the actual geometry doesn't change, even after rebuilding.

I've also tried adding the dimensions/equations in a 3d sketch, but this still doesn't seem to have any effect on the geometry (i.e. the distance evaluates to 0.75 in, but the cylinders remain separated by 1.341 in).

SLD files and explanatory screenshots are attached.

Thanks in advance for any advice.

Cheers,
Elizabeth

P.S. I realize there are other ways of arriving at the desired end result. However, because this is a simplification of a more complex model I'm working with, I would prefer to figure out how to make these particular methods work.

P.P.S. I'm working in SolidWorks 2009

SolidworksAssemblies
Answers 4
MK
MK 2013-10-14 Best Answer

Let's start with step one.  From your pictures, it looks like you are still in assemlby mode, but you are trying to add dimensions to parts.  In the feature manager tree, RMB on the part you want to add dimensions to, and select 'edit part' (not sure if you'll find 'edit part' as a text command in the context menu, or just an icon, it is only an icon in 2013).  Once you are in part mode, with the assembly open, your methods should work.  You might look up 'top down' or 'in context' design in the help.

MK
MK 2013-10-14

Check out the attachded for an example of top down, or parts defined in the context of an assembly.  An old example from Mauricio Martinez Saez.  Files should work in 2009 I believe.

SF
SF 2013-10-14

Hi Mark,

Thank you for your help. This does work for defining a dimension of a part, but doesn't seem to work for dimensions between parts (i.e. from the center of cyl1 to the center of cyl2), as that is not a characteristic of a single part.

Thank you also for the advice re: 'top down' and 'in context' design.

Cheers,

Elizabeth

JB
JB 2013-10-14

Elizabeth

Your cylinder position in an assembly is driven by mates.  You have to mate your cylinders to something.  You can mate your cylinders to be concentric to the end points of a 3-D sketch line.  If you do that, you can then define the length of the 3-D sketch using dimensions.  Or, you can use a distance mate to set the distance between the cylinder axes.  Then you can drive the dimension defining the distance mate with an equation.