discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Conversion of .scad to .stl results in Blank output

SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 4:49 AM

What is the exact dimension you need for psu

On Fri, 7 Jan 2022, 09:58 user user, user35b@gmail.com wrote:

I'm looking over and over again where to insert your command -
swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line.

On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Resize would be better for exact dimensions
You can write and Check following command
swp(rsz3d(cub([30,20,20]),[10,10,10]));

On Fri, 7 Jan 2022, 09:27 user user, user35b@gmail.com wrote:

I look forward to hearing from you on setting the dimensions. Scale()
would perfectly help as earlier suggested by another guru.

On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Sure it's ok

On Fri, 7 Jan 2022, 09:21 user user, user35b@gmail.com wrote:

I shall directly mail you about it. If you don't mind. I am afraid I
don't want my request for assistance with setting the dimensions
overlooked. If you could assist with that (too), it would be greatly
appreciated.

On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

I don't have my laptop with me as I am traveling
Can you please paste the line no 470 here so that I can comment

On Fri, 7 Jan 2022, 07:17 user user, user35b@gmail.com wrote:

@Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser
error: syntax error in file dependencies.scad, line 470
http://470,/Users/others/Downloads/user35b/dependencies.scad

Execution aborted

On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Great thanks

On Fri, 7 Jan 2022, 06:43 user user, user35b@gmail.com wrote:

All right, I shall get the version 2021.
Thanks. I am wanting to learn from the resource you sent while
putting some final touches to mine.

On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Which version of openscad you are working with?
It needs 2021 version which supports x^2 system for squaring
otherwise you need to replace the syntax with  pow(x,2)

On Fri, 7 Jan 2022, 06:17 user user, user35b@gmail.com wrote:

Dear Sanjeev,

ou Tfor your assistance.  Your attachment throws an error as
shown below:

dependencies.scad", line 107: syntax error

On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Hi
There is another way to do this.
not clear what is psu
regards

On Thu, 6 Jan 2022 at 20:31, user35b@gmail.com wrote:

Please help. I cannot convert the above Openscad code to STL.
On trying it, I received the above blank page with the notice/warning below
it.

I read somewhere that it might be owing to the % I used, yet I
don't know how to fix it. The keyboard dimension (top of source code) is
the actual length for the artefact.

Here is the code in editable form -
https://pastebin.mozilla.org/wjo2V2xj

Entire code and grahics can be downloaded from here -
https://file.pizza/download/gt0tfawi

Main code here:

[code]

//Comment line 52 to hide the PSU

//Keyboard dimension: 14.1” x 7.79” x 1.49”

//! Project description in Markdown format before the first
include.

$pp1_colour = "grey"; // Override any global defaults here if
required, see NopSCADlib/global_defs.scad.

include <NopSCADlib/lib.scad> // Includes all the vitamins and
utilities in NopSCADlib but not the printed parts.

include <NopSCADlib/vitamins/d_connector.scad>

include <NopSCADlib/vitamins/psus.scad>

//Custom files; may not be needed now

//include <bottom.scad>

//! Assembly instructions in Markdown format in front of each
module that makes an assembly.

module main_assembly()

assembly("main") {

difference(){

linear_extrude(height = 15){

// translate([5,9,-2])

difference(){

square(24, center = true);

square(23.5, center = true);

}//close of inner difference

}//close of linear extrude

translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18],
center = true);

// polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]],
paths=[[0,1,2],[3,4,5]],convexity=10);

//

// triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]];

// triangle_paths =[[0,1,2],[3,4,5]];

//translate([-10, 0, 7]) rotate([90, 0, 0])
linear_extrude(height = 24, center = true)
polygon(triangle_points,triangle_paths,1);

b = 10;

h = 10;

w = 24;

triangle_points = [[0,0],[h,0],[0,b]];

triangle_paths = [[0,1,2]];

//Start with an extruded triangle

translate([0, 0, 16]) rotate([90, 90,
180])linear_extrude(height = w, center = true, twist = 0)polygon(points =
triangle_points, paths = triangle_paths, convexity = 10);

}//close of difference

//scale([0.2,0.2,0.2])d_plug(DCONN9);

//Comment next line to hide the PSU

translate([-9, -7.7, 0]) rotate([0, 0,
90])scale([0.05,0.05,0.05])psu(PD_150_12);

}//close of assembly ("main")

if($preview){

main_assembly();

translate([0,0,-5])bottom();

}

/*

intersection(){

translate([10,6,1]){scale(0.5,0.5,0.5){

// difference(){

// sphere(8);

// translate([0,10,0])sphere(8);

// translate([0,-10,0])sphere(8);

// }

translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9,
center = true);

}

}//close of intersection

}

//updating via http-svn

translate([10,36,1]){

}

translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7,
center = true);

*/

[/code]

Error image, desired output and code screenshots are attached.

Kindly assist.

Thanks in advance.


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


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


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


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


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


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


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

