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.
Thicken in certain direction
MBartlett21
Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭
I would like to be able to thicken a face so that the thicken direction at the edges = cross(MYVECTOR, cross(MYVECTOR, surfaceNormal))
I would still like to have the thicken amount directly out from the face though.
@lougallo ?
I would still like to have the thicken amount directly out from the face though.
@lougallo ?
0
Best Answer
-
MBartlett21 Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭@billy2
Ruled Surface FS:
https://cad.onshape.com/documents/d17d93235d69e6ec8f815b80
Sometimes works unpredictably for some edges.1
Answers
Are you looking for an extrusion? Couldn't you copy the surface and create the joining surfaces, then enclose to make a solid?
https://cad.onshape.com/documents/d17d93235d69e6ec8f815b80
IR for AS/NZS 1100
Is this true?
The direction of the edges should be perpendicular to the axis selected
IR for AS/NZS 1100
Not sure what you're crossing. Cross axis to what? I guess this is your question.
cross these:
to get a normal (I think this is what you have):
I think you need another cross, cross these:
to get this, is this the direction you're looking for?:
you'll need 2 crosses to get the direction. I think.
that is currently what my FeatureScript tries to do
IR for AS/NZS 1100
Pick an edge and enter a length:
Ruled surface normal @ a distance:
I use this pattern so much and I worry that I'm going to get caught one of these days. The full FS should ask for tangent or normal and possibly an angle with tangent being 0 and normal being 90 degrees.
I'm being asked a lot about surfacing inside OS, and honestly, I have no hesitation when designing with surfaces inside OS. This is a pattern that I use a lot, and with some trickery, I can approx. it, but it takes a lot of work and I don't like approx'ing.
It seems like you're controlling direction at a surface's edge, and then building a surface with a certain magnitude would be easy?
IR for AS/NZS 1100
Ruled Surface FS:
https://cad.onshape.com/documents/d17d93235d69e6ec8f815b80
Sometimes works unpredictably for some edges.
IR for AS/NZS 1100
Let me dig through your code and see what's going on. I thought there would be an edge selector and then: normal, tangent.
I'm not sure what "Direction" is doing.
Do you mind me poking through your code?
Direction shouldn't be constant.
opOffset on the other hand says it uses the face normal for the offset direction. Bingo!
So...
We can use the solid variant or the surface variant of the offset. After looking at the results using the UI to build both cases, I like the surface variant.
So this means the input to this featurescript would be a face(s) and edge(s).
An issue would be, when OS offsets a face, do you think you could query these edges, are they related some how so is it easy to match respective edges?
The next step would be to loft between the matching edge(s).
And then lastly, delete the offset surface.
What I like about the surface offset:
-we won't lose the original surface id and won't break down stream features that referenced the original surface.
-we can new/add the lofted surfaces
-hoping we can apply opDraft to loft surfaces
This would be huge, something SW can't do easily, adding a 2nd direction:
Ultimately why? Offset curve on surface is something simple CAD just doesn't have, but it's a recurring design pattern when designing complex shapes.
Here's an example of a ruled surface in action, the orange is an offset of the ruled and then a split & delete face was performed cleaning up the original blue surface's edges:
Many times you want to clean up bounding edges to a 3d surface and doing this with sketch geometry is impossible.
The 1st time I ran into this design pattern was creating rivets around the door of an airplane. Manufacturer wanted them equal distance from the door's open.
This might be out of scope of our original conversation, good news is it's doable.
I think feature script could build a good ruled surface generator.
It may be faster than lofting
IR for AS/NZS 1100
IR for AS/NZS 1100
As a result, you'd have 2 surfaces:
-the original selected surface
-the one bound to thicken
I get why thicken is better, you don't have to construct lofts keep track of edges trying to match them.
But you still have query solid and match up with selected query edges. This I think is the toughest part of this whole featurescript and I'm not sure which is the better approach.
I'd be happy with either,
IR for AS/NZS 1100
I have created a version with more options now, can you try it out?
IR for AS/NZS 1100
Shortening is also included:
holy crap, why is this a secret?:
pattern it around:
yeap, clean it up:
Then you can use this feature to turn it into a part:
https://cad.onshape.com/documents/84d939daceef6a928b8abcba
What should I call the feature?
IR for AS/NZS 1100
I think I going need a Morgan Toolbar soon.
Twitter: @onshapetricks & @babart1977
@billy2
What should I call the features below?
Feature Name Description
opExtendSheetBody: Extends a surface body,
opEdgeChange: Changes edges on surface bodies,
opCreateOutline: Projects faces and parts onto an extruded surface or plane
IR for AS/NZS 1100
Used enclose, can you give me rights to copy opBoolean Surfaces?
I liked to see how you do it,
As far as naming goes, I don't know. I like Bruces suggestion "Morgan's Magical Toolbar".
HWM-Water Ltd
The tools name would maybe be "Surface Extent", "Edge Replace" or Edge Transform".
I had a little play, I don't do much surfacing so a little rusty. For starters I thought I'd try offsetting some faces to get a even chamfer around a freeform shape but run into trouble here. https://cad.onshape.com/documents/01cfeaa7438b5325e7560233/w/083e880a30d5cb926f7de56e/e/40503249aaa96a34057a9ff6
Twitter: @onshapetricks & @babart1977
Can you try using the opEdgeChange FeatureScript?
IR for AS/NZS 1100
The document is public, so you should be able to copy it.
PS: the feature can work between a surface and a solid (It returns a surface trimmed to the solid)
IR for AS/NZS 1100
Twitter: @onshapetricks & @babart1977