discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Broken OpenSCAD file - I have no idea what I'm doing lol

PB
Patrick Bruske
Fri, May 7, 2021 7:33 PM

Hello All!

Hopefully someone much smarter than myself can help me out.

I found this miter slot runner on thingiverse:
https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a
difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and
youtube.and quickly realized that I am a bit over my head.

Would someone mind taking a look and letting me know what specifically I
need to do to make this work? I see I can go to Edit -> Comment. Which I
assume is what he means by "commented it out".

I don't know if this helps. It might be easier to grab it from thingiverse
if your able and willing to help. Thanks in advance.

module tslot(t){
translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
intersection(){
difference(){
union(){
// groove
translate([-slot_length/2, -groove_width/2, 0])
cube([slot_length,groove_width,groove_height], 0);

            // slot
            translate([-slot_length/2, -slot_width/2, groove_height])
            cube([slot_length,slot_width,slot_height], 0);

        }
        // screw cutout
        cylinder(h=slot_height + groove_height, d=screw_width);

        // nut cutout
        cylinder(h=nut_height, d=nut_width, $fn=6);
    }

    // slot
    difference(){
    }


    // Round corner edges
    scale([1,.85,1])
    cylinder(h=slot_height, d=slot_length);
}

}

for (i =[1:slot_segments]){
tslot(i);
}
.

Hello All! Hopefully someone much smarter than myself can help me out. I found this miter slot runner on thingiverse: https://www.thingiverse.com/thing:3973092 The openscad file doesn't work. A guy in the comments said, "There's a difference call that operates on nothing. I commented it out, it works now." I have to be honest, I have no idea what this means. I tired google and youtube.and quickly realized that I am a bit over my head. Would someone mind taking a look and letting me know what specifically I need to do to make this work? I see I can go to Edit -> Comment. Which I assume is what he means by "commented it out". I don't know if this helps. It might be easier to grab it from thingiverse if your able and willing to help. Thanks in advance. module tslot(t){ translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0]) intersection(){ difference(){ union(){ // groove translate([-slot_length/2, -groove_width/2, 0]) cube([slot_length,groove_width,groove_height], 0); // slot translate([-slot_length/2, -slot_width/2, groove_height]) cube([slot_length,slot_width,slot_height], 0); } // screw cutout cylinder(h=slot_height + groove_height, d=screw_width); // nut cutout cylinder(h=nut_height, d=nut_width, $fn=6); } // slot difference(){ } // Round corner edges scale([1,.85,1]) cylinder(h=slot_height, d=slot_length); } } for (i =[1:slot_segments]){ tslot(i); } .
NH
nop head
Fri, May 7, 2021 7:47 PM

I haven't tried it but the comment means remove these three lines:

    // slot
    difference(){
    }

It creates an empty object which makes the intersection empty but
probably didn't on older versions of OpenSCAD.

On Fri, 7 May 2021 at 20:34, Patrick Bruske patbruske@gmail.com wrote:

Hello All!

Hopefully someone much smarter than myself can help me out.

I found this miter slot runner on thingiverse:
https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a
difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and
youtube.and quickly realized that I am a bit over my head.

Would someone mind taking a look and letting me know what specifically I
need to do to make this work? I see I can go to Edit -> Comment. Which I
assume is what he means by "commented it out".

I don't know if this helps. It might be easier to grab it from thingiverse
if your able and willing to help. Thanks in advance.

module tslot(t){
translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
intersection(){
difference(){
union(){
// groove
translate([-slot_length/2, -groove_width/2, 0])
cube([slot_length,groove_width,groove_height], 0);

             // slot
             translate([-slot_length/2, -slot_width/2, groove_height])
             cube([slot_length,slot_width,slot_height], 0);

         }
         // screw cutout
         cylinder(h=slot_height + groove_height, d=screw_width);

         // nut cutout
         cylinder(h=nut_height, d=nut_width, $fn=6);
     }

     // slot
     difference(){
     }


     // Round corner edges
     scale([1,.85,1])
     cylinder(h=slot_height, d=slot_length);
 }

}

