how to apply limit distance on spline

Hi Guys,

I am new here.

I have a question on how to apply limit distance on spline.

As you can see from the animation i created, the hoist is moving along the bracket and the cable (spline) is moving with it together.

How can i make sure the cable (spline) from Point 1 and Point 2 is stop at certain distance?Refer image below

Please help me on this.

Thanks.

SolidworksAssemblies