openScad help...
I am trying to print an 8" pulley using the openScad pully library https://www.thingiverse.com/thing:2105020
Because I want the set screw to be on a smaller hub so I can tap it with standard tools I want to make a step pulley with the smaller one having the set screw hole.
According to the file I should be able to do this:
module stepN(type="4L", dia1,dia2,...,diaN, arborD, key=.125, res=60, padding=true, screw=false)
type: type of belt: 2L, 3L, 4L, 5L, A, B, C, D, E, 3V, 5V, 8V
diaN: desired outer diameter of each pulley, enter each diameter in order
arbor: arbor or spindle diameter, through the pulley
key: square key slot, default is 1/8"
res: resolution of the circles, default is $fn=60
padding: adds a layer on either side of the pulley dependant upon the belt width
screw: automatically places a set screw on the second pulley
Here is the code I am trying to use but it doesn't work and the part never appears, I have tried all manner of things with no joy. (I can get a single pulley to work no problem so it is not an issue with the library path.)
include <pulleys.scad>
module stepN(type="4L", dia1=8,dia2=.75, arborD=.5, key=0, res=100, padding=true, screw=true);
If anybody could nudge me in the right direction here it would be appreciated!
Cheers,
Jon
Re: openScad help...
I am pretty sure I am just misunderstanding the syntax.
It states: module stepN(type="4L", dia1,dia2,...,diaN, arborD, key=.125, res=60, padding=true, screw=false)
And then diaN: desired outer diameter of each pulley, enter each diameter in order
So do you add dia1=8, dia2=3/4 or should it be diaN1=8, diaN2=3/4? or what?
None of that seems to work lol
I tried to put up a post at the openScad forum but it is heavily moderated and I am still stuck in a que.
Cheers,
Jon
Re: openScad help...
I am trying to print an 8" pulley using the openScad pully library https://www.thingiverse.com/thing:2105020
Because I want the set screw to be on a smaller hub so I can tap it with standard tools I want to make a step pulley with the smaller one having the set screw hole.
According to the file I should be able to do this:
module stepN(type="4L", dia1,dia2,...,diaN, arborD, key=.125, res=60, padding=true, screw=false)
In openscad 'module' is to declare the thing you're making, not show it, you generally have a pattern like this:
// 2 screws 30mm apart
screw();
translate(v=[30,0,0]);
module screw() {
cylinder(r=1,h=30);
}
So in your case you would do
include <pulleys.scad>
step2(type="4L", dia1=8,dia2=.75, arborD=.5, key=0, res=100, padding=true, screw=true);
The second thing that went wrong is using 'stepN' as a literal module, it's shorthand for step2(), step3(), step4(), etc. Pick the number you want and use that. 'step2' gives me a pulley and a ring floating about it.
Re: openScad help...
Thank you so much!
Cheers,
Jon