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.
@opExtrude: Impossible extrude bounding type: UP_TO_VERTEX
EvanReese
Member, Mentor Posts: 2,619 PRO
I'm stumped on why I'm getting this error and I'm not sure what it's trying to tell me. If I use the native extrude feature to do exactly what I think I'm doing with the code, it works. I'm re-writing my Captive Nut feature from scratch since the old one has some fundamental issues and I've gotten a lot better at Featurescript since then (thanks @Alex_Kempen for the encouragement to do so). The extrude in question is on line 335. Any help is appreciated.
https://cad.onshape.com/documents/d210fcf0f8b5e96ff2027adb/w/532b4113cecd2089664e73ab/e/0b87627129eb6f9c7141b4d5
https://cad.onshape.com/documents/d210fcf0f8b5e96ff2027adb/w/532b4113cecd2089664e73ab/e/0b87627129eb6f9c7141b4d5
0
Answers
In summary, instead of passing BoundingType.UP_TO_VERTEX into opExtrude, handle it before the opExtrude call:
if (thisEndBoundType == BoundingType.UP_TO_VERTEX) { thisEndBoundType = BoundingType.BLIND;<br> thisEndBoundDistance = evDistance(context, { "side0" : pocketExtrudeFaces, "side1" : thisEndBoundEntity }).distance; } // opExtrudeFRC Design Mentor - Team 1306 BadgerBots
function upToCalculation(id is Id, context is Context, upToDef, offsetDef, fromPlane, fromPlaneNegative, preset1) { var upToDistance= offsetDef; var entityDistance = 0 * inch; if (!isQueryEmpty(context, upToDef)) { const signCompare = evDistance(context, { "side0" : fromPlaneNegative, "side1" : upToDef }).distance; entityDistance = evDistance(context, { "side0" : fromPlane, "side1" : upToDef }).distance; entityDistance = signCompare < entityDistance ? -entityDistance : entityDistance; } upToDistance = offsetDef - entityDistance + preset1;<br> return upToDistance; }Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com