Skip to content

Any reason aluminium extrusion isnt part of the parts library? #1710

Open
@twitchyliquid64

Description

@twitchyliquid64

As the title says, I was pretty surprised there was no generic 2020 extrusion in the parts files.

I made one for generic 2020 as a side project to my first project with BOSL2, feel free to use (or feedback if its 💩 ):

include <BOSL2/std.scad>
include <BOSL2/screws.scad>

module ext_2020(
    l=60, s=20, edge_r=1.5, bore_r=2.5,
    slot_inset = 1.5, slot_inner_width = 11, slot_outer_width = 6.2, slot_depth = 4.3,
    cut_width = 5.26,
    anchor=BOTTOM, spin=0, orient=UP,
) {    
    tag_scope() diff()
        cuboid([s, s, l], rounding=edge_r, edges="Z", $fn=20, anchor=anchor,spin=spin,orient=orient) {
            align(CENTER, inside=true) cylinder(r=bore_r, h=l+1, anchor=CENTER);
            
            // trapezoidal slots
            face_mask([LEFT, RIGHT, FRONT, BACK])
                down(slot_inset)
                prismoid([slot_outer_width, l+1],[slot_inner_width, l+1],height=slot_depth, anchor=TOP);

            // cuts
            face_mask([LEFT, RIGHT, FRONT, BACK])
                up(0.01)
                cube([cut_width, l+1, slot_inset+0.02], anchor=TOP);

            children();
        }
}

ext_2020()
    position(RIGHT) orient(RIGHT)
        screw("M3", head="socket", drive="hex", length=12);

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions