Slider mate limits from variables

graham_lock
graham_lock Member Posts: 277 PRO

Hi,

I have a linear rail and carriage sub assembly:

Linear Rail and Carriage.png

The rail part studio has a configuration variable which sets its length.

The carriage part studio also has a configuration variable which sets its length.

The carriage is mated to the rail with a slider mate.

Is there a way to set the maximum slider distance using the rail length variable and then subtracting the carriage length - i.e. something like #railLength-#carriageLength?

Any help appreciated.

Thank you.

Best Answer

Answers