for (i =[1:slot_segments]){
tslot(i);
}
.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I haven't tried it but the comment means remove these three lines: // slot difference(){ } It creates an empty object which makes the intersection empty but probably didn't on older versions of OpenSCAD. On Fri, 7 May 2021 at 20:34, Patrick Bruske <patbruske@gmail.com> wrote: > Hello All! > > Hopefully someone much smarter than myself can help me out. > > I found this miter slot runner on thingiverse: > https://www.thingiverse.com/thing:3973092 > The openscad file doesn't work. A guy in the comments said, "There's a > difference call that operates on nothing. I commented it out, it works now." > > I have to be honest, I have no idea what this means. I tired google and > youtube.and quickly realized that I am a bit over my head. > > Would someone mind taking a look and letting me know what specifically I > need to do to make this work? I see I can go to Edit -> Comment. Which I > assume is what he means by "commented it out". > > I don't know if this helps. It might be easier to grab it from thingiverse > if your able and willing to help. Thanks in advance. > > module tslot(t){ > translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0]) > intersection(){ > difference(){ > union(){ > // groove > translate([-slot_length/2, -groove_width/2, 0]) > cube([slot_length,groove_width,groove_height], 0); > > // slot > translate([-slot_length/2, -slot_width/2, groove_height]) > cube([slot_length,slot_width,slot_height], 0); > > } > // screw cutout > cylinder(h=slot_height + groove_height, d=screw_width); > > // nut cutout > cylinder(h=nut_height, d=nut_width, $fn=6); > } > > // slot > difference(){ > } > > > // Round corner edges > scale([1,.85,1]) > cylinder(h=slot_height, d=slot_length); > } > } > > for (i =[1:slot_segments]){ > tslot(i); > } > . > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
D
dpa
Fri, May 7, 2021 7:52 PM

"There's a difference call
difference()

that operates on nothing.
{ /* nothing */ }

comment it out,
//        difference(){
//        }

then it works"
(see attachment)

Am Fr., 7. Mai 2021 um 21:34 Uhr schrieb Patrick Bruske <patbruske@gmail.com

:

Hello All!

Hopefully someone much smarter than myself can help me out.

I found this miter slot runner on thingiverse:
https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a
difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and
youtube.and quickly realized that I am a bit over my head.

Would someone mind taking a look and letting me know what specifically I
need to do to make this work? I see I can go to Edit -> Comment. Which I
assume is what he means by "commented it out".

I don't know if this helps. It might be easier to grab it from thingiverse
if your able and willing to help. Thanks in advance.

module tslot(t){
translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
intersection(){
difference(){
union(){
// groove
translate([-slot_length/2, -groove_width/2, 0])
cube([slot_length,groove_width,groove_height], 0);

             // slot
             translate([-slot_length/2, -slot_width/2, groove_height])
             cube([slot_length,slot_width,slot_height], 0);

         }
         // screw cutout
         cylinder(h=slot_height + groove_height, d=screw_width);

         // nut cutout
         cylinder(h=nut_height, d=nut_width, $fn=6);
     }

     // slot
     difference(){
     }


     // Round corner edges
     scale([1,.85,1])
     cylinder(h=slot_height, d=slot_length);
 }

}

for (i =[1:slot_segments]){
tslot(i);
}
.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

"There's a difference call difference() that operates on nothing. *{* /* nothing */ *}* comment it out, // difference(){ // } then it works" (see attachment) Am Fr., 7. Mai 2021 um 21:34 Uhr schrieb Patrick Bruske <patbruske@gmail.com >: > Hello All! > > Hopefully someone much smarter than myself can help me out. > > I found this miter slot runner on thingiverse: > https://www.thingiverse.com/thing:3973092 > The openscad file doesn't work. A guy in the comments said, "There's a > difference call that operates on nothing. I commented it out, it works now." > > I have to be honest, I have no idea what this means. I tired google and > youtube.and quickly realized that I am a bit over my head. > > Would someone mind taking a look and letting me know what specifically I > need to do to make this work? I see I can go to Edit -> Comment. Which I > assume is what he means by "commented it out". > > I don't know if this helps. It might be easier to grab it from thingiverse > if your able and willing to help. Thanks in advance. > > module tslot(t){ > translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0]) > intersection(){ > difference(){ > union(){ > // groove > translate([-slot_length/2, -groove_width/2, 0]) > cube([slot_length,groove_width,groove_height], 0); > > // slot > translate([-slot_length/2, -slot_width/2, groove_height]) > cube([slot_length,slot_width,slot_height], 0); > > } > // screw cutout > cylinder(h=slot_height + groove_height, d=screw_width); > > // nut cutout > cylinder(h=nut_height, d=nut_width, $fn=6); > } > > // slot > difference(){ > } > > > // Round corner edges > scale([1,.85,1]) > cylinder(h=slot_height, d=slot_length); > } > } > > for (i =[1:slot_segments]){ > tslot(i); > } > . > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >