Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Slider mate limits from variables

Hi,
I have a linear rail and carriage sub assembly:
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.
Answers
Short answer no, but you could do it with two mates: one from either side with only one sided limits.
Actually, never mind, remove the limits and use the newly added width mate!