Replicating Offset behavior in FeatureScript
tdesve
Member Posts: 2 ✭
I'm am developing a feature allowing me to automate the creation of a spline representing the profile of a slice of a boat hull. Is there a way to programmatically offset the spline as we can do it in a Sketch ? This should allow to give some thickness to the profile.

At the time, I haven't been able to find a suitable function to do this in my FeatureScript. Any though that may help me to make progress ?
Here is the link to the document : https://sso.onshape.com/documents/6c2a8aba1a00e05700132269/w/4ad56285d0fe861a0dd826c1/e/bbdc8ee49ee3bb515014ec86
Thanks,
Thierry

At the time, I haven't been able to find a suitable function to do this in my FeatureScript. Any though that may help me to make progress ?
Here is the link to the document : https://sso.onshape.com/documents/6c2a8aba1a00e05700132269/w/4ad56285d0fe861a0dd826c1/e/bbdc8ee49ee3bb515014ec86
Thanks,
Thierry
Tagged:
0
Best Answer
-
You're correct: There's no direct way to do a 2D offset of sketch entities in FeatureScript.
For your case, I would suggest holding off on doing the offset until you can do a 3D thicken. This would involve leaving a single edge in the sketch, extruding or lofting that edge as a surface, and calling opThicken or opShell on that surface.
These 3D approaches have the additional benefit of ensuring constant thickness throughout the solid (not just on each section).
2
Answers
-
You're correct: There's no direct way to do a 2D offset of sketch entities in FeatureScript.
For your case, I would suggest holding off on doing the offset until you can do a 3D thicken. This would involve leaving a single edge in the sketch, extruding or lofting that edge as a surface, and calling opThicken or opShell on that surface.
These 3D approaches have the additional benefit of ensuring constant thickness throughout the solid (not just on each section).
2 -
Thanks Kevin. I will dig in the approach by creating all slices and converting them in the external surface of the hull. Then apply your steps.
0

