Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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

graham_lockgraham_lock Member Posts: 242 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.

Answers

  • eric_pestyeric_pesty Member Posts: 2,219 PRO

    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!

Sign In or Register to comment.