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.
Calculate Bounds
I use onshape to prepare parts to Cam when I do so I do create a stock That in close the model
and I did find this very nice featurescript. Called Calculate Bounds
The only problem with this script is that I cannot control if I want to more offset in X or Y or Z.
Do someone now how you can add an offset tab. maybe if you wanna do a symmetric offset also would be nice and maybe also if you can choose what kind of material you are using and can you export this information to an excel file.
I know this is a lot of questions. thanks in advanced
Kim Salvesen
Best Answer
-
@NeilCooke
It was a FS that both @Jake_Rosenfeld and me worked on.
@emagdalenaC2i
I think there will be some very useful improvements to it soon

Please see highlighted above
I have used the algorithm from http://sffsymposium.engr.utexas.edu/Manuscripts/1999/1999-019-Chan.pdf
The sheet metal flat pattern bounds is now faster as well5
Answers
-
Hi @kim_salvesen685 - the script could be easily modified, but to address your request quickly, you can use Move Face to offset each face of the cuboid the exact amount that you want.
Senior Director, Technical Services, EMEA0 -
Thanks Neil for the fast answer
I do know about that but, I want to customize the script so I don't need to do all those extra step specially not hundreds or parts. so if somebody can point me in the right direction I have already customize the script a little
but I don't know how to implement the offset in the picture

https://cad.onshape.com/documents/631672dc5e8a27c212e0e019/w/1c75cca3d100109fbb97dccc/e/be87f9334492ecff4c1485bd
0 -
Wow, that’s a ridiculously complex feature. Where did you get it? You should be able to do the whole thing in a dozen lines of code, starting with evBox3d, adding your offsets, then using fCuboid. Might be more to it than that but that is all it needs. Can’t create the code for you right now, but hopefully that points you in the right direction.Senior Director, Technical Services, EMEA1
-
@NeilCooke That FS let users change and reorient the coordinate system, and it also create the bounding box for sheet metal flat parts
I think it's quite old and it's possible that you can reduce the code, but it has quite a few very useful optionsUn saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común0 -
@NeilCooke
It was a FS that both @Jake_Rosenfeld and me worked on.
@emagdalenaC2i
I think there will be some very useful improvements to it soon

Please see highlighted above
I have used the algorithm from http://sffsymposium.engr.utexas.edu/Manuscripts/1999/1999-019-Chan.pdf
The sheet metal flat pattern bounds is now faster as well5



