discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Conversion of .scad to .stl results in Blank output

J
jon
Fri, Jan 7, 2022 1:36 AM

I have not put your code into OpenSCAD, but there should be scales on
each axis, in mm.  You should be able to see how large your model is. 
You can use the "scale([x, y, z])" facility to change the scale.  So, to
double the size, put "scale([2, 2, 2])" in front of all of your code. 
Look in the Help menu and click on the Cheat Sheet and then you can get
more information about each of the intrinsic commands.

Jon

On 1/6/2022 8:30 PM, user user wrote:

Dear All,
Thank you for your comments. I can now convert to STL on commenting
the preview. I however now need properly scale the artefact. I am
actually wanting to insert this device -
https://www.aliexpress.com/item/1772142652.html - into it. The
transparent plastic guard that the touchscreen and PCB sit on will be
cut into two. The screen will now be inserted in a slanty form on my
print while the PCB will be sitting in a horizontal state.
The dimension I need is about 7.2inch for length. It is in accordance
with the touchscreen width. The keyboard (dimension 14.1” x 7.79” x
1.49) will sit just on top protuding out left and right. While I won't
worry about its length, I reckon the width of my artefact would be
roughly 12in and height being 7in too.

Kindly help me adjust the dimension in my source code to
7..2in(L)X12in(W)X7in(H)

On Fri, Jan 7, 2022 at 12:28 AM nop head nop.head@gmail.com wrote:

 Line 60 is if($preview), so it only generates an assembly view
 with F5 and nothing with F6.

 Your main_assembly() has geometry in it, which is not how
 NopSCADlib works. You put geometry in modules that make STLs and
 include those modules in your assembly view. Then you normally
 export the STLs using the Python framework but you could
 add an else clause to the if($preview) to call one of your STL
 making modules.



 On Thu, 6 Jan 2022 at 15:19, <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 todiscuss-leave@lists.openscad.org

I have not put your code into OpenSCAD, but there should be scales on each axis, in mm.  You should be able to see how large your model is.  You can use the "scale([x, y, z])" facility to change the scale.  So, to double the size, put "scale([2, 2, 2])" in front of all of your code.  Look in the Help menu and click on the Cheat Sheet and then you can get more information about each of the intrinsic commands. Jon On 1/6/2022 8:30 PM, user user wrote: > Dear All, > Thank you for your comments. I can now convert to STL on commenting > the preview. I however now need properly scale the artefact. I am > actually wanting to insert this device - > https://www.aliexpress.com/item/1772142652.html - into it. The > transparent plastic guard that the touchscreen and PCB sit on will be > cut into two. The screen will now be inserted in a slanty form on my > print while the PCB will be sitting in a horizontal state. > The dimension I need is about 7.2inch for length. It is in accordance > with the touchscreen width. The keyboard (dimension 14.1” x 7.79” x > 1.49) will sit just on top protuding out left and right. While I won't > worry about its length, I reckon the width of my artefact would be > roughly 12in and height being 7in too. > > Kindly help me adjust the dimension in my source code to > 7..2in(L)X12in(W)X7in(H) > > On Fri, Jan 7, 2022 at 12:28 AM nop head <nop.head@gmail.com> wrote: > > Line 60 is if($preview), so it only generates an assembly view > with F5 and nothing with F6. > > Your main_assembly() has geometry in it, which is not how > NopSCADlib works. You put geometry in modules that make STLs and > include those modules in your assembly view. Then you normally > export the STLs using the Python framework but you could > add an else clause to the if($preview) to call one of your STL > making modules. > > > > On Thu, 6 Jan 2022 at 15:19, <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 todiscuss-leave@lists.openscad.org
UU
user user
Fri, Jan 7, 2022 1:48 AM

@Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser error:
syntax error in file dependencies.scad, line 470
<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

@Sanjeev: Another err on using 2021 ver. The err is ERROR: Parser error: syntax error in file dependencies.scad, line 470 <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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 2:34 AM

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

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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 3:48 AM

I just checked
Function 2df is used in another function cr (short form of corner radius).
You cannot use it independently.
Once I am back will send an example for function cr. This is a very useful
function

On Fri, 7 Jan 2022, 08:04 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

I just checked Function 2df is used in another function cr (short form of corner radius). You cannot use it independently. Once I am back will send an example for function cr. This is a very useful function On Fri, 7 Jan 2022, 08:04 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 >> >
UU
user user
Fri, Jan 7, 2022 3:50 AM

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

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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 3:52 AM

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

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 >
UU
user user
Fri, Jan 7, 2022 3:56 AM

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

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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 4:08 AM

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

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 >
UU
user user
Fri, Jan 7, 2022 4:29 AM

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

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 >
SP
Sanjeev Prabhakar
Fri, Jan 7, 2022 4:40 AM

I am sorry
This is just an example
I need to check your code and it will take time as I am not at home
You can check resize command in the cheatsheet for standard application.

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

I am sorry This is just an example I need to check your code and it will take time as I am not at home You can check resize command in the cheatsheet for standard application. 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 >