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.
Old/New custom feature: Intersect+ (a.k.a. Subtract complement)
jelte_steur_info
Member Posts: 603 PRO
This feature is so easy to code that there are probably many of them, but due to custom feature's being hard to search/find and names aren't always as clear, I did so once over a while back.
I just took the effort to add an icon, a pdf and publish it so it might be easier to find for others:
Tagged:
2

Comments
Thanks for making this. I just discovered Subtract Complement, but am still having some difficulties understanding what it does. This'll make it easier to understand. I was just about to write up a script just to try it.
Additionally, do you have the template for the PDF or does everyone just have their own?
Ramon Yip | glassboard.com
We really need that Feature Store.
In case you want it, here is one I made a while back but never really published. Takes a little different approach.
It was originally intended for @Derek_Van_Allen_BD to match the SolidWorks intersect feature. 😎
Intersect everything, and select the instances you want to keep or get rid of.
https://cad.onshape.com/documents/080c82a70987731ca32f29ab/w/59e2152d814b429f905407c7/e/5de5…
.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Is that different from Better than Boolean?
Ramon Yip | glassboard.com
@MichaelPascoe that request ended up being the impetus for me to develop Better Than Boolean since the bosses didn't end up signing off on it and I needed a tool for personal projects. I did have to wrestle with the wonders of combinatorics hell with my version which implements a collision check map to minimize the number of intersection booleans that the script runs for cases where you have more than a handful of input bodies at once.
Derek Van Allen | Engineering Consultant | MeddlerIt grew my understanding of makeRobustQuery() to say the least.😆
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
@ry_gb :
Link to template: https://docs.google.com/presentation/d/1i3SkgQDkU6agkvp3TDhOryWAhPL73LFbZ-2Y-iVnl90/copy