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.

FeatureScript User Community Spotlight

12357

Comments

  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    @mahir would you like to include this on awesome featurescript?  If so could you provide a short description, or, even better, make a PR if you're willing

  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    Creates round formed embosses with the specified height, diameter, and draft angle.

    What's a PR?
  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    hah sorry! PR is a pull request.  the awesome featurescript page is communitity managed-- you can file an issue ( a request for a change), or you can mak e the change yourself and then ask for it to be merged into the product.

    Making a PR allows you to make the change to add your feature, and add it exactly how you want-- then someone from the community ( me or another collaborator) will merge it for you. ( vs me asking you how you'd like to list it, and then transcribing your typing )
  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    I'm haven't used GIT before since it's usually firewalled at work. I'll let you take care of it :)
  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    alright no worries i got it!
  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    @mahir entered issue https://github.com/dcowden/featurescript/issues/25 to fix this-- you can watch progress  if you can view that link
  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    edited April 2018
    Here's another one.

    Setback Fillet
    Converts standard spherical corner fillets into setback fillets

  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    @mahir any chance i could get you into the git flow?  I don't mind adding things, but it helps the project when there are more contributors logged in the activity.
  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    I gave it a go, but it wasn’t clear exactly what I had to do to initiate a change. It’s not like editing a wiki. Looks like branches need to be made and issues logged, but it’s not clear what the exact order of operations needs to be. 
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    @mahir

    Does you feature work for four-sided corners?
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
    @mahir, i'm happy to help you out. you can do just about everything ( if not literally everything ) from the web UI. Here's the steps ( roughly ):

    (1) create github account
    (2) go to https://github.com/dcowden/featurescript, and click the button on the top right that says 'fork'. This will create a copy of this repository for your use
    (3) go to your repository, and click the README.md file-- and edit it using the little pencil. You'll see that the editor is right in the browser, and that the format is easy, just like a wiki
    (4) save your changes. Don't worry, you're just changing your copy. you can preview as well.
    (5) make a pull request using the 'pull request' option near the top. That will create a request to merge your changes into the main repo.
    (6) we'll merge the changes into the main repo after reviewing the changes.  You'll get credit as the author here

    That's it-- it takes about 5 minutes after youv'e done it once, and its the same process I use as well.
  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    @mahir

    Does you feature work for four-sided corners?
    Unfortunately, no it doesn’t. I started out with that in mind, but the logistics of supporting more than 3 sides is tricky and hard to standardize because you end up with strange composite corners. For example, adding a fillet to the four edges below ends up generating an artificial cylindrical fillet at the crest. A 3 way corner is easy because it’s always a 3 sided spherical surface with well a defined algorithm for generating the offset edges, but for more than 3 who knows ¯\_(ツ)_/¯. 

  • mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    Thanks for the walkthrough, @dave_cowden. Worked like a charm.
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    Hello Everyone,

    I have created a featurescripts website at https://featurescripts.bubbleapps.io/

    To add featurescripts, create an account, then there will be some buttons at the bottom of the page to add, edit, or delete featurescripts
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • lemon1324lemon1324 Member, Developers Posts: 223 EDU
    @mbartlett21
    Cool, would it be possible to add category tags and images (showcase images of CAD geometry, not icons, similar to the Onshape Custom Feature Library)?

    If this is an easy platform to add collaborators I'd be willing to help out a bit.
    Arul Suresh
    PhD, Mechanical Engineering, Stanford University
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    edited April 2018
    lemon1324 said:
    @mbartlett21
    Cool, would it be possible to add category tags and images (showcase images of CAD geometry, not icons, similar to the Onshape Custom Feature Library)?

    If this is an easy platform to add collaborators I'd be willing to help out a bit.
    @lemon1324

    I could add tags and images. I don't think i'd be able to add a collaborator, as I am only on Bubble's free plan.

    To look at the current (development) version, go to https://featurescripts.bubbleapps.io/version-test

    PS: The website also works on mobile, except for the reviewing and login capabilities
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    Hello everyone,

    I have created an Australian Beams FS. The custom profile generator for it is based on what Neil Cooke made.

    Preselection details:
    Preselection edges are added to a "Loop".
    Preselection vertices are added to "Mitered joints".
    Preselection faces are added to "Trim faces".
    Preselection parts are added to "Trim parts".

    Most profiles are generated on-demand (SHS, CHS, RHS, Angles, Unequal Angles).
    Custom profiles can be created by using the profile generator.

    To try it, go to https://cad.onshape.com/documents/cbcb5406bdf8ec15703a9e9e/w/025f41c07b76ffc79326b010
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,310
    I was recently doing some surfacing and needed to check the tangency between some lofts. Missing the "Dihedral Angle" evaluation tool in SolidWorks, I decided to create my own. It will report the max deviation between two faces that share an edge and allow you to measure the angle at other locations once the feature is committed.



    https://cad.onshape.com/documents/e08dd13b4001d4927cab1df0/v/947bd23009ff9c6f303b5ddb/e/15c71dd8008510da7f971f16
    Senior Director, Technical Services, EMEAI
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    I have made a forming tool for sheet metal
    It accepts an active sheet metal model, a sketch point and a surface body (from another part studio) as input.
    The feature is here: https://cad.onshape.com/documents/a752e0db24eb071ebb6f5aa0
    @lana said:

    That implementation is very close to what we have in mind, except that we'll have to do some work so that calling sheetMetalEnd will not be necessary and there will be some representation of the formed tool in flat. So if users of this feature build a library of configured forming tools, they will be able to keep using it when native forming feature becomes available.

    This means that you will still be able to find a use for forming tools that have been made for this feature.

    Please try it out and let me know what you think
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    It feels like a time to share some results on the field of envelope generation, which where specifically applied for creating tooth shape of gears of different types: https://cad.onshape.com/documents/8debf48a92e4eff2ad42217d/

    The family of scripts includes two utilities:
    - geometry tracing utility rotTrace - it creates a number of intermidiate positions of tool surface in its relative motion around a workpiece body.
    - envelope genarating utility - Envelope 3D - it tryes to create envelope surface by lofting on a number or cross section curves. The cross section curve is generated from a set of points of intersection of piercing lines with the surfaces from rotTrace. You can define sketch profile which percing lines should follow and trajectory for that profile translation.

    Now about the gears itself:
    All gears are made in their nominal dimensions, witout taking all kind of backlash factors into account.
    A full control under the tooth shape is achived because the tool profile is an editable sketch in part studio, so all coefficients, pressure angle, fillet radius, the cutting edges shape itself are under your control.
    The resonable perfomance was achived for spur and helical gears because they need only one cross section profile to fully define tooth shape. It takes about 30 seconds to genearte a pair of gears of that type. The tool offset factor of Z2 gear (X2) is opposite to the tool offset factor of Z1 gear (X1) so that X1=-X2.

    Now about the worm gears:

    Though the worm wheel tooth shape generatinon was achived it takes from 50 to 200 seconds. The time depends on the accuracy (the number of piercing points in cross section and the number of cross sections and the cross section profile shape itself) because of the number of cross sections needed is much higher then for a spur gears. But the geometry is still good enough for CAE simulation and I beleve for CNC machining too. (Though test might be needed.)

    I made 3 types of parametrized part studios for worm gears which generally differ by the shape of transition curve of the worm wheel tooth.




    Spiroid gear.

    The three types of cylindrical gears above are parametrized in configured part studios.

    In the document you can also find examples of some exotic gearing types (which I don't think are poppular enough to make them configurable), but just because I can:

    - cylindrical gears with the arc tooth.


    and flat gear



  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    @konstantin_shiriazdanov
    You could possibly speed up performance by using this code for intersection:
    function getIntersectionPoint(context is Context, sectionLine is Line, sectGeometry is Query) returns Vector
    {
        var instersections = [];
    
        for (var geometryInstance in evaluateQuery(context, sectGeometry))
        {
            var intersect = evDistance(context, {
                    "side0" : geometryInstance,
                    "side1" : sectionLine
                });
    
            instersections = append(instersections, intersect);
        }
    
        const selector = function(point)
            {
                return -point.sides[1].parameter;
            };
    
        return maxItem(instersections, selector).sides[0].point;
    }
    I copied your featurescript and made this adjustment in my copy and it decreased the regen time dramatically in the first part studio (It went from 32.31 seconds in your document to 14.72 seconds in my copy)
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    @mbartlett21 wow, thank you! can't beleve dot product was so time consuming
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    @konstantin_shiriazdanov
    The only other time-consuming part now is evDistance.
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • sebastian_glanznersebastian_glanzner Member, Developers Posts: 398 PRO
    3dcad said:
    Does anyone have quick thread creator? I only need threads for cosmetic reasons (assembly instructions) so whatever comes simple and fast will do for me.. I would like to select cylinder (inside or outside), add pre-set thread, done.

    ps. Nice stuff @dave_cowden , as you get more and more stuff done your site adds great value for FS feature.
    I just released a FeatureScript which creates Cosmetic Threads:
    https://forum.onshape.com/discussion/10835/new-featurescript-cosmetic-threads

  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    Here is a version of Sheet metal start that allows you to set bend allowance and deduction:

    https://cad.onshape.com/documents/a39db7615a2a945ffb7076c3/v/58d66eb430f0259fe4e972ec
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    @MBartlett21 i would also post here your sheer metal scaling feature
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    edited January 2019
    :)@konstantin_shiriazdanov
    Here you are with the (almost) whole list:

    Sheet Metal Bend Edge Offset: https://cad.onshape.com/documents/1e0dcfd5454db0a86794bb78 (By request of @brucebartlett )
    Offsets the end of a bend inward to allow for expansion in thick sheet metal
    Sheet Metal Fold: https://cad.onshape.com/documents/9f116620b0f6d04445f57293 (With @konstantin_shiriazdanov 's help)
    Creates a fold in a sheet metal part, recalculating the ratios so the flat patterns stays the same
    Sheet Metal Forming Tool: https://cad.onshape.com/documents/a752e0db24eb071ebb6f5aa0 (Mentioned before)
    Creates a form in a sheet metal part (the part cannot be finished before using the feature. The feature finishes the sheet metal part)
    Sheet Metal Model Plus: https://cad.onshape.com/documents/a39db7615a2a945ffb7076c3 
    Allows you to use bend allowance and deduction instead of k-factor. Also has a "Recognize" feature that converts parts in the shape of sheet metal to sheet metal.
    Sheet Metal Overcut / Dogbone: https://cad.onshape.com/documents/b99915c0b73924ca981bc57f
    Overcuts corners of sheet metal parts (normal parts also supported)
    Sheet Metal Overcut Tab: https://cad.onshape.com/documents/84c6cc7f893aef82df679b15 (Also by request of @brucebartlett )
    Creates overcuts on concave corners created by a tab
    Sheet Metal Shaped Flange: https://cad.onshape.com/documents/602655eff016f183fc184978
    Allows to use a custom sketch or face as a profile for a flange
    Sheet Metal Transform: https://cad.onshape.com/documents/c3b16080102aca07dc7ebfaf
    Moves and scales sheet metal parts.
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • romeograhamromeograham Member Posts: 656 PRO
    mahir said:
    Just wrote this Round Emboss FS. It's an update to @NeilCooke's Embossed Foot FS that supports non-planar surfaces and variable draft angle.
    https://cad.onshape.com/documents/c906e2264d158509753b1bdb/w/54ac31d75d8897024a9c9c68/e/f07b5f8cd8f7543b972b1779
    This looks like it's getting close to SolidWorks' Indent feature. Any chance you can take a body as an input, and wrap the wall thickness around it? Just as if your FS used a solid body from "under" the 1mm body to create the foot features.

    Very useful for packaging (blister packs etc) and configuration-driven changes to parts AFTER they've been shelled.

    Thanks!
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    @romeo_graham392
    Please try my forming tool FeatureScript listed above for sheet metal.
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • romeograhamromeograham Member Posts: 656 PRO
    @romeo_graham392
    Please try my forming tool FeatureScript listed above for sheet metal.
    Sure - I'll give it a try. However, it looks like it's designed to work only on Sheet Metal models - is that correct?
Sign In or Register to comment.