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.
endTranslationalOffset in opExtrude seems not to be working

I'm working on a model where I would need to use opExtrude to extrude a face up to an other face/body with a certain offset.
It works fine if I don't specify an offset, but fails with EXTRUDE_FAILED if endTranslationalOffset is specified:
opExtrude(context, id + "extrude1", { "entities" : definition.faceToExtrude, "direction" : -1*facePlane.normal, "endBound" : BoundingType.UP_TO_SURFACE, "endBoundEntity" : definition.target, "endTranslationalOffset" : 5*millimeter });
Link to a sample document: https://cad.onshape.com/documents/b8fcb98843000af09d0618e8/w/0e66818e5f980924d80929c5/e/9b0fa5ee85e250fa7dc59c2a
Any ideas what I'm doing wrong or what I could be doing differently?
Thanks
Krisz