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.
evBox Help?
MichaelPascoe
Member Posts: 2,012 PRO
I have a loop for each selected part. The bounding box works fine when the selected parts are not near each other, but when the parts are touching, the evBox does not work even though it's only evaluating one part at a time. Each time the feature loops, there is only one part in the loop at a time. There is nothing to intersect.
Here is the code:
What am I missing here?
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
0
Best Answer
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,215I see that you've got the entire set of parts as the target for the opSplitPart. That may be causing parts to split before you have a chance to iterate over them. Try splitting just the current part (my guess is that's what's intended). Unrelated to this problem, I also suggest using forEachEntity for downstream reference stability.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc1
Answers
And thank you as well @Jason_S
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