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.
How do I create holes perpendicular to a Freeform Surface
ron_moreland
Member Posts: 90 ✭✭
I want a series of holes in a lofted surface. I want each hole perpendicular to the surface. I've extracted a curve from the surface and I placed a point along the curve at each hole location. How do I instance a part at each point normal to the surface?
0
Answers
Mines a trivial solution because my surface is an extruded spline.
-intersect the surface with plane
-create an intersection curve between plane and surface
-create a line thats tangent to the curve at a point
-create a line thats perpendicular to the tangent line
This produces a lot of extraneous geometry but it can be. It'd be better to have a 3D sketch and make this assignment.
here's my ugly loft:
I create a random point on the surface by intersecting with an extruded surface:
I create a normal based on this:
I extrude this normal:
I try to create a 2nd normal on this extruded surface thinking 2 2d sketches can create any 3d line in space:
So I try to make a tangent assign to the line and intersection curve and I think d-cubed knows I'm trying to create a surface normal and says "no way dude". I think this is a bug.
I believe this would have been your surface normal.
Do you have any other puzzles I can work on before the x-mas break?
They're releasing the programming interface soon, if I get in, I'll look into taking 1st derivatives of u,v and then I'll cross them. This will give you the surface normal. I guess I'd have to return a mate connector back to you with z being the normal. Maybe I could create a sketch with zero at the point on the surface. They're really the same thing aren't they.
Not sure what they'll be exposing in their API.
It is a hard problem to solve when armed with 2d sketches.
It's a lot geometry isn't it for one freak'n vector.
1) intersect the surface with any plane or other surface passing through the Point. If you pick this plane or surface well, the extracted curve will work for more than one hole.
2) extract an intersection curve, Curve1, with this plane and the surface.
3) create a curve point plane with the extracted curve and the Point
4) extract another curve, Curve2, from the new plane and the surface, this should give you 2 curves orthogonal to each other at the Point.
5) Draw a line on the curve point plane with one end constrained to the Point
6) Add a normal constraint between the line and Curve2.
7) Make yet another plane, a point normal plane with the line and the Point
... Yeah! a Drawing plane tangent to the surface at the hole point.....
Good Grief. Fortunately I only need 4 holes, with symmetry, just 2.
Looks like there is at least now a slightly faster way with the 'T plane' feature script, which gives a tangent plane at a point, but still have to draw and extrude a hole manually at each point.
There's also one called "Texture" which solves slightly different problems.
https://forum.onshape.com/discussion/16576/texture-new-custom-feature
Here you can see a small improvement using mate connectors
Here is the document
https://cad.onshape.com/documents/e870bf9d8afb2faf70bf38ae/w/9255f3458c51e967b7a32bd8/e/1efeb603d21222932b008b1b?configuration=List_3KRoEhfCIvQzaQ=Avellanados&renderMode=0&rightPanel=configPanel&uiState=6249772eedc6785afb246afa
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ún
I am glad that this helps you.
As you say I think that using 3d spline is better.
Because I did similar modeling with SolidWorks before, I can't help comparing.
In Solidworks
feature 'Trim surface' trims a surface with sketch without extruding.
feature 'Thicken' makes a solid body that has line edges.
feature 'Sketch' with preselecting a edge makes a sketch-plane from an endpoint of the edge and a direction tangent to the edge, even if the edge is not a line.
In Onshape
The upper face which is made by 'Fill 2' is expected to have four line-edges and four arc-edges.
'Part 2' which is made by 'Thicken 1' is expected to have line-edges.
But we cannot make a implicit mate connector on one of them as line or arc.
I believe there is still room for improvement in Onshape.
Even with the above I like mate connector and I am willing to use Onshape.
https://cad.onshape.com/documents/9782933b888a30a821445898/w/f4dba5a59a9871bc5b9af721/e/0b8701e146f34329605a5477