discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

bug, or operator error

GH
gene heskett
Thu, Dec 26, 2024 12:35 PM

last week I drew up  a mounting plate for one of big tree techs bigger
3d printer controllers.

This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the
usual for statement.

for(i=[0,1,3]) {make hole}; should have done it, but the spacing was
incorrect. Like a step number was being skipped. I fooled around and
finally got 3 even spaced holes, but the numbers I had to use didn't
make sense to me.  Me, a nilmerg or an honest bug? last weeks weekly build.

Thanks all.

Cheers, Gene Heskett, CET.

--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
last week I drew up  a mounting plate for one of big tree techs bigger 3d printer controllers. This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the usual for statement. for(i=[0,1,3]) {make hole}; should have done it, but the spacing was incorrect. Like a step number was being skipped. I fooled around and finally got 3 even spaced holes, but the numbers I had to use didn't make sense to me.  Me, a nilmerg or an honest bug? last weeks weekly build. Thanks all. Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
NH
nop head
Thu, Dec 26, 2024 12:37 PM

[1,2,3] is a list so those are the values that i will take. Use colons for
ranges, e.g. [start: step: end]

On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss <
discuss@lists.openscad.org> wrote:

last week I drew up  a mounting plate for one of big tree techs bigger
3d printer controllers.

This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the
usual for statement.

for(i=[0,1,3]) {make hole}; should have done it, but the spacing was
incorrect. Like a step number was being skipped. I fooled around and
finally got 3 even spaced holes, but the numbers I had to use didn't
make sense to me.  Me, a nilmerg or an honest bug? last weeks weekly build.

Thanks all.

Cheers, Gene Heskett, CET.

--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis

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

[1,2,3] is a list so those are the values that i will take. Use colons for ranges, e.g. [start: step: end] On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss < discuss@lists.openscad.org> wrote: > last week I drew up a mounting plate for one of big tree techs bigger > 3d printer controllers. > > This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the > usual for statement. > > for(i=[0,1,3]) {make hole}; should have done it, but the spacing was > incorrect. Like a step number was being skipped. I fooled around and > finally got 3 even spaced holes, but the numbers I had to use didn't > make sense to me. Me, a nilmerg or an honest bug? last weeks weekly build. > > Thanks all. > > Cheers, Gene Heskett, CET. > > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GH
gene heskett
Thu, Dec 26, 2024 12:50 PM

On 12/26/24 07:37, nop head via Discuss wrote:

[1,2,3] is a list so those are the values that i will take. Use colons for
ranges, e.g. [start: step: end]
colons fixed, my typu.
On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss <
discuss@lists.openscad.org> wrote:

last week I drew up  a mounting plate for one of big tree techs bigger
3d printer controllers.

This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the
usual for statement.

for(i=[0:1:3]) {make hole}; should have done it, but the spacing was
incorrect. Like a step number was being skipped. I fooled around and
finally got 3 evenly spaced holes, but the numbers I had to use didn't
make sense to me.  Me, a nilmerg or an honest bug? last weeks weekly build.

Thanks all.

Cheers, Gene Heskett, CET.

--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis


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


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 12/26/24 07:37, nop head via Discuss wrote: > [1,2,3] is a list so those are the values that i will take. Use colons for > ranges, e.g. [start: step: end] > colons fixed, my typu. > On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss < > discuss@lists.openscad.org> wrote: > >> last week I drew up a mounting plate for one of big tree techs bigger >> 3d printer controllers. >> >> This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the >> usual for statement. >> >> for(i=[0:1:3]) {make hole}; should have done it, but the spacing was >> incorrect. Like a step number was being skipped. I fooled around and >> finally got 3 evenly spaced holes, but the numbers I had to use didn't >> make sense to me. Me, a nilmerg or an honest bug? last weeks weekly build. >> >> Thanks all. >> >> Cheers, Gene Heskett, CET. >> >> -- >> "There are four boxes to be used in defense of liberty: >> soap, ballot, jury, and ammo. Please use in that order." >> -Ed Howdershelt (Author, 1940) >> If we desire respect for the law, we must first make the law respectable. >> - Louis D. Brandeis >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
LM
Leonard Martin Struttmann
Thu, Dec 26, 2024 2:34 PM

So, for something like this, I use code similar to:

Hole_Initial_Offset_X = 5;
Hole_Separation = 3;
for (i=[0:1:3]) {

translate( [ Hole_Initial_Offset_X  + i*Hole_Separation , 0, 0 ] )

Drill_Hole();

}

On Thu, Dec 26, 2024 at 6:50 AM gene heskett via Discuss <
discuss@lists.openscad.org> wrote:

On 12/26/24 07:37, nop head via Discuss wrote:

[1,2,3] is a list so those are the values that i will take. Use colons

for

ranges, e.g. [start: step: end]
colons fixed, my typu.
On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss <
discuss@lists.openscad.org> wrote:

last week I drew up  a mounting plate for one of big tree techs bigger
3d printer controllers.

This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the
usual for statement.

for(i=[0:1:3]) {make hole}; should have done it, but the spacing was
incorrect. Like a step number was being skipped. I fooled around and
finally got 3 evenly spaced holes, but the numbers I had to use didn't
make sense to me.  Me, a nilmerg or an honest bug? last weeks weekly

build.

Thanks all.

Cheers, Gene Heskett, CET.

--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law

respectable.

- Louis D. Brandeis

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


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis

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

So, for something like this, I use code similar to: Hole_Initial_Offset_X = 5; Hole_Separation = 3; for (i=[0:1:3]) { translate( [ Hole_Initial_Offset_X + i*Hole_Separation , 0, 0 ] ) Drill_Hole(); } On Thu, Dec 26, 2024 at 6:50 AM gene heskett via Discuss < discuss@lists.openscad.org> wrote: > > On 12/26/24 07:37, nop head via Discuss wrote: > > [1,2,3] is a list so those are the values that i will take. Use colons > for > > ranges, e.g. [start: step: end] > > colons fixed, my typu. > > On Thu, 26 Dec 2024 at 12:35, gene heskett via Discuss < > > discuss@lists.openscad.org> wrote: > > > >> last week I drew up a mounting plate for one of big tree techs bigger > >> 3d printer controllers. > >> > >> This needed 2 rows of 3 bolt holes along 2 of the 4 edges using the > >> usual for statement. > >> > >> for(i=[0:1:3]) {make hole}; should have done it, but the spacing was > >> incorrect. Like a step number was being skipped. I fooled around and > >> finally got 3 evenly spaced holes, but the numbers I had to use didn't > >> make sense to me. Me, a nilmerg or an honest bug? last weeks weekly > build. > >> > >> Thanks all. > >> > >> Cheers, Gene Heskett, CET. > >> > >> -- > >> "There are four boxes to be used in defense of liberty: > >> soap, ballot, jury, and ammo. Please use in that order." > >> -Ed Howdershelt (Author, 1940) > >> If we desire respect for the law, we must first make the law > respectable. > >> - Louis D. Brandeis > >> _______________________________________________ > >> OpenSCAD mailing list > >> To unsubscribe send an email to discuss-leave@lists.openscad.org > >> > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > Cheers, Gene Heskett, CET. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GH
gene heskett
Thu, Dec 26, 2024 6:41 PM

On 12/26/24 09:35, Leonard Martin Struttmann wrote:

So, for something like this, I use code similar to:

Hole_Initial_Offset_X = 5;
Hole_Separation = 3;
for (i=[0:1:3]) {

translate( [ Hole_Initial_Offset_X  + i*Hole_Separation , 0, 0 ] )

Drill_Hole();

}

which is what I wanted it to do but the spacing was wrong. To get 3
holes I had to use a 5 stopper.

now this won't render: even when copied out  to a new file:

module powerinput() {     bh=27.2; // cutout for assembly     cw=47.4;
// ditto     outl=67; // overall length     outh=38; // incl 6mm base
    bl=100;// len of base     bd=6; // thickness of base     bw=20; //
width of base     co=55.5/2; // offset left or right of mounting ear    
difference()     {         union()         {            
cube([outl,bw,outh],center=true);            
translate([0,-0.3,22])cube([bl,bw,bd],center=true);         }        
cube([cw,24,bh],center=true); // cut hole for it        
translate([co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);
       
translate([-co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);
        #tanslate([-40,0,22])cylinder(h=11,d=4.3,center=true);        
#translate([40,0,22])cylinder(h=11,d=4.3,center=true);     } }
powerinput();

its a small housing for a printers AC input assembly, worked last night,
I printed it. now it won't render but reports no errors. about says: and
i just found it, missing r in tanslate, no error highlighted, shoulda
been. And I'm going blind. The editor does funkity stuff when the src is
1500+ lines and the font is huge so I can still read it. Sorry for the
noise.

Happy, better, New Year to all.

OpenSCAD https://www.openscad.org/version 2024.12.04.ai21522 (git
c190dacd1)

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 12/26/24 09:35, Leonard Martin Struttmann wrote: > So, for something like this, I use code similar to: > > Hole_Initial_Offset_X = 5; > Hole_Separation = 3; > for (i=[0:1:3]) { > > translate( [ Hole_Initial_Offset_X + i*Hole_Separation , 0, 0 ] ) > > Drill_Hole(); > > } which is what I wanted it to do but the spacing was wrong. To get 3 holes I had to use a 5 stopper. now this won't render: even when copied out  to a new file: module powerinput() {     bh=27.2; // cutout for assembly     cw=47.4; // ditto     outl=67; // overall length     outh=38; // incl 6mm base     bl=100;// len of base     bd=6; // thickness of base     bw=20; // width of base     co=55.5/2; // offset left or right of mounting ear     difference()     {         union()         {             cube([outl,bw,outh],center=true);             translate([0,-0.3,22])cube([bl,bw,bd],center=true);         }         cube([cw,24,bh],center=true); // cut hole for it         translate([co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);         translate([-co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);         #tanslate([-40,0,22])cylinder(h=11,d=4.3,center=true);         #translate([40,0,22])cylinder(h=11,d=4.3,center=true);     } } powerinput(); its a small housing for a printers AC input assembly, worked last night, I printed it. now it won't render but reports no errors. about says: and i just found it, missing r in tanslate, no error highlighted, shoulda been. And I'm going blind. The editor does funkity stuff when the src is 1500+ lines and the font is huge so I can still read it. Sorry for the noise. Happy, better, New Year to all. OpenSCAD <https://www.openscad.org/>version 2024.12.04.ai21522 (git c190dacd1) Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
GH
gene heskett
Thu, Dec 26, 2024 6:54 PM

On 12/26/24 13:41, gene heskett via Discuss wrote:

On 12/26/24 09:35, Leonard Martin Struttmann wrote:

So, for something like this, I use code similar to:

Hole_Initial_Offset_X = 5;
Hole_Separation = 3;
for (i=[0:1:3]) {

translate( [ Hole_Initial_Offset_X  + i*Hole_Separation , 0, 0 ] )

Drill_Hole();

}

which is what I wanted it to do but the spacing was wrong. To get 3
holes I had to use a 5 stopper.

now this won't render: even when copied out  to a new file:

module powerinput() {     bh=27.2; // cutout for assembly cw=47.4; //
ditto     outl=67; // overall length     outh=38; // incl 6mm base    
bl=100;// len of base     bd=6; // thickness of base     bw=20; //
width of base     co=55.5/2; // offset left or right of mounting ear
    difference()     {         union()         {            
cube([outl,bw,outh],center=true);            
translate([0,-0.3,22])cube([bl,bw,bd],center=true);         }        
cube([cw,24,bh],center=true); // cut hole for it
translate([co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);
translate([-co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true);
        #tanslate([-40,0,22])cylinder(h=11,d=4.3,center=true);        
#translate([40,0,22])cylinder(h=11,d=4.3,center=true); } } powerinput();

I give up, t-bird in its infinite wisdom thru away the tabs and newlines.

its a small housing for a printers AC input assembly, worked last
night, I printed it. now it won't render but reports no errors. about
says: and i just found it, missing r in tanslate, no error
highlighted, shoulda been. And I'm going blind. The editor does
funkity stuff when the src is 1500+ lines and the font is huge so I
can still read it. Sorry for the noise.

Happy, better, New Year to all.

OpenSCAD https://www.openscad.org/version 2024.12.04.ai21522 (git
c190dacd1)

Cheers, Gene Heskett, CET.

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 12/26/24 13:41, gene heskett via Discuss wrote: > On 12/26/24 09:35, Leonard Martin Struttmann wrote: >> So, for something like this, I use code similar to: >> >> Hole_Initial_Offset_X = 5; >> Hole_Separation = 3; >> for (i=[0:1:3]) { >> >> translate( [ Hole_Initial_Offset_X  + i*Hole_Separation , 0, 0 ] ) >> >> Drill_Hole(); >> >> } > > which is what I wanted it to do but the spacing was wrong. To get 3 > holes I had to use a 5 stopper. > > now this won't render: even when copied out  to a new file: > > module powerinput() {     bh=27.2; // cutout for assembly cw=47.4; // > ditto     outl=67; // overall length     outh=38; // incl 6mm base     > bl=100;// len of base     bd=6; // thickness of base     bw=20; // > width of base     co=55.5/2; // offset left or right of mounting ear >     difference()     {         union()         {             > cube([outl,bw,outh],center=true);             > translate([0,-0.3,22])cube([bl,bw,bd],center=true);         }         > cube([cw,24,bh],center=true); // cut hole for it > translate([co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true); > translate([-co,0,0])rotate([90,0,0])cylinder(h=25,d=4.1,center=true); >         #tanslate([-40,0,22])cylinder(h=11,d=4.3,center=true);         > #translate([40,0,22])cylinder(h=11,d=4.3,center=true); } } powerinput(); > I give up, t-bird in its infinite wisdom thru away the tabs and newlines. > its a small housing for a printers AC input assembly, worked last > night, I printed it. now it won't render but reports no errors. about > says: and i just found it, missing r in tanslate, no error > highlighted, shoulda been. And I'm going blind. The editor does > funkity stuff when the src is 1500+ lines and the font is huge so I > can still read it. Sorry for the noise. > > Happy, better, New Year to all. > > OpenSCAD <https://www.openscad.org/>version 2024.12.04.ai21522 (git > c190dacd1) > > Cheers, Gene Heskett, CET. Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis