How to add Limit-Distance mate in SolidWorks?

How to add Limit-Distance mate in SolidWorks?

  1. Step 1:

    I have two parts in Assembly shown on a picture,a wagon and some road.

    What if I want to put a limit of movement to wagon?You see the wagon may be coincident to road and be tangent with its wheels and cuts I made in the road but it would still move outside the road.

    This is just an example I made to try to show you linear limit mate.Before I could do Limit-Distance mate I need to make orange face of the wagon coincident with cut in the road and I made both rear and front wheels tangent to the road.

  2. Step 2:

    Here is what I have to do,the length of the road is 300 mm,the length of wagon is 50 mm.That is what I need to know if I wanna be precise.

    So I clicked Mate,then Advanced Mates and then distance mate.

    The minimum value is going to be 0 because that is the value between faces of wagon and the road shown on the picture.The maximum value is going to be 250 because I need to consider wagons length.

    What I have done here is Limited the movement of wagon so it can be moved just along road as long as we dont supress this mate.

    You can try something like this and watch some video with better explanation if you did not understand :)

    Karajko CAD