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.

[New] Four Bar Linkage Generator FeatureScript

TimRiceTimRice Member, Moderator, Onshape Employees Posts: 315
edited January 2019 in FeatureScript
Hello all,

I have been working on this Four Bar Linkage Generator FS for some time now. It creates the sketch lines for each link and plots the displacement curve for a specified point. All that is needed is a mate connector for the origin. Give it a try and reply with whatever cool linkages you come up with!



https://cad.onshape.com/documents/a2c6118153454c8ec8491c2b/v/ca97699c9e95d6898b4e3fb3/e/3f4d1bd6cd2e0170597202f6
Tim Rice | User Experience | Support 
Onshape, Inc.

Comments

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    are you using polylines instead of splines because of the self intersecting trajectories?
    by the way you may find useful my Curve generator script
  • TimRiceTimRice Member, Moderator, Onshape Employees Posts: 315
    are you using polylines instead of splines because of the self intersecting trajectories?
    by the way you may find useful my Curve generator script
    I use both. The FS first tries splines and if they intersect reverts to polylines. Thanks for the suggestion, I'll check out your curve generator!
    Tim Rice | User Experience | Support 
    Onshape, Inc.
  • thomas_dobroththomas_dobroth Member Posts: 3
    If you are interested in the path, you should see 21Geometry.com.  We are trying to build an add-on for Onshape and with that, you can specify the path and the bearing will automatically be built.  It's the beginning of path-dependent linkages.  
  • billy2billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PRO
    @thomas_dobroth amazing stuff,

    How do you lubricate these things? Do you have an examples in automation? For continuous automation you'd be so much faster than any PLC controlled equipment.

    How is this going to work when designing equipment? 

    It'd be fun just to make animations all day long and watch'm run.

  • EvanReeseEvanReese Member, Mentor Posts: 2,129 ✭✭✭✭✭
    This is awesome!I'm pretty sure I'll find a use for it and your code is elegantly short. One criticism I have before even starting is that a mate connector is required, and to create one, you need to already have an "owner part". I imagine this Feature would be often useful before any parts are created. For now, I'm just making a dummy extrusion to "own" the connector, but it feels a bit silly. Thanks so much for making this though. I may end up using it on a project very soon and I love being able to visualize the path. I also like seeing it broken up into points because you get a sense for the speed of the motion at any given section.
    Evan Reese
  • TimRiceTimRice Member, Moderator, Onshape Employees Posts: 315
    Thanks @Evan_Reese !

    ...One criticism I have before even starting is that a mate connector is required, and to create one, you need to already have an "owner part"...
    Yes unfortunately I think this is the best workflow. Otherwise the user would need to select a plane (or face) and a point for the origin. Mate connectors are therefore a lot more flexible and stable as I can get all the origin information from there. 
    Tim Rice | User Experience | Support 
    Onshape, Inc.
  • EvanReeseEvanReese Member, Mentor Posts: 2,129 ✭✭✭✭✭
    TimRice said:
    Thanks @Evan_Reese !
    Yes unfortunately I think this is the best workflow.
    Totally get it. I'm not the best with featurescript, but I've played around enough to understand why that is. I, personally, would use plane/point input if it were an additional option, but who knows if my workflow is what most people would do. Thanks for writing it!
    Evan Reese
  • thomas_dobroththomas_dobroth Member Posts: 3
    @billy2
    The tech went public in November.  Lubrication is application specific, just like any other machine.  The render farm is loaded up with improved speed reducers.  A full line should be available in a week. 

    The tech page spells it out better.  The short answer is that you put in your description of motion for two components (X, Y, and Rotation) and the methodology builds you a bearing.  It has more design flexibility than any other mechanism.  
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    @Evan_Reese

    Due to the hard work of @kevin_o_toole_1 there is some very cool new functionality coming soon that will eliminate the need to make a dummy part first (before anyone asks, I don't mean that we just removed the "owner part" field from the mate connector dialog :) )
    Jake Rosenfeld - Modeling Team
  • EvanReeseEvanReese Member, Mentor Posts: 2,129 ✭✭✭✭✭
    @Evan_Reese

    Due to the hard work of @kevin_o_toole_1 there is some very cool new functionality coming soon that will eliminate the need to make a dummy part first (before anyone asks, I don't mean that we just removed the "owner part" field from the mate connector dialog :) )
    What a tease! can't wait.
    Evan Reese
Sign In or Register to comment.