Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

sweep on a 3d curve or bridging curve - any way to control normal/tangent?

Lyle_WalshLyle_Walsh Member Posts: 46
I am trying to make a tubing support that has an open groove facing upward while turning it down and then toward the back (traveling neg x then neg z then neg y} all while maintaining the groove at the top.  What I want is a continuation of the grey curve into the blue curve or the blue curve where the slot/groove is always up.

Bridging curve and 3d curve seem to be missing controls for 3d bezier handles or normal/tangent handles.  Can I do this with Onshape?

Comments

  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    I am going to say 'yes' - but as with all requests for help on this forum, posting a link to a public document is by far the best way to get help! :)
    Philip Thomas - Onshape
  • mahirmahir Member, Developers Posts: 1,309 ✭✭✭✭✭
    edited January 2018
    It's not a one stop solution, but you could try my Sweep Normal featurescript. You would still need to create a surface that dictates which way is "up", but it's better than being left to whims of your path's normal vector.

    Alternatively, you could create the sweep in several "planar" sections. That way the normal vector variation would stay planar, and "up" would stay up.
  • mahirmahir Member, Developers Posts: 1,309 ✭✭✭✭✭
  • Lyle_WalshLyle_Walsh Member Posts: 46
    Thanks, Mahir, that is a brilliant idea, it will do what I need. 
    Questions: 1) how close to the sweep curve does the normal surface have to sit?  Do variances in distance disturb its operation, for example how does it choose which  point on the normal surface to use for the normal direction?
    2) where do you suggest I start learning about using featurescripts?

    Thank you also philip_thomas, I realize I was being lazy and I need to make a clean simple example.  I will put something together tomorrow.  It seems Mahir has a solution that will work and I will try to learn how to use the featurescripts next.  Just FYI the mesh modeling program Blender does this by including normals within curves and you use a modifier feature called bevel object as the "sweep" feature.  Its an old and fiddly feature, Id much rather use sweep in onshape.  This is an interesting area where the organic modeling at which  Blender excels overlaps with the needs of Cad with its high precision.
  • mahirmahir Member, Developers Posts: 1,309 ✭✭✭✭✭
    1) I would try to make sure your sweep path is actually on top of the normal surface. The only way to ensure that is to use an edge of the normal surface as your path, or project the path onto the normal surface. It's possible to get around this sometimes, but the sweep command can be finicky. So may as well stick to what works.

    2) I tend to learn by doing and from examples. I'm sure there are some FeatureScript tutorials laying around. Here's one. But the easiest way would be to find a FS that does something similar to what you want to accomplish, and dissect its code.
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    @Lyle_Walsh

    A note: you don't need to learn any FeatureScript to use mahir's custom feature.  Just press the '+' button in your toolbar while visiting his document to add his feature to your toolbar, then you can use his feature in any of your part studios! (custom features that you've added show up in the toolbar dropdown that looks like a pair of {brackets} surrounding a cube.) No need to learn any new coding concepts! (Unless of course you want to :) )
    Jake Rosenfeld - Modeling Team
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    See 'start using custom features' here:
    https://www.onshape.com/featurescript
    Jake Rosenfeld - Modeling Team
  • mahirmahir Member, Developers Posts: 1,309 ✭✭✭✭✭
    @Lyle_Walsh, if you want to take another look at my example, I've simplified it a good deal. I originally thought you had to use a single, non-faceted surface as the reference surface. Turns out my FS is more flexible than I gave it credit for.
  • Lyle_WalshLyle_Walsh Member Posts: 46
    mahir said:
    @Lyle_Walsh, if you want to take another look at my example, I've simplified it a good deal. I originally thought you had to use a single, non-faceted surface as the reference surface. Turns out my FS is more flexible than I gave it credit for.


    Great example, thank you that is exactly what I am trying todo!  And thanks Jake_Rosenfeld , that explanation of how to add custom features to the toolbar was what I needed.
  • Lyle_WalshLyle_Walsh Member Posts: 46
    update:  turns out that I could do what I desired using the path feature of loft!

  • Lyle_WalshLyle_Walsh Member Posts: 46
    and Curve patter almost works!

  • mahirmahir Member, Developers Posts: 1,309 ✭✭✭✭✭
    If the cross members aren't getting oriented correctly along the path, you can try this FS.
    https://cad.onshape.com/documents/57ef018093832a1090983bfe/w/58bcbe4474554bfb72f7ecbe/e/ce32f2b154fa3142e58c8c6b
Sign In or Register to comment.