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.
'Use' and 'offset' in sketches
Hi,
What's the best way to place a sketch on a face and then trace the face edges into the sketch and then offset those sketch lines? The edges will be a combination of lines and curves.
Essentially the same as 'use' and 'offset' when using sketcher?
This seems a simple thing to want to do so probably missing something obvious.
Thank you.
Best Answer
-
S1mon Member Posts: 3,046 PRO
Take a look at this feature - it might be helpful:
https://onshape4frc.com/blog/using-lighten/Lighten custom feature
https://cad.onshape.com/documents/573f7d70e4b0fddafb52148c/v/85bb63ae5685ae3614116952/e/5eccf6d369b0312a728d77d30
Answers
Offset curve (in the curve feature list - it's a 3D feature) is pretty powerful. It doesn't create the cleanest curves, and the extensions it creates are crap, but for ease of use, it wins.
When using the offset tool in a sketch there is no need to 'use' then offset. It can be done in one step with the offset.
https://cad.onshape.com/documents/becbf8d99faea6d1f3a44ca6/w/a8497252213c5fe35717e0c3/e/ff4342b590ea2c2e4d790549
Thank you for your replies.
@S1mon I'm using:
var qEdges = qAdjacent(definition.face, AdjacencyType.EDGE, EntityType.EDGE);
@glen_dewsbury thank you but I'm trying to do this is Featurescript
Sorry. I missed that you were trying to figure this out in FeatureScript. I haven't tried it there. I would recommend that you use the regular feature on an example first. It seems like opOffsetCurveOnFace is missing from the documentation. I would need to dig through the std source to see what it expects, but the user facing feature needs a direction and a surface.
I'm not sure how to use the regular feature tbh - how should the targets be assigned?
This is my test document:
https://cad.onshape.com/documents/2052a219ea2adad67082b149/w/33dc0c1b8d9e085f0038f32a/e/c2ffc53f3c65e0cb0739bcfd
For a simple flat rectangle, you probably don't need/want opOffsetCurveOnFace. That will work, but its main purpose is offsetting edges/curves on complex curved surfaces.
What is your long term goal with this feature? What are you trying to solve that you can't do in sketcher?
In the real project the flat shapes will be fuselage formers or wing ribs for RC plane designs, each will potentially be a combination of straight and curved lines.
There will be many of each for each design and the intention is to automate offsetting the perimeters and then removing the inside of the curves for weight reduction.
I was hoping to generate the offset curves as sketches so I could draw other geometry within the curves giving the ability to remove selected areas..
Not difficult to do with sketcher and lofts but I'm just trying to automate as much of the grunt work as possible.
Take a look at this feature - it might be helpful:
https://onshape4frc.com/blog/using-lighten/
https://onshape4frc.com/blog/using-lighten/
Lighten custom feature
https://cad.onshape.com/documents/573f7d70e4b0fddafb52148c/v/85bb63ae5685ae3614116952/e/5eccf6d369b0312a728d77d3
Thank you I now have some options.