evBox Help?
MichaelPascoe
Member Posts: 2,955 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?
▚▞▚▞▚▞▚▞▚
0
Best Answer
-
I 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
-
I 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
-
▚▞▚▞▚▞▚▞▚0

