Nabble has removed Mailing-list integration.
Posts created here DO NOT GET SENT TO THE MAILING LIST.
Mailing-list emails DO NOT GET POSTED TO THE FORUM.
So basically the Forum is now out of date, we are looking into migrating the history.

For now you should send emails, people will see them, discuss@lists.openscad.org.

Parametric pulley belt

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Parametric pulley belt

250GBOX

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

OpenSCAD mailing list-2
There's a July entry in the comments that might provide some value:

No teeth showing problem (openscad 2019.05). I seem to have got round this by changing the non-specified variable 'pulley_b_ht' in line 110 to 0 and remove the -1. This doesn't seem to cause any problems for me so far.

It's not my comment and I've not tested it.

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:


Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

250GBOX

Hi

 

Thanks, tried that but did not solve the issue

 

Regards

 

250GBOX

 

Vince

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

There's a July entry in the comments that might provide some value:

 

No teeth showing problem (openscad 2019.05). I seem to have got round this by changing the non-specified variable 'pulley_b_ht' in line 110 to 0 and remove the -1. This doesn't seem to cause any problems for me so far.

 

It's not my comment and I've not tested it.

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

OpenSCAD mailing list-2
In reply to this post by 250GBOX
Now that I've tested it, there's a new error with the change recommended from the comment. Line 184 has a parameter in the module call reading "width = width + 2" which is not supported in OpenSCAD. I removed the plus two and it works, but I think all the similar modules will have to be corrected in this manner.

The link to the model:  Parametric Pulley Belt by Vivalize




On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:


Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

OpenSCAD mailing list-2
In reply to this post by 250GBOX
I erred in my correction as well. I changed "width = width + 2" to "width" alone.
Doing so changes the entire result's dimensions. The creator doesn't appear to monitor his creation and/or doesn't care to correct the programming errors.

If you're still having complications, more specific information would be helpful.

On Wednesday, October 7, 2020, 4:28:13 AM EDT, Vince Yeoman <[hidden email]> wrote:


Hi

 

Thanks, tried that but did not solve the issue

 

Regards

 

250GBOX

 

Vince

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

There's a July entry in the comments that might provide some value:

 

No teeth showing problem (openscad 2019.05). I seem to have got round this by changing the non-specified variable 'pulley_b_ht' in line 110 to 0 and remove the -1. This doesn't seem to cause any problems for me so far.

 

It's not my comment and I've not tested it.

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

250GBOX

Thank you

 

I will try this

 

250GBOX

 

Vince

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:31 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

I erred in my correction as well. I changed "width = width + 2" to "width" alone.

Doing so changes the entire result's dimensions. The creator doesn't appear to monitor his creation and/or doesn't care to correct the programming errors.

 

If you're still having complications, more specific information would be helpful.

 

On Wednesday, October 7, 2020, 4:28:13 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi

 

Thanks, tried that but did not solve the issue

 

Regards

 

250GBOX

 

Vince

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

There's a July entry in the comments that might provide some value:

 

No teeth showing problem (openscad 2019.05). I seem to have got round this by changing the non-specified variable 'pulley_b_ht' in line 110 to 0 and remove the -1. This doesn't seem to cause any problems for me so far.

 

It's not my comment and I've not tested it.

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

lar3ry
In reply to this post by OpenSCAD mailing list-2
OpenSCAD mailing list-2 wrote
> Now that I've tested it, there's a new error with the change recommended
> from the comment. Line 184 has a parameter in the module call reading
> "width = width + 2" which is not supported in OpenSCAD. I removed the plus
> two and it works, but I think all the similar modules will have to be
> corrected in this manner.
> The link to the model:  Parametric Pulley Belt by Vivalize

The variable 'width' detemines the width of the teeth, which (I think)
should be the width of the belt as well.

Here's a little tip for you. Place a # character on any line you want to
highlight, and it will be shown in preview as a semi-transparent light red.
The beuaty of this is that the part highlighted will be shown in its
entirety, even if it it is changed later, say by a difference().

So, scroll down to line 184.
Change it to:
# linear_extrude(width)

Preview will show you what the teeth will look like.
This will show the right thing.

Change the line to read
# linear_extrude(width-1)

Change the line to read
#linear_extrude(width+5)

Preview will show you what's happening.

Bottom line is that you need to make it
linear_extrude(width)









--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

JordanBrown
In reply to this post by OpenSCAD mailing list-2
On 10/7/2020 1:27 AM, fred via Discuss wrote:
"width = width + 2" which is not supported in OpenSCAD.

That's not *entirely* accurate.

It's OK *if* there is a "width" at a broader scope and there is not yet a "width" in the current scope.

That is, this is no good:
width = 1;
width = width + 2;
but this is OK:
width = 1;
echo(width);
if (true) {
    width = width + 2;
    echo(width);
}
echo(width);
BUT it will print 1, 3, 1, not the 1,3,3 you would expect in another language.  The "width=width+2" in the middle creates a new "width" that only lasts until the end of the "if".

I've used this for patterns like
module some_round_thing(r, d) {
    r = r ? r : d/2;
    d = d ? d : r*2;
    echo(r=r, d=d);
}

some_round_thing(r=1);
some_round_thing(d=2);
to let you specify either the radius or the diameter.  Both calls echo r=1,d=2.

I haven't looked at this specific program to see if its usages falls into this case.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

250GBOX
In reply to this post by OpenSCAD mailing list-2

Hi

 

I have tried this but still have the same issue

 

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:28 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

Now that I've tested it, there's a new error with the change recommended from the comment. Line 184 has a parameter in the module call reading "width = width + 2" which is not supported in OpenSCAD. I removed the plus two and it works, but I think all the similar modules will have to be corrected in this manner.

 

The link to the model:  Parametric Pulley Belt by Vivalize

 

 


Parametric Pulley Belt by Vivalize

Open this design up in Customizer to get started! I needed a belt to go along with droftarts's fantastic paramet...

 

 

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

image004.emz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

Gadgetman!
Hi!

That width = width +2 thing is some of the worst coding I've ever seen, mine included!

The creator has put a variable assignment statement inside the parameter list of a function!
you only put the stuff that goes on the righthand side of the '=' there. 

It's like writing LS_Width_parameter = width = width+2

Have you tried using 'width + 2' in there?

Trygve

Den 9. oktober 2020 kl. 09.02.34 +02.00 skrev Vince Yeoman <[hidden email]>:

Hi

 

I have tried this but still have the same issue

 

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:28 AM
To: OpenSCAD general discussion <[hidden email]>
Cc: fred <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

Now that I've tested it, there's a new error with the change recommended from the comment. Line 184 has a parameter in the module call reading "width = width + 2" which is not supported in OpenSCAD. I removed the plus two and it works, but I think all the similar modules will have to be corrected in this manner.

 

The link to the model:  Parametric Pulley Belt by Vivalize

 

 



Parametric Pulley Belt by Vivalize

Open this design up in Customizer to get started! I needed a belt to go along with droftarts's fantastic paramet...

 

 

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Parametric pulley belt

250GBOX

Hi Tryve

 

Thanks for your help, I will try that

 

Vince

 

From: Discuss <[hidden email]> On Behalf Of [hidden email]
Sent: Friday, October 9, 2020 8:47 AM
To: OpenSCAD general discussion <[hidden email]>
Subject: Re: [OpenSCAD] Parametric pulley belt

 

Hi!

 

That width = width +2 thing is some of the worst coding I've ever seen, mine included!

 

The creator has put a variable assignment statement inside the parameter list of a function!

you only put the stuff that goes on the righthand side of the '=' there. 

 

It's like writing LS_Width_parameter = width = width+2

 

Have you tried using 'width + 2' in there?

 

Trygve

 

Den 9. oktober 2020 kl. 09.02.34 +02.00 skrev Vince Yeoman <[hidden email]>:

Hi

 

I have tried this but still have the same issue

 

 

From: Discuss <[hidden email]> On Behalf Of fred via Discuss

Sent: Wednesday, October 7, 2020 9:28 AM

To: OpenSCAD general discussion <[hidden email]>

Cc: fred <[hidden email]>

Subject: Re: [OpenSCAD] Parametric pulley belt

 

Now that I've tested it, there's a new error with the change recommended from the comment. Line 184 has a parameter in the module call reading "width = width + 2" which is not supported in OpenSCAD. I removed the plus two and it works, but I think all the similar modules will have to be corrected in this manner.

 

The link to the model:  Parametric Pulley Belt by Vivalize

 

 

Parametric Pulley Belt by Vivalize

Open this design up in Customizer to get started! I needed a belt to go along with droftarts's fantastic paramet...

 

 

 

On Wednesday, October 7, 2020, 4:16:32 AM EDT, Vince Yeoman <[hidden email]> wrote:

 

 

Hi Everyone

 

I am new to Openscad and would like some help please

 

I have downloaded a file from Thingiverse, ( parametric pulley belt ) which allows various timing belt profiles and sizes to be created, the problem is that each time I use the program no teeth appear on the belt and a pin or pulley is in the centre, the issue is with line 110, I have tried and failed to rectify this

 

Any ideas ?

 

250GBOX

 

Vince

 

 

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________

OpenSCAD mailing list

 


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org