I need an example of the Displacement constraint

Altair Community Member
Updated by Farshad Tabrizi
Hi Guys, Can anyone send me a real example of how to use displacement constraint, I can easily use the displacement itself, but when I want to constraint my part from moving or displacing in the Analyse ( not optimization), I can not make it work. For example, I am trying to model a very simple snap clip that moves shorter than its engagement and I want to restrict its movement with displacement constraint, but it does not work, Please check the below Image.
My main purpose is to model a simple snap-fit in Inspire, but I didn't have any luck with it yet.
I need to find how to model the friction in the analyse ( not motion), which I could not do it yet.