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.

New Part Spacing Featurescript

christopher_dziubachristopher_dziuba Member Posts: 64 ✭✭

Hey all,

I've made a custom FS that separates parts an exact distance from each-other relative to a selected plane.
took me a while so happy to share my little passion project milestone. This is particularly useful for separating parts ready to be nested / nesting:

The parts space in the order they are selected, in other words for every part you select all previously selected parts move together:

Note that in the second image part 6 and 5 (Long part and left large part) are selected first and so move left together once the right part is selected.
The script is indeed very process heavy (laggy) as there is no way to perform the necessary processing without also creating and deleting entities as reference using featurescript. However it is quiet powerful:

I like this example as it would be very time consuming for me to space these parts using sketches as references but using this script it takes just a few seconds. Parts don't have to be flat either all that matters is you select the plane you want things to be spaced on:

Merry Christmas everyone. Let me know if this helps anyone, if there's any bugs or if you want an explanation on how it works as it's a little complex.
Here's the Featurescript Link !!!
You can ignore all the other tabs in my doc. I'm working on a pretty big project.

Sign In or Register to comment.