What is the exact dimension you need for psu On Fri, 7 Jan 2022, 09:58 user user, <user35b@gmail.com> wrote: > I'm looking over and over again where to insert your command - > swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line. > > On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar < > sprabhakar2006@gmail.com> wrote: > >> Resize would be better for exact dimensions >> You can write and Check following command >> swp(rsz3d(cub([30,20,20]),[10,10,10])); >> >> On Fri, 7 Jan 2022, 09:27 user user, <user35b@gmail.com> wrote: >> >>> I look forward to hearing from you on setting the dimensions. Scale() >>> would perfectly help as earlier suggested by another guru. >>> >>> On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar <sprabhakar2006@gmail.com> >>> wrote: >>> >>>> Sure it's ok >>>> >>>> On Fri, 7 Jan 2022, 09:21 user user, <user35b@gmail.com> wrote: >>>> >>>>> I shall directly mail you about it. If you don't mind. I am afraid I >>>>> don't want my request for assistance with setting the dimensions >>>>> overlooked. If you could assist with that (too), it would be greatly >>>>> appreciated. >>>>> >>>>> On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar <sprabhakar2006@gmail.com> >>>>> wrote: >>>>> >>>>>> I don't have my laptop with me as I am traveling >>>>>> Can you please paste the line no 470 here so that I can comment >>>>>> >>>>>> On Fri, 7 Jan 2022, 07:17 user user, <user35b@gmail.com> wrote: >>>>>> >>>>>>> @Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser >>>>>>> error: syntax error in file dependencies.scad, line 470 >>>>>>> <http://470,/Users/others/Downloads/user35b/dependencies.scad> >>>>>>> >>>>>>> Execution aborted >>>>>>> >>>>>>> On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar < >>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>> >>>>>>>> Great thanks >>>>>>>> >>>>>>>> On Fri, 7 Jan 2022, 06:43 user user, <user35b@gmail.com> wrote: >>>>>>>> >>>>>>>>> All right, I shall get the version 2021. >>>>>>>>> Thanks. I am wanting to learn from the resource you sent while >>>>>>>>> putting some final touches to mine. >>>>>>>>> >>>>>>>>> On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar < >>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Which version of openscad you are working with? >>>>>>>>>> It needs 2021 version which supports x^2 system for squaring >>>>>>>>>> otherwise you need to replace the syntax with pow(x,2) >>>>>>>>>> >>>>>>>>>> On Fri, 7 Jan 2022, 06:17 user user, <user35b@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Dear Sanjeev, >>>>>>>>>>> >>>>>>>>>>> ou Tfor your assistance. Your attachment throws an error as >>>>>>>>>>> shown below: >>>>>>>>>>> >>>>>>>>>>> dependencies.scad", line 107: syntax error >>>>>>>>>>> >>>>>>>>>>> On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar < >>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi >>>>>>>>>>>> There is another way to do this. >>>>>>>>>>>> not clear what is psu >>>>>>>>>>>> regards >>>>>>>>>>>> >>>>>>>>>>>> On Thu, 6 Jan 2022 at 20:31, <user35b@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Please help. I cannot convert the above Openscad code to STL. >>>>>>>>>>>>> On trying it, I received the above blank page with the notice/warning below >>>>>>>>>>>>> it. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> I read somewhere that it might be owing to the % I used, yet I >>>>>>>>>>>>> don't know how to fix it. The keyboard dimension (top of source code) is >>>>>>>>>>>>> the actual length for the artefact. >>>>>>>>>>>>> >>>>>>>>>>>>> Here is the code in editable form - >>>>>>>>>>>>> https://pastebin.mozilla.org/wjo2V2xj >>>>>>>>>>>>> >>>>>>>>>>>>> Entire code and grahics can be downloaded from here - >>>>>>>>>>>>> https://file.pizza/download/gt0tfawi >>>>>>>>>>>>> >>>>>>>>>>>>> Main code here: >>>>>>>>>>>>> >>>>>>>>>>>>> [code] >>>>>>>>>>>>> >>>>>>>>>>>>> //Comment line 52 to hide the PSU >>>>>>>>>>>>> >>>>>>>>>>>>> //Keyboard dimension: 14.1” x 7.79” x 1.49” >>>>>>>>>>>>> >>>>>>>>>>>>> //! Project description in Markdown format before the first >>>>>>>>>>>>> include. >>>>>>>>>>>>> >>>>>>>>>>>>> $pp1_colour = "grey"; // Override any global defaults here if >>>>>>>>>>>>> required, see NopSCADlib/global_defs.scad. >>>>>>>>>>>>> >>>>>>>>>>>>> include <NopSCADlib/lib.scad> // Includes all the vitamins and >>>>>>>>>>>>> utilities in NopSCADlib but not the printed parts. >>>>>>>>>>>>> >>>>>>>>>>>>> include <NopSCADlib/vitamins/d_connector.scad> >>>>>>>>>>>>> >>>>>>>>>>>>> include <NopSCADlib/vitamins/psus.scad> >>>>>>>>>>>>> >>>>>>>>>>>>> //Custom files; may not be needed now >>>>>>>>>>>>> >>>>>>>>>>>>> //include <bottom.scad> >>>>>>>>>>>>> >>>>>>>>>>>>> //! Assembly instructions in Markdown format in front of each >>>>>>>>>>>>> module that makes an assembly. >>>>>>>>>>>>> >>>>>>>>>>>>> module main_assembly() >>>>>>>>>>>>> >>>>>>>>>>>>> assembly("main") { >>>>>>>>>>>>> >>>>>>>>>>>>> difference(){ >>>>>>>>>>>>> >>>>>>>>>>>>> linear_extrude(height = 15){ >>>>>>>>>>>>> >>>>>>>>>>>>> // translate([5,9,-2]) >>>>>>>>>>>>> >>>>>>>>>>>>> difference(){ >>>>>>>>>>>>> >>>>>>>>>>>>> square(24, center = true); >>>>>>>>>>>>> >>>>>>>>>>>>> square(23.5, center = true); >>>>>>>>>>>>> >>>>>>>>>>>>> }//close of inner difference >>>>>>>>>>>>> >>>>>>>>>>>>> }//close of linear extrude >>>>>>>>>>>>> >>>>>>>>>>>>> translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18], >>>>>>>>>>>>> center = true); >>>>>>>>>>>>> >>>>>>>>>>>>> // polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]], >>>>>>>>>>>>> paths=[[0,1,2],[3,4,5]],convexity=10); >>>>>>>>>>>>> >>>>>>>>>>>>> // >>>>>>>>>>>>> >>>>>>>>>>>>> // triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]]; >>>>>>>>>>>>> >>>>>>>>>>>>> // triangle_paths =[[0,1,2],[3,4,5]]; >>>>>>>>>>>>> >>>>>>>>>>>>> //translate([-10, 0, 7]) rotate([90, 0, 0]) >>>>>>>>>>>>> linear_extrude(height = 24, center = true) >>>>>>>>>>>>> polygon(triangle_points,triangle_paths,1); >>>>>>>>>>>>> >>>>>>>>>>>>> b = 10; >>>>>>>>>>>>> >>>>>>>>>>>>> h = 10; >>>>>>>>>>>>> >>>>>>>>>>>>> w = 24; >>>>>>>>>>>>> >>>>>>>>>>>>> triangle_points = [[0,0],[h,0],[0,b]]; >>>>>>>>>>>>> >>>>>>>>>>>>> triangle_paths = [[0,1,2]]; >>>>>>>>>>>>> >>>>>>>>>>>>> //Start with an extruded triangle >>>>>>>>>>>>> >>>>>>>>>>>>> translate([0, 0, 16]) rotate([90, 90, >>>>>>>>>>>>> 180])linear_extrude(height = w, center = true, twist = 0)polygon(points = >>>>>>>>>>>>> triangle_points, paths = triangle_paths, convexity = 10); >>>>>>>>>>>>> >>>>>>>>>>>>> }//close of difference >>>>>>>>>>>>> >>>>>>>>>>>>> //scale([0.2,0.2,0.2])d_plug(DCONN9); >>>>>>>>>>>>> >>>>>>>>>>>>> //Comment next line to hide the PSU >>>>>>>>>>>>> >>>>>>>>>>>>> translate([-9, -7.7, 0]) rotate([0, 0, >>>>>>>>>>>>> 90])scale([0.05,0.05,0.05])psu(PD_150_12); >>>>>>>>>>>>> >>>>>>>>>>>>> }//close of assembly ("main") >>>>>>>>>>>>> >>>>>>>>>>>>> if($preview){ >>>>>>>>>>>>> >>>>>>>>>>>>> main_assembly(); >>>>>>>>>>>>> >>>>>>>>>>>>> translate([0,0,-5])bottom(); >>>>>>>>>>>>> >>>>>>>>>>>>> } >>>>>>>>>>>>> >>>>>>>>>>>>> /* >>>>>>>>>>>>> >>>>>>>>>>>>> intersection(){ >>>>>>>>>>>>> >>>>>>>>>>>>> translate([10,6,1]){scale(0.5,0.5,0.5){ >>>>>>>>>>>>> >>>>>>>>>>>>> // difference(){ >>>>>>>>>>>>> >>>>>>>>>>>>> // sphere(8); >>>>>>>>>>>>> >>>>>>>>>>>>> // translate([0,10,0])sphere(8); >>>>>>>>>>>>> >>>>>>>>>>>>> // translate([0,-10,0])sphere(8); >>>>>>>>>>>>> >>>>>>>>>>>>> // } >>>>>>>>>>>>> >>>>>>>>>>>>> translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9, >>>>>>>>>>>>> center = true); >>>>>>>>>>>>> >>>>>>>>>>>>> } >>>>>>>>>>>>> >>>>>>>>>>>>> }//close of intersection >>>>>>>>>>>>> >>>>>>>>>>>>> } >>>>>>>>>>>>> >>>>>>>>>>>>> //updating via http-svn >>>>>>>>>>>>> >>>>>>>>>>>>> translate([10,36,1]){ >>>>>>>>>>>>> >>>>>>>>>>>>> } >>>>>>>>>>>>> >>>>>>>>>>>>> translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7, >>>>>>>>>>>>> center = true); >>>>>>>>>>>>> >>>>>>>>>>>>> */ >>>>>>>>>>>>> >>>>>>>>>>>>> [/code] >>>>>>>>>>>>> >>>>>>>>>>>>> Error image, desired output and code screenshots are attached. >>>>>>>>>>>>> >>>>>>>>>>>>> Kindly assist. >>>>>>>>>>>>> >>>>>>>>>>>>> Thanks in advance. >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> 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 >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> _______________________________________________ >>> 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 >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
UU
user user
Fri, Jan 7, 2022 5:10 AM

PSU not needed here. It was only added in code write-up. The desired
dimension is 7..2in(L)X12in(W)X7in(H).

On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

What is the exact dimension you need for psu

On Fri, 7 Jan 2022, 09:58 user user, user35b@gmail.com wrote:

I'm looking over and over again where to insert your command -
swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line.

On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Resize would be better for exact dimensions
You can write and Check following command
swp(rsz3d(cub([30,20,20]),[10,10,10]));

On Fri, 7 Jan 2022, 09:27 user user, user35b@gmail.com wrote:

I look forward to hearing from you on setting the dimensions. Scale()
would perfectly help as earlier suggested by another guru.

On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Sure it's ok

On Fri, 7 Jan 2022, 09:21 user user, user35b@gmail.com wrote:

I shall directly mail you about it. If you don't mind. I am afraid I
don't want my request for assistance with setting the dimensions
overlooked. If you could assist with that (too), it would be greatly
appreciated.

On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

I don't have my laptop with me as I am traveling
Can you please paste the line no 470 here so that I can comment

On Fri, 7 Jan 2022, 07:17 user user, user35b@gmail.com wrote:

@Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser
error: syntax error in file dependencies.scad, line 470
http://470,/Users/others/Downloads/user35b/dependencies.scad

Execution aborted

On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Great thanks

On Fri, 7 Jan 2022, 06:43 user user, user35b@gmail.com wrote:

All right, I shall get the version 2021.
Thanks. I am wanting to learn from the resource you sent while
putting some final touches to mine.

On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Which version of openscad you are working with?
It needs 2021 version which supports x^2 system for squaring
otherwise you need to replace the syntax with  pow(x,2)

On Fri, 7 Jan 2022, 06:17 user user, user35b@gmail.com wrote:

Dear Sanjeev,

ou Tfor your assistance.  Your attachment throws an error as
shown below:

dependencies.scad", line 107: syntax error

On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Hi
There is another way to do this.
not clear what is psu
regards

On Thu, 6 Jan 2022 at 20:31, user35b@gmail.com wrote:

Please help. I cannot convert the above Openscad code to STL.
On trying it, I received the above blank page with the notice/warning below
it.

I read somewhere that it might be owing to the % I used, yet
I don't know how to fix it. The keyboard dimension (top of source code) is
the actual length for the artefact.

Here is the code in editable form -
https://pastebin.mozilla.org/wjo2V2xj

Entire code and grahics can be downloaded from here -
https://file.pizza/download/gt0tfawi

Main code here:

[code]

//Comment line 52 to hide the PSU

//Keyboard dimension: 14.1” x 7.79” x 1.49”

//! Project description in Markdown format before the first
include.

$pp1_colour = "grey"; // Override any global defaults here if
required, see NopSCADlib/global_defs.scad.

include <NopSCADlib/lib.scad> // Includes all the vitamins
and utilities in NopSCADlib but not the printed parts.

include <NopSCADlib/vitamins/d_connector.scad>

include <NopSCADlib/vitamins/psus.scad>

//Custom files; may not be needed now

//include <bottom.scad>

//! Assembly instructions in Markdown format in front of each
module that makes an assembly.

module main_assembly()

assembly("main") {

difference(){

linear_extrude(height = 15){

// translate([5,9,-2])

difference(){

square(24, center = true);

square(23.5, center = true);

}//close of inner difference

}//close of linear extrude

translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18],
center = true);

// polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]],
paths=[[0,1,2],[3,4,5]],convexity=10);

//

// triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]];

// triangle_paths =[[0,1,2],[3,4,5]];

//translate([-10, 0, 7]) rotate([90, 0, 0])
linear_extrude(height = 24, center = true)
polygon(triangle_points,triangle_paths,1);

b = 10;

h = 10;

w = 24;

triangle_points = [[0,0],[h,0],[0,b]];

triangle_paths = [[0,1,2]];

//Start with an extruded triangle

translate([0, 0, 16]) rotate([90, 90,
180])linear_extrude(height = w, center = true, twist = 0)polygon(points =
triangle_points, paths = triangle_paths, convexity = 10);

}//close of difference

//scale([0.2,0.2,0.2])d_plug(DCONN9);

//Comment next line to hide the PSU

translate([-9, -7.7, 0]) rotate([0, 0,
90])scale([0.05,0.05,0.05])psu(PD_150_12);

}//close of assembly ("main")

if($preview){

main_assembly();

translate([0,0,-5])bottom();

}

/*

intersection(){

translate([10,6,1]){scale(0.5,0.5,0.5){

// difference(){

// sphere(8);

// translate([0,10,0])sphere(8);

// translate([0,-10,0])sphere(8);

// }

translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9,
center = true);

}

}//close of intersection

}

//updating via http-svn

translate([10,36,1]){

}

translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7,
center = true);

*/

[/code]

Error image, desired output and code screenshots are attached.

Kindly assist.

Thanks in advance.


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


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


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


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


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


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


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

PSU not needed here. It was only added in code write-up. The desired dimension is 7..2in(L)X12in(W)X7in(H). On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > What is the exact dimension you need for psu > > On Fri, 7 Jan 2022, 09:58 user user, <user35b@gmail.com> wrote: > >> I'm looking over and over again where to insert your command - >> swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line. >> >> On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar < >> sprabhakar2006@gmail.com> wrote: >> >>> Resize would be better for exact dimensions >>> You can write and Check following command >>> swp(rsz3d(cub([30,20,20]),[10,10,10])); >>> >>> On Fri, 7 Jan 2022, 09:27 user user, <user35b@gmail.com> wrote: >>> >>>> I look forward to hearing from you on setting the dimensions. Scale() >>>> would perfectly help as earlier suggested by another guru. >>>> >>>> On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar <sprabhakar2006@gmail.com> >>>> wrote: >>>> >>>>> Sure it's ok >>>>> >>>>> On Fri, 7 Jan 2022, 09:21 user user, <user35b@gmail.com> wrote: >>>>> >>>>>> I shall directly mail you about it. If you don't mind. I am afraid I >>>>>> don't want my request for assistance with setting the dimensions >>>>>> overlooked. If you could assist with that (too), it would be greatly >>>>>> appreciated. >>>>>> >>>>>> On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar < >>>>>> sprabhakar2006@gmail.com> wrote: >>>>>> >>>>>>> I don't have my laptop with me as I am traveling >>>>>>> Can you please paste the line no 470 here so that I can comment >>>>>>> >>>>>>> On Fri, 7 Jan 2022, 07:17 user user, <user35b@gmail.com> wrote: >>>>>>> >>>>>>>> @Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser >>>>>>>> error: syntax error in file dependencies.scad, line 470 >>>>>>>> <http://470,/Users/others/Downloads/user35b/dependencies.scad> >>>>>>>> >>>>>>>> Execution aborted >>>>>>>> >>>>>>>> On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar < >>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>> >>>>>>>>> Great thanks >>>>>>>>> >>>>>>>>> On Fri, 7 Jan 2022, 06:43 user user, <user35b@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> All right, I shall get the version 2021. >>>>>>>>>> Thanks. I am wanting to learn from the resource you sent while >>>>>>>>>> putting some final touches to mine. >>>>>>>>>> >>>>>>>>>> On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar < >>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Which version of openscad you are working with? >>>>>>>>>>> It needs 2021 version which supports x^2 system for squaring >>>>>>>>>>> otherwise you need to replace the syntax with pow(x,2) >>>>>>>>>>> >>>>>>>>>>> On Fri, 7 Jan 2022, 06:17 user user, <user35b@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Dear Sanjeev, >>>>>>>>>>>> >>>>>>>>>>>> ou Tfor your assistance. Your attachment throws an error as >>>>>>>>>>>> shown below: >>>>>>>>>>>> >>>>>>>>>>>> dependencies.scad", line 107: syntax error >>>>>>>>>>>> >>>>>>>>>>>> On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar < >>>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi >>>>>>>>>>>>> There is another way to do this. >>>>>>>>>>>>> not clear what is psu >>>>>>>>>>>>> regards >>>>>>>>>>>>> >>>>>>>>>>>>> On Thu, 6 Jan 2022 at 20:31, <user35b@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Please help. I cannot convert the above Openscad code to STL. >>>>>>>>>>>>>> On trying it, I received the above blank page with the notice/warning below >>>>>>>>>>>>>> it. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> I read somewhere that it might be owing to the % I used, yet >>>>>>>>>>>>>> I don't know how to fix it. The keyboard dimension (top of source code) is >>>>>>>>>>>>>> the actual length for the artefact. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Here is the code in editable form - >>>>>>>>>>>>>> https://pastebin.mozilla.org/wjo2V2xj >>>>>>>>>>>>>> >>>>>>>>>>>>>> Entire code and grahics can be downloaded from here - >>>>>>>>>>>>>> https://file.pizza/download/gt0tfawi >>>>>>>>>>>>>> >>>>>>>>>>>>>> Main code here: >>>>>>>>>>>>>> >>>>>>>>>>>>>> [code] >>>>>>>>>>>>>> >>>>>>>>>>>>>> //Comment line 52 to hide the PSU >>>>>>>>>>>>>> >>>>>>>>>>>>>> //Keyboard dimension: 14.1” x 7.79” x 1.49” >>>>>>>>>>>>>> >>>>>>>>>>>>>> //! Project description in Markdown format before the first >>>>>>>>>>>>>> include. >>>>>>>>>>>>>> >>>>>>>>>>>>>> $pp1_colour = "grey"; // Override any global defaults here if >>>>>>>>>>>>>> required, see NopSCADlib/global_defs.scad. >>>>>>>>>>>>>> >>>>>>>>>>>>>> include <NopSCADlib/lib.scad> // Includes all the vitamins >>>>>>>>>>>>>> and utilities in NopSCADlib but not the printed parts. >>>>>>>>>>>>>> >>>>>>>>>>>>>> include <NopSCADlib/vitamins/d_connector.scad> >>>>>>>>>>>>>> >>>>>>>>>>>>>> include <NopSCADlib/vitamins/psus.scad> >>>>>>>>>>>>>> >>>>>>>>>>>>>> //Custom files; may not be needed now >>>>>>>>>>>>>> >>>>>>>>>>>>>> //include <bottom.scad> >>>>>>>>>>>>>> >>>>>>>>>>>>>> //! Assembly instructions in Markdown format in front of each >>>>>>>>>>>>>> module that makes an assembly. >>>>>>>>>>>>>> >>>>>>>>>>>>>> module main_assembly() >>>>>>>>>>>>>> >>>>>>>>>>>>>> assembly("main") { >>>>>>>>>>>>>> >>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> linear_extrude(height = 15){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> // translate([5,9,-2]) >>>>>>>>>>>>>> >>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> square(24, center = true); >>>>>>>>>>>>>> >>>>>>>>>>>>>> square(23.5, center = true); >>>>>>>>>>>>>> >>>>>>>>>>>>>> }//close of inner difference >>>>>>>>>>>>>> >>>>>>>>>>>>>> }//close of linear extrude >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18], >>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>> >>>>>>>>>>>>>> // polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]], >>>>>>>>>>>>>> paths=[[0,1,2],[3,4,5]],convexity=10); >>>>>>>>>>>>>> >>>>>>>>>>>>>> // >>>>>>>>>>>>>> >>>>>>>>>>>>>> // triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]]; >>>>>>>>>>>>>> >>>>>>>>>>>>>> // triangle_paths =[[0,1,2],[3,4,5]]; >>>>>>>>>>>>>> >>>>>>>>>>>>>> //translate([-10, 0, 7]) rotate([90, 0, 0]) >>>>>>>>>>>>>> linear_extrude(height = 24, center = true) >>>>>>>>>>>>>> polygon(triangle_points,triangle_paths,1); >>>>>>>>>>>>>> >>>>>>>>>>>>>> b = 10; >>>>>>>>>>>>>> >>>>>>>>>>>>>> h = 10; >>>>>>>>>>>>>> >>>>>>>>>>>>>> w = 24; >>>>>>>>>>>>>> >>>>>>>>>>>>>> triangle_points = [[0,0],[h,0],[0,b]]; >>>>>>>>>>>>>> >>>>>>>>>>>>>> triangle_paths = [[0,1,2]]; >>>>>>>>>>>>>> >>>>>>>>>>>>>> //Start with an extruded triangle >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([0, 0, 16]) rotate([90, 90, >>>>>>>>>>>>>> 180])linear_extrude(height = w, center = true, twist = 0)polygon(points = >>>>>>>>>>>>>> triangle_points, paths = triangle_paths, convexity = 10); >>>>>>>>>>>>>> >>>>>>>>>>>>>> }//close of difference >>>>>>>>>>>>>> >>>>>>>>>>>>>> //scale([0.2,0.2,0.2])d_plug(DCONN9); >>>>>>>>>>>>>> >>>>>>>>>>>>>> //Comment next line to hide the PSU >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([-9, -7.7, 0]) rotate([0, 0, >>>>>>>>>>>>>> 90])scale([0.05,0.05,0.05])psu(PD_150_12); >>>>>>>>>>>>>> >>>>>>>>>>>>>> }//close of assembly ("main") >>>>>>>>>>>>>> >>>>>>>>>>>>>> if($preview){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> main_assembly(); >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([0,0,-5])bottom(); >>>>>>>>>>>>>> >>>>>>>>>>>>>> } >>>>>>>>>>>>>> >>>>>>>>>>>>>> /* >>>>>>>>>>>>>> >>>>>>>>>>>>>> intersection(){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([10,6,1]){scale(0.5,0.5,0.5){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> // difference(){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> // sphere(8); >>>>>>>>>>>>>> >>>>>>>>>>>>>> // translate([0,10,0])sphere(8); >>>>>>>>>>>>>> >>>>>>>>>>>>>> // translate([0,-10,0])sphere(8); >>>>>>>>>>>>>> >>>>>>>>>>>>>> // } >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9, >>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>> >>>>>>>>>>>>>> } >>>>>>>>>>>>>> >>>>>>>>>>>>>> }//close of intersection >>>>>>>>>>>>>> >>>>>>>>>>>>>> } >>>>>>>>>>>>>> >>>>>>>>>>>>>> //updating via http-svn >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([10,36,1]){ >>>>>>>>>>>>>> >>>>>>>>>>>>>> } >>>>>>>>>>>>>> >>>>>>>>>>>>>> translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7, >>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>> >>>>>>>>>>>>>> */ >>>>>>>>>>>>>> >>>>>>>>>>>>>> [/code] >>>>>>>>>>>>>> >>>>>>>>>>>>>> Error image, desired output and code screenshots are attached. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Kindly assist. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks in advance. >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> 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 >>>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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 >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>> _______________________________________________ >>>> 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 >>> >> _______________________________________________ >> 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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 5:56 AM

In your code try replacing scale(......) with resize([7.2,12,7])

On Fri, 7 Jan 2022, 10:39 user user, user35b@gmail.com wrote:

PSU not needed here. It was only added in code write-up. The desired
dimension is 7..2in(L)X12in(W)X7in(H).

On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

What is the exact dimension you need for psu

On Fri, 7 Jan 2022, 09:58 user user, user35b@gmail.com wrote:

I'm looking over and over again where to insert your command -
swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line.

On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Resize would be better for exact dimensions
You can write and Check following command
swp(rsz3d(cub([30,20,20]),[10,10,10]));

On Fri, 7 Jan 2022, 09:27 user user, user35b@gmail.com wrote:

I look forward to hearing from you on setting the dimensions. Scale()
would perfectly help as earlier suggested by another guru.

On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Sure it's ok

On Fri, 7 Jan 2022, 09:21 user user, user35b@gmail.com wrote:

I shall directly mail you about it. If you don't mind. I am afraid I
don't want my request for assistance with setting the dimensions
overlooked. If you could assist with that (too), it would be greatly
appreciated.

On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

I don't have my laptop with me as I am traveling
Can you please paste the line no 470 here so that I can comment

On Fri, 7 Jan 2022, 07:17 user user, user35b@gmail.com wrote:

@Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser
error: syntax error in file dependencies.scad, line 470
http://470,/Users/others/Downloads/user35b/dependencies.scad

Execution aborted

On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Great thanks

On Fri, 7 Jan 2022, 06:43 user user, user35b@gmail.com wrote:

All right, I shall get the version 2021.
Thanks. I am wanting to learn from the resource you sent while
putting some final touches to mine.

On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Which version of openscad you are working with?
It needs 2021 version which supports x^2 system for squaring
otherwise you need to replace the syntax with  pow(x,2)

On Fri, 7 Jan 2022, 06:17 user user, user35b@gmail.com wrote:

Dear Sanjeev,

ou Tfor your assistance.  Your attachment throws an error as
shown below:

dependencies.scad", line 107: syntax error

On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Hi
There is another way to do this.
not clear what is psu
regards

On Thu, 6 Jan 2022 at 20:31, user35b@gmail.com wrote:

Please help. I cannot convert the above Openscad code to
STL. On trying it, I received the above blank page with the notice/warning
below it.

I read somewhere that it might be owing to the % I used, yet
I don't know how to fix it. The keyboard dimension (top of source code) is
the actual length for the artefact.

Here is the code in editable form -
https://pastebin.mozilla.org/wjo2V2xj

Entire code and grahics can be downloaded from here -
https://file.pizza/download/gt0tfawi

Main code here:

[code]

//Comment line 52 to hide the PSU

//Keyboard dimension: 14.1” x 7.79” x 1.49”

//! Project description in Markdown format before the first
include.

$pp1_colour = "grey"; // Override any global defaults here
if required, see NopSCADlib/global_defs.scad.

include <NopSCADlib/lib.scad> // Includes all the vitamins
and utilities in NopSCADlib but not the printed parts.

include <NopSCADlib/vitamins/d_connector.scad>

include <NopSCADlib/vitamins/psus.scad>

//Custom files; may not be needed now

//include <bottom.scad>

//! Assembly instructions in Markdown format in front of
each module that makes an assembly.

module main_assembly()

assembly("main") {

difference(){

linear_extrude(height = 15){

// translate([5,9,-2])

difference(){

square(24, center = true);

square(23.5, center = true);

}//close of inner difference

}//close of linear extrude

translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18],
center = true);

// polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]],
paths=[[0,1,2],[3,4,5]],convexity=10);

//

// triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]];

// triangle_paths =[[0,1,2],[3,4,5]];

//translate([-10, 0, 7]) rotate([90, 0, 0])
linear_extrude(height = 24, center = true)
polygon(triangle_points,triangle_paths,1);

b = 10;

h = 10;

w = 24;

triangle_points = [[0,0],[h,0],[0,b]];

triangle_paths = [[0,1,2]];

//Start with an extruded triangle

translate([0, 0, 16]) rotate([90, 90,
180])linear_extrude(height = w, center = true, twist = 0)polygon(points =
triangle_points, paths = triangle_paths, convexity = 10);

}//close of difference

//scale([0.2,0.2,0.2])d_plug(DCONN9);

//Comment next line to hide the PSU

translate([-9, -7.7, 0]) rotate([0, 0,
90])scale([0.05,0.05,0.05])psu(PD_150_12);

}//close of assembly ("main")

if($preview){

main_assembly();

translate([0,0,-5])bottom();

}

/*

intersection(){

translate([10,6,1]){scale(0.5,0.5,0.5){

// difference(){

// sphere(8);

// translate([0,10,0])sphere(8);

// translate([0,-10,0])sphere(8);

// }

translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9,
center = true);

}

}//close of intersection

}

//updating via http-svn

translate([10,36,1]){

}

translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7,
center = true);

*/

[/code]

Error image, desired output and code screenshots are
attached.

Kindly assist.

Thanks in advance.


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


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


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


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


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


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


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


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

In your code try replacing scale(......) with resize([7.2,12,7]) On Fri, 7 Jan 2022, 10:39 user user, <user35b@gmail.com> wrote: > PSU not needed here. It was only added in code write-up. The desired > dimension is 7..2in(L)X12in(W)X7in(H). > > On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar <sprabhakar2006@gmail.com> > wrote: > >> What is the exact dimension you need for psu >> >> On Fri, 7 Jan 2022, 09:58 user user, <user35b@gmail.com> wrote: >> >>> I'm looking over and over again where to insert your command - >>> swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line. >>> >>> On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar < >>> sprabhakar2006@gmail.com> wrote: >>> >>>> Resize would be better for exact dimensions >>>> You can write and Check following command >>>> swp(rsz3d(cub([30,20,20]),[10,10,10])); >>>> >>>> On Fri, 7 Jan 2022, 09:27 user user, <user35b@gmail.com> wrote: >>>> >>>>> I look forward to hearing from you on setting the dimensions. Scale() >>>>> would perfectly help as earlier suggested by another guru. >>>>> >>>>> On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar <sprabhakar2006@gmail.com> >>>>> wrote: >>>>> >>>>>> Sure it's ok >>>>>> >>>>>> On Fri, 7 Jan 2022, 09:21 user user, <user35b@gmail.com> wrote: >>>>>> >>>>>>> I shall directly mail you about it. If you don't mind. I am afraid I >>>>>>> don't want my request for assistance with setting the dimensions >>>>>>> overlooked. If you could assist with that (too), it would be greatly >>>>>>> appreciated. >>>>>>> >>>>>>> On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar < >>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>> >>>>>>>> I don't have my laptop with me as I am traveling >>>>>>>> Can you please paste the line no 470 here so that I can comment >>>>>>>> >>>>>>>> On Fri, 7 Jan 2022, 07:17 user user, <user35b@gmail.com> wrote: >>>>>>>> >>>>>>>>> @Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser >>>>>>>>> error: syntax error in file dependencies.scad, line 470 >>>>>>>>> <http://470,/Users/others/Downloads/user35b/dependencies.scad> >>>>>>>>> >>>>>>>>> Execution aborted >>>>>>>>> >>>>>>>>> On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar < >>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Great thanks >>>>>>>>>> >>>>>>>>>> On Fri, 7 Jan 2022, 06:43 user user, <user35b@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> All right, I shall get the version 2021. >>>>>>>>>>> Thanks. I am wanting to learn from the resource you sent while >>>>>>>>>>> putting some final touches to mine. >>>>>>>>>>> >>>>>>>>>>> On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar < >>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Which version of openscad you are working with? >>>>>>>>>>>> It needs 2021 version which supports x^2 system for squaring >>>>>>>>>>>> otherwise you need to replace the syntax with pow(x,2) >>>>>>>>>>>> >>>>>>>>>>>> On Fri, 7 Jan 2022, 06:17 user user, <user35b@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Dear Sanjeev, >>>>>>>>>>>>> >>>>>>>>>>>>> ou Tfor your assistance. Your attachment throws an error as >>>>>>>>>>>>> shown below: >>>>>>>>>>>>> >>>>>>>>>>>>> dependencies.scad", line 107: syntax error >>>>>>>>>>>>> >>>>>>>>>>>>> On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar < >>>>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi >>>>>>>>>>>>>> There is another way to do this. >>>>>>>>>>>>>> not clear what is psu >>>>>>>>>>>>>> regards >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Thu, 6 Jan 2022 at 20:31, <user35b@gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Please help. I cannot convert the above Openscad code to >>>>>>>>>>>>>>> STL. On trying it, I received the above blank page with the notice/warning >>>>>>>>>>>>>>> below it. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I read somewhere that it might be owing to the % I used, yet >>>>>>>>>>>>>>> I don't know how to fix it. The keyboard dimension (top of source code) is >>>>>>>>>>>>>>> the actual length for the artefact. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Here is the code in editable form - >>>>>>>>>>>>>>> https://pastebin.mozilla.org/wjo2V2xj >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Entire code and grahics can be downloaded from here - >>>>>>>>>>>>>>> https://file.pizza/download/gt0tfawi >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Main code here: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> [code] >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //Comment line 52 to hide the PSU >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //Keyboard dimension: 14.1” x 7.79” x 1.49” >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //! Project description in Markdown format before the first >>>>>>>>>>>>>>> include. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> $pp1_colour = "grey"; // Override any global defaults here >>>>>>>>>>>>>>> if required, see NopSCADlib/global_defs.scad. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> include <NopSCADlib/lib.scad> // Includes all the vitamins >>>>>>>>>>>>>>> and utilities in NopSCADlib but not the printed parts. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> include <NopSCADlib/vitamins/d_connector.scad> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> include <NopSCADlib/vitamins/psus.scad> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //Custom files; may not be needed now >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //include <bottom.scad> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //! Assembly instructions in Markdown format in front of >>>>>>>>>>>>>>> each module that makes an assembly. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> module main_assembly() >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> assembly("main") { >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> linear_extrude(height = 15){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // translate([5,9,-2]) >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> square(24, center = true); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> square(23.5, center = true); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> }//close of inner difference >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> }//close of linear extrude >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18], >>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]], >>>>>>>>>>>>>>> paths=[[0,1,2],[3,4,5]],convexity=10); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]]; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // triangle_paths =[[0,1,2],[3,4,5]]; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //translate([-10, 0, 7]) rotate([90, 0, 0]) >>>>>>>>>>>>>>> linear_extrude(height = 24, center = true) >>>>>>>>>>>>>>> polygon(triangle_points,triangle_paths,1); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> b = 10; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> h = 10; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> w = 24; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> triangle_points = [[0,0],[h,0],[0,b]]; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> triangle_paths = [[0,1,2]]; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //Start with an extruded triangle >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([0, 0, 16]) rotate([90, 90, >>>>>>>>>>>>>>> 180])linear_extrude(height = w, center = true, twist = 0)polygon(points = >>>>>>>>>>>>>>> triangle_points, paths = triangle_paths, convexity = 10); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> }//close of difference >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //scale([0.2,0.2,0.2])d_plug(DCONN9); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //Comment next line to hide the PSU >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([-9, -7.7, 0]) rotate([0, 0, >>>>>>>>>>>>>>> 90])scale([0.05,0.05,0.05])psu(PD_150_12); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> }//close of assembly ("main") >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> if($preview){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> main_assembly(); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([0,0,-5])bottom(); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> } >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> /* >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> intersection(){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([10,6,1]){scale(0.5,0.5,0.5){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // difference(){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // sphere(8); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // translate([0,10,0])sphere(8); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // translate([0,-10,0])sphere(8); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> // } >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9, >>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> } >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> }//close of intersection >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> } >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //updating via http-svn >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([10,36,1]){ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> } >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7, >>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> */ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> [/code] >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Error image, desired output and code screenshots are >>>>>>>>>>>>>>> attached. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Kindly assist. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thanks in advance. >>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>> 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 >>>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> 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 >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> _______________________________________________ >>> 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 >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
UU
user user
Fri, Jan 7, 2022 8:38 AM

I have adjusted various lines but not much luck; I shall make do with what
I have for now. Thanks to everyone.

On Fri, Jan 7, 2022 at 1:57 PM Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

In your code try replacing scale(......) with resize([7.2,12,7])

On Fri, 7 Jan 2022, 10:39 user user, user35b@gmail.com wrote:

PSU not needed here. It was only added in code write-up. The desired
dimension is 7..2in(L)X12in(W)X7in(H).

On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

What is the exact dimension you need for psu

On Fri, 7 Jan 2022, 09:58 user user, user35b@gmail.com wrote:

I'm looking over and over again where to insert your command -
swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line.

On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Resize would be better for exact dimensions
You can write and Check following command
swp(rsz3d(cub([30,20,20]),[10,10,10]));

On Fri, 7 Jan 2022, 09:27 user user, user35b@gmail.com wrote:

I look forward to hearing from you on setting the dimensions. Scale()
would perfectly help as earlier suggested by another guru.

On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Sure it's ok

On Fri, 7 Jan 2022, 09:21 user user, user35b@gmail.com wrote:

I shall directly mail you about it. If you don't mind. I am afraid
I don't want my request for assistance with setting the dimensions
overlooked. If you could assist with that (too), it would be greatly
appreciated.

On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

I don't have my laptop with me as I am traveling
Can you please paste the line no 470 here so that I can comment

On Fri, 7 Jan 2022, 07:17 user user, user35b@gmail.com wrote:

@Sanjeev: Another err on using 2021 ver. The err is ERROR:
Parser error: syntax error in file dependencies.scad, line 470
http://470,/Users/others/Downloads/user35b/dependencies.scad

Execution aborted

On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Great thanks

On Fri, 7 Jan 2022, 06:43 user user, user35b@gmail.com wrote:

All right, I shall get the version 2021.
Thanks. I am wanting to learn from the resource you sent while
putting some final touches to mine.

On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Which version of openscad you are working with?
It needs 2021 version which supports x^2 system for squaring
otherwise you need to replace the syntax with  pow(x,2)

On Fri, 7 Jan 2022, 06:17 user user, user35b@gmail.com
wrote:

Dear Sanjeev,

ou Tfor your assistance.  Your attachment throws an error as
shown below:

dependencies.scad", line 107: syntax error

On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Hi
There is another way to do this.
not clear what is psu
regards

On Thu, 6 Jan 2022 at 20:31, user35b@gmail.com wrote:

Please help. I cannot convert the above Openscad code to
STL. On trying it, I received the above blank page with the notice/warning
below it.

I read somewhere that it might be owing to the % I used,
yet I don't know how to fix it. The keyboard dimension (top of source code)
is the actual length for the artefact.

Here is the code in editable form -
https://pastebin.mozilla.org/wjo2V2xj

Entire code and grahics can be downloaded from here -
https://file.pizza/download/gt0tfawi

Main code here:

[code]

//Comment line 52 to hide the PSU

//Keyboard dimension: 14.1” x 7.79” x 1.49”

//! Project description in Markdown format before the first
include.

$pp1_colour = "grey"; // Override any global defaults here
if required, see NopSCADlib/global_defs.scad.

include <NopSCADlib/lib.scad> // Includes all the vitamins
and utilities in NopSCADlib but not the printed parts.

include <NopSCADlib/vitamins/d_connector.scad>

include <NopSCADlib/vitamins/psus.scad>

//Custom files; may not be needed now

//include <bottom.scad>

//! Assembly instructions in Markdown format in front of
each module that makes an assembly.

module main_assembly()

assembly("main") {

difference(){

linear_extrude(height = 15){

// translate([5,9,-2])

difference(){

square(24, center = true);

square(23.5, center = true);

}//close of inner difference

}//close of linear extrude

translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18],
center = true);

// polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]],
paths=[[0,1,2],[3,4,5]],convexity=10);

//

// triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]];

// triangle_paths =[[0,1,2],[3,4,5]];

//translate([-10, 0, 7]) rotate([90, 0, 0])
linear_extrude(height = 24, center = true)
polygon(triangle_points,triangle_paths,1);

b = 10;

h = 10;

w = 24;

triangle_points = [[0,0],[h,0],[0,b]];

triangle_paths = [[0,1,2]];

//Start with an extruded triangle

translate([0, 0, 16]) rotate([90, 90,
180])linear_extrude(height = w, center = true, twist = 0)polygon(points =
triangle_points, paths = triangle_paths, convexity = 10);

}//close of difference

//scale([0.2,0.2,0.2])d_plug(DCONN9);

//Comment next line to hide the PSU

translate([-9, -7.7, 0]) rotate([0, 0,
90])scale([0.05,0.05,0.05])psu(PD_150_12);

}//close of assembly ("main")

if($preview){

main_assembly();

translate([0,0,-5])bottom();

}

/*

intersection(){

translate([10,6,1]){scale(0.5,0.5,0.5){

// difference(){

// sphere(8);

// translate([0,10,0])sphere(8);

// translate([0,-10,0])sphere(8);

// }

translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9,
center = true);

}

}//close of intersection

}

//updating via http-svn

translate([10,36,1]){

}

translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7,
center = true);

*/

[/code]

Error image, desired output and code screenshots are
attached.

Kindly assist.

Thanks in advance.


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


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


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


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


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


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


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


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

I have adjusted various lines but not much luck; I shall make do with what I have for now. Thanks to everyone. On Fri, Jan 7, 2022 at 1:57 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > In your code try replacing scale(......) with resize([7.2,12,7]) > > > On Fri, 7 Jan 2022, 10:39 user user, <user35b@gmail.com> wrote: > >> PSU not needed here. It was only added in code write-up. The desired >> dimension is 7..2in(L)X12in(W)X7in(H). >> >> On Fri, Jan 7, 2022, 12:49 Sanjeev Prabhakar <sprabhakar2006@gmail.com> >> wrote: >> >>> What is the exact dimension you need for psu >>> >>> On Fri, 7 Jan 2022, 09:58 user user, <user35b@gmail.com> wrote: >>> >>>> I'm looking over and over again where to insert your command - >>>> swp(rsz3d(cub([30,20,20]),[10,10,10])); please advise what line. >>>> >>>> On Fri, Jan 7, 2022 at 12:08 PM Sanjeev Prabhakar < >>>> sprabhakar2006@gmail.com> wrote: >>>> >>>>> Resize would be better for exact dimensions >>>>> You can write and Check following command >>>>> swp(rsz3d(cub([30,20,20]),[10,10,10])); >>>>> >>>>> On Fri, 7 Jan 2022, 09:27 user user, <user35b@gmail.com> wrote: >>>>> >>>>>> I look forward to hearing from you on setting the dimensions. Scale() >>>>>> would perfectly help as earlier suggested by another guru. >>>>>> >>>>>> On Fri, Jan 7, 2022, 11:53 Sanjeev Prabhakar < >>>>>> sprabhakar2006@gmail.com> wrote: >>>>>> >>>>>>> Sure it's ok >>>>>>> >>>>>>> On Fri, 7 Jan 2022, 09:21 user user, <user35b@gmail.com> wrote: >>>>>>> >>>>>>>> I shall directly mail you about it. If you don't mind. I am afraid >>>>>>>> I don't want my request for assistance with setting the dimensions >>>>>>>> overlooked. If you could assist with that (too), it would be greatly >>>>>>>> appreciated. >>>>>>>> >>>>>>>> On Fri, Jan 7, 2022, 10:35 Sanjeev Prabhakar < >>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>> >>>>>>>>> I don't have my laptop with me as I am traveling >>>>>>>>> Can you please paste the line no 470 here so that I can comment >>>>>>>>> >>>>>>>>> On Fri, 7 Jan 2022, 07:17 user user, <user35b@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> @Sanjeev: Another err on using 2021 ver. The err is ERROR: >>>>>>>>>> Parser error: syntax error in file dependencies.scad, line 470 >>>>>>>>>> <http://470,/Users/others/Downloads/user35b/dependencies.scad> >>>>>>>>>> >>>>>>>>>> Execution aborted >>>>>>>>>> >>>>>>>>>> On Fri, Jan 7, 2022 at 9:16 AM Sanjeev Prabhakar < >>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Great thanks >>>>>>>>>>> >>>>>>>>>>> On Fri, 7 Jan 2022, 06:43 user user, <user35b@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> All right, I shall get the version 2021. >>>>>>>>>>>> Thanks. I am wanting to learn from the resource you sent while >>>>>>>>>>>> putting some final touches to mine. >>>>>>>>>>>> >>>>>>>>>>>> On Fri, Jan 7, 2022 at 9:06 AM Sanjeev Prabhakar < >>>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Which version of openscad you are working with? >>>>>>>>>>>>> It needs 2021 version which supports x^2 system for squaring >>>>>>>>>>>>> otherwise you need to replace the syntax with pow(x,2) >>>>>>>>>>>>> >>>>>>>>>>>>> On Fri, 7 Jan 2022, 06:17 user user, <user35b@gmail.com> >>>>>>>>>>>>> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Dear Sanjeev, >>>>>>>>>>>>>> >>>>>>>>>>>>>> ou Tfor your assistance. Your attachment throws an error as >>>>>>>>>>>>>> shown below: >>>>>>>>>>>>>> >>>>>>>>>>>>>> dependencies.scad", line 107: syntax error >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, Jan 7, 2022 at 12:34 AM Sanjeev Prabhakar < >>>>>>>>>>>>>> sprabhakar2006@gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi >>>>>>>>>>>>>>> There is another way to do this. >>>>>>>>>>>>>>> not clear what is psu >>>>>>>>>>>>>>> regards >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, 6 Jan 2022 at 20:31, <user35b@gmail.com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Please help. I cannot convert the above Openscad code to >>>>>>>>>>>>>>>> STL. On trying it, I received the above blank page with the notice/warning >>>>>>>>>>>>>>>> below it. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I read somewhere that it might be owing to the % I used, >>>>>>>>>>>>>>>> yet I don't know how to fix it. The keyboard dimension (top of source code) >>>>>>>>>>>>>>>> is the actual length for the artefact. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Here is the code in editable form - >>>>>>>>>>>>>>>> https://pastebin.mozilla.org/wjo2V2xj >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Entire code and grahics can be downloaded from here - >>>>>>>>>>>>>>>> https://file.pizza/download/gt0tfawi >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Main code here: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> [code] >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //Comment line 52 to hide the PSU >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //Keyboard dimension: 14.1” x 7.79” x 1.49” >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //! Project description in Markdown format before the first >>>>>>>>>>>>>>>> include. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> $pp1_colour = "grey"; // Override any global defaults here >>>>>>>>>>>>>>>> if required, see NopSCADlib/global_defs.scad. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> include <NopSCADlib/lib.scad> // Includes all the vitamins >>>>>>>>>>>>>>>> and utilities in NopSCADlib but not the printed parts. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> include <NopSCADlib/vitamins/d_connector.scad> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> include <NopSCADlib/vitamins/psus.scad> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //Custom files; may not be needed now >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //include <bottom.scad> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //! Assembly instructions in Markdown format in front of >>>>>>>>>>>>>>>> each module that makes an assembly. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> module main_assembly() >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> assembly("main") { >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> linear_extrude(height = 15){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // translate([5,9,-2]) >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> difference(){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> square(24, center = true); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> square(23.5, center = true); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> }//close of inner difference >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> }//close of linear extrude >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([8, 0, 13])rotate([0, 90, 0])cube([11, 24, 18], >>>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // polygon(points=[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]], >>>>>>>>>>>>>>>> paths=[[0,1,2],[3,4,5]],convexity=10); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // triangle_points =[[0,0],[10,0],[0,10],[1,1],[8,1],[1,8]]; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // triangle_paths =[[0,1,2],[3,4,5]]; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //translate([-10, 0, 7]) rotate([90, 0, 0]) >>>>>>>>>>>>>>>> linear_extrude(height = 24, center = true) >>>>>>>>>>>>>>>> polygon(triangle_points,triangle_paths,1); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> b = 10; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> h = 10; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> w = 24; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> triangle_points = [[0,0],[h,0],[0,b]]; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> triangle_paths = [[0,1,2]]; >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //Start with an extruded triangle >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([0, 0, 16]) rotate([90, 90, >>>>>>>>>>>>>>>> 180])linear_extrude(height = w, center = true, twist = 0)polygon(points = >>>>>>>>>>>>>>>> triangle_points, paths = triangle_paths, convexity = 10); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> }//close of difference >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //scale([0.2,0.2,0.2])d_plug(DCONN9); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //Comment next line to hide the PSU >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([-9, -7.7, 0]) rotate([0, 0, >>>>>>>>>>>>>>>> 90])scale([0.05,0.05,0.05])psu(PD_150_12); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> }//close of assembly ("main") >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> if($preview){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> main_assembly(); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([0,0,-5])bottom(); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> } >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> /* >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> intersection(){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([10,6,1]){scale(0.5,0.5,0.5){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // difference(){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // sphere(8); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // translate([0,10,0])sphere(8); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // translate([0,-10,0])sphere(8); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> // } >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([0, 2, 0])rotate([90,0,0])cylinder(r = 1, h = 9, >>>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> } >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> }//close of intersection >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> } >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> //updating via http-svn >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([10,36,1]){ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> } >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> translate([0, -2, 0])rotate([90,0,0])cylinder(r = 1, h = 7, >>>>>>>>>>>>>>>> center = true); >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> */ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> [/code] >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Error image, desired output and code screenshots are >>>>>>>>>>>>>>>> attached. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Kindly assist. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Thanks in advance. >>>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>>> 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 >>>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> 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 >>>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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 >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>> _______________________________________________ >>>> 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 >>> >> _______________________________________________ >> 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 >
UU
user user
Sat, Jan 8, 2022 1:51 AM

Final 3D print is ridiculously small. See attached. The length should be

about that of the keyboard beside it. I have changed values in the square
and cube. The difference in square values make the thickness. Given that I
want 7.2x12x7in, converting inch into mm and inserting the values (in the
square and cube functions) yielded the wrong outcome. The entire project
vanished in the .STL. Kindly assist.

> > Final 3D print is ridiculously small. See attached. The length should be >> about that of the keyboard beside it. I have changed values in the square >> and cube. The difference in square values make the thickness. Given that I >> want 7.2x12x7in, converting inch into mm and inserting the values (in the >> square and cube functions) yielded the wrong outcome. The entire project >> vanished in the .STL. Kindly assist. > >
UU
user user
Sat, Jan 8, 2022 1:51 AM

Attachment

On Sat, Jan 8, 2022, 09:51 user user user35b@gmail.com wrote:

Final 3D print is ridiculously small. See attached. The length should be

about that of the keyboard beside it. I have changed values in the square
and cube. The difference in square values make the thickness. Given that I
want 7.2x12x7in, converting inch into mm and inserting the values (in the
square and cube functions) yielded the wrong outcome. The entire project
vanished in the .STL. Kindly assist.

Attachment On Sat, Jan 8, 2022, 09:51 user user <user35b@gmail.com> wrote: > Final 3D print is ridiculously small. See attached. The length should be >>> about that of the keyboard beside it. I have changed values in the square >>> and cube. The difference in square values make the thickness. Given that I >>> want 7.2x12x7in, converting inch into mm and inserting the values (in the >>> square and cube functions) yielded the wrong outcome. The entire project >>> vanished in the .STL. Kindly assist. >> >> >
DP
David Phillip Oster
Sat, Jan 8, 2022 2:29 AM

OpenSCAD's natural units are millimeters. STL files tend to use either
millimeters or inches. When I need to work in inches, I say:

function in(n) = 25.4 *n;

for example from Sanjeev Prabhakar's email:

resize([in(7.2),in(12),in(7)]) …

On Fri, Jan 7, 2022 at 5:52 PM user user user35b@gmail.com wrote:

Attachment

On Sat, Jan 8, 2022, 09:51 user user user35b@gmail.com wrote:

Final 3D print is ridiculously small. See attached. The length should be

about that of the keyboard beside it. I have changed values in the square
and cube. The difference in square values make the thickness. Given that I
want 7.2x12x7in, converting inch into mm and inserting the values (in the
square and cube functions) yielded the wrong outcome. The entire project
vanished in the .STL. Kindly assist.


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

OpenSCAD's natural units are millimeters. STL files tend to use either millimeters or inches. When I need to work in inches, I say: function in(n) = 25.4 *n; for example from Sanjeev Prabhakar's email: resize([in(7.2),in(12),in(7)]) … On Fri, Jan 7, 2022 at 5:52 PM user user <user35b@gmail.com> wrote: > Attachment > > On Sat, Jan 8, 2022, 09:51 user user <user35b@gmail.com> wrote: > >> Final 3D print is ridiculously small. See attached. The length should be >>>> about that of the keyboard beside it. I have changed values in the square >>>> and cube. The difference in square values make the thickness. Given that I >>>> want 7.2x12x7in, converting inch into mm and inserting the values (in the >>>> square and cube functions) yielded the wrong outcome. The entire project >>>> vanished in the .STL. Kindly assist. >>> >>> >> _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
DG
David Gustavson
Sat, Jan 8, 2022 3:15 AM

STL files don't have and can't remember dimension units.
When you slice it, you'll have to specify the scale.
Often your slicer will default to something useful, but if you want inches and it thinks you want millimeters, you get very tiny objects.

--
David Gustavson
dbg@scizzl.com

On Fri, Jan 7, 2022, at 6:29 PM, David Phillip Oster wrote:

OpenSCAD's natural units are millimeters. STL files tend to use either millimeters or inches. When I need to work in inches, I say:

function in(n) = 25.4 *n;

for example from Sanjeev Prabhakar's email:

resize([in(7.2),in(12),in(7)]) …

On Fri, Jan 7, 2022 at 5:52 PM user user user35b@gmail.com wrote:

Attachment

On Sat, Jan 8, 2022, 09:51 user user user35b@gmail.com wrote:

Final 3D print is ridiculously small. See attached. The length should be about that of the keyboard beside it. I have changed values in the square and cube. The difference in square values make the thickness. Given that I want 7.2x12x7in, converting inch into mm and inserting the values (in the square and cube functions) yielded the wrong outcome. The entire project vanished in the .STL. Kindly assist.


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

STL files don't have and can't remember dimension units. When you slice it, you'll have to specify the scale. Often your slicer will default to something useful, but if you want inches and it thinks you want millimeters, you get very tiny objects. -- David Gustavson dbg@scizzl.com On Fri, Jan 7, 2022, at 6:29 PM, David Phillip Oster wrote: > OpenSCAD's natural units are millimeters. STL files tend to use either millimeters or inches. When I need to work in inches, I say: > > function in(n) = 25.4 *n; > > > > for example from Sanjeev Prabhakar's email: > > > resize([in(7.2),in(12),in(7)]) … > > > > On Fri, Jan 7, 2022 at 5:52 PM user user <user35b@gmail.com> wrote: >> Attachment >> >> On Sat, Jan 8, 2022, 09:51 user user <user35b@gmail.com> wrote: >>>>> Final 3D print is ridiculously small. See attached. The length should be about that of the keyboard beside it. I have changed values in the square and cube. The difference in square values make the thickness. Given that I want 7.2x12x7in, converting inch into mm and inserting the values (in the square and cube functions) yielded the wrong outcome. The entire project vanished in the .STL. Kindly assist. >>> >>>>> >> _______________________________________________ >> 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 >
DP
David Phillip Oster
Sat, Jan 8, 2022 3:18 AM

David Gustavson's explanation is better than mine. When you slice for a 3D
printer, you can set the scale.

On Fri, Jan 7, 2022 at 7:16 PM David Gustavson dbg@scizzl.com wrote:

STL files don't have and can't remember dimension units.
When you slice it, you'll have to specify the scale.
Often your slicer will default to something useful, but if you want inches
and it thinks you want millimeters, you get very tiny objects.

--
David Gustavson
dbg@scizzl.com

On Fri, Jan 7, 2022, at 6:29 PM, David Phillip Oster wrote:

OpenSCAD's natural units are millimeters. STL files tend to use either
millimeters or inches. When I need to work in inches, I say:

function in(n) = 25.4 *n;

for example from Sanjeev Prabhakar's email:

resize([in(7.2),in(12),in(7)]) …

On Fri, Jan 7, 2022 at 5:52 PM user user user35b@gmail.com wrote:

Attachment

On Sat, Jan 8, 2022, 09:51 user user user35b@gmail.com wrote:

Final 3D print is ridiculously small. See attached. The length should be
about that of the keyboard beside it. I have changed values in the square
and cube. The difference in square values make the thickness. Given that I
want 7.2x12x7in, converting inch into mm and inserting the values (in the
square and cube functions) yielded the wrong outcome. The entire project
vanished in the .STL. Kindly assist.


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


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

David Gustavson's explanation is better than mine. When you slice for a 3D printer, you can set the scale. On Fri, Jan 7, 2022 at 7:16 PM David Gustavson <dbg@scizzl.com> wrote: > STL files don't have and can't remember dimension units. > When you slice it, you'll have to specify the scale. > Often your slicer will default to something useful, but if you want inches > and it thinks you want millimeters, you get very tiny objects. > > -- > David Gustavson > dbg@scizzl.com > > > > On Fri, Jan 7, 2022, at 6:29 PM, David Phillip Oster wrote: > > OpenSCAD's natural units are millimeters. STL files tend to use either > millimeters or inches. When I need to work in inches, I say: > > function in(n) = 25.4 *n; > > > for example from Sanjeev Prabhakar's email: > > > resize([in(7.2),in(12),in(7)]) … > > > On Fri, Jan 7, 2022 at 5:52 PM user user <user35b@gmail.com> wrote: > > Attachment > > On Sat, Jan 8, 2022, 09:51 user user <user35b@gmail.com> wrote: > > Final 3D print is ridiculously small. See attached. The length should be > about that of the keyboard beside it. I have changed values in the square > and cube. The difference in square values make the thickness. Given that I > want 7.2x12x7in, converting inch into mm and inserting the values (in the > square and cube functions) yielded the wrong outcome. The entire project > vanished in the .STL. Kindly assist. > > > > _______________________________________________ > 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 > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
U
user35b@gmail.com
Thu, Feb 10, 2022 1:34 PM

Print is out. Hardware perfectly fits in after resizing. Thanks to everyone.

Print is out. Hardware perfectly fits in after resizing. Thanks to everyone.