Change direction that two parts of a sketch are pushed apart

I'm creating a parametric drawing of a cylinder and I've run into some issues with how the case inserts are dimensioned. The screenshot below shows the how the cylinder looks in its default format.

But when I increase the cylinder length it pushes the head insert upwards, instead of the case insert downwards.

How do I set the cylinder length dimension so it pushes the case insert downwards, whilst leaving the head insert fixed at the radius? Its worth noting that the number of fins increases with cylinder length which is why there are more fins in the second screenshot.

SolidworksDrawings And Detailing
Answers 9
DG
DG 2017-12-22 Best Answer

Add a relation between upper sketch entities and origin such that head insert position is fixed and then any changes in the value should push the case insert downwards.

comment imagecomment image
AK
AK 2017-12-22

If I select the top entities of the sketch to be fixed or colinear, e.t.c... then my sketch becomes overdefined and if I change the cylinder height the insert stays where it is supposed to but the radius remains fixed even when it should be increased.

DG
DG 2017-12-22

Will have to check the file (if possible to share) else check which other relation can be removed.

AK
AK 2017-12-22

Ok, I'll attach the file so you can have a play around with it.

DG
DG 2017-12-22

Your model is not correct. Cylinder length, case insert length, etc. are controlling the fin number which is not correct as top features should be driving the lower features and not other way round. I have made some changes in the model but you may have to work with number of fins equation and probably the gap between them.

DP
DP 2017-12-22

I am in agreement with Deepak. When modeling with dimensions that are driven by equations, you have to really plan out your modeling and even then I have found that you need to be creative with how you dimension in order to stop them from flipping or doing other strange things. Limit the features freedom to move anywhere but where you want them to go.

AK
AK 2017-12-22

Thank you very much for the help, the fin number equation definitely needs some tweaking. Just so I'm completely clear what changes did you make to the model?

DG
DG 2017-12-24

I've moved the case insert feature before the fin pattern. The file is attache din above post if you want to look at

comment imagecomment image
AK
AK 2018-01-07

Just thought I would update you that I got the cylinder working properly, I was able to change around a couple of dimensions and I used an if statement to get the fin number correct.