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
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 <beltechsmb@outlook.com> wrote:
<!--#yiv4780641238 _filtered {} _filtered {}#yiv4780641238 #yiv4780641238 p.yiv4780641238MsoNormal, #yiv4780641238 li.yiv4780641238MsoNormal, #yiv4780641238 div.yiv4780641238MsoNormal {margin:0in;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv4780641238 span.yiv4780641238EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv4780641238 .yiv4780641238MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered {}#yiv4780641238 div.yiv4780641238WordSection1 {}-->
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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Hi
Thanks, tried that but did not solve the issue
Regards
250GBOX
Vince
From: Discuss discuss-bounces@lists.openscad.org On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
Cc: fred fred_dot_u@yahoo.com
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 <beltechsmb@outlook.commailto:beltechsmb@outlook.com> 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
Discuss@lists.openscad.orgmailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
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 <beltechsmb@outlook.com> wrote:
<!--#yiv4780641238 _filtered {} _filtered {}#yiv4780641238 #yiv4780641238 p.yiv4780641238MsoNormal, #yiv4780641238 li.yiv4780641238MsoNormal, #yiv4780641238 div.yiv4780641238MsoNormal {margin:0in;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv4780641238 span.yiv4780641238EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv4780641238 .yiv4780641238MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered {}#yiv4780641238 div.yiv4780641238WordSection1 {}-->
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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
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 <beltechsmb@outlook.com> wrote:
#yiv6749585772 #yiv6749585772 -- _filtered {} _filtered {} _filtered {}#yiv6749585772 #yiv6749585772 p.yiv6749585772MsoNormal, #yiv6749585772 li.yiv6749585772MsoNormal, #yiv6749585772 div.yiv6749585772MsoNormal {margin:0in;font-size:11.0pt;font-family:sans-serif;}#yiv6749585772 a:link, #yiv6749585772 span.yiv6749585772MsoHyperlink {color:blue;text-decoration:underline;}#yiv6749585772 p.yiv6749585772msonormal, #yiv6749585772 li.yiv6749585772msonormal, #yiv6749585772 div.yiv6749585772msonormal {margin-right:0in;margin-left:0in;font-size:11.0pt;font-family:sans-serif;}#yiv6749585772 span.yiv6749585772EmailStyle26 {font-family:sans-serif;color:windowtext;}#yiv6749585772 .yiv6749585772MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv6749585772 div.yiv6749585772WordSection1 {}#yiv6749585772
Hi
Thanks, tried that but did not solve the issue
Regards
250GBOX
Vince
From: Discuss discuss-bounces@lists.openscad.org On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
Cc: fred fred_dot_u@yahoo.com
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 beltechsmb@outlook.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Thank you
I will try this
250GBOX
Vince
From: Discuss discuss-bounces@lists.openscad.org On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:31 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
Cc: fred fred_dot_u@yahoo.com
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 <beltechsmb@outlook.commailto:beltechsmb@outlook.com> wrote:
Hi
Thanks, tried that but did not solve the issue
Regards
250GBOX
Vince
From: Discuss <discuss-bounces@lists.openscad.orgmailto:discuss-bounces@lists.openscad.org> On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:23 AM
To: OpenSCAD general discussion <discuss@lists.openscad.orgmailto:discuss@lists.openscad.org>
Cc: fred <fred_dot_u@yahoo.commailto:fred_dot_u@yahoo.com>
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 <beltechsmb@outlook.commailto:beltechsmb@outlook.com> 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
Discuss@lists.openscad.orgmailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
OpenSCAD mailing list
Discuss@lists.openscad.orgmailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
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:
Preview will show you what the teeth will look like.
This will show the right thing.
Change the line to read
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/
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.
https://www.youtube.com/watch?v=SEbwZfkeIt8
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.
Hi
I have tried this but still have the same issue
From: Discuss discuss-bounces@lists.openscad.org On Behalf Of fred via Discuss
Sent: Wednesday, October 7, 2020 9:28 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
Cc: fred fred_dot_u@yahoo.com
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 Vivalizehttps://www.thingiverse.com/thing:2682637/comments
[cid:image001.png@01D69E12.81646A90]
[cid:image005.png@01D69E12.81777D60]
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 beltechsmb@outlook.com 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
Discuss@lists.openscad.orgmailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
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 beltechsmb@outlook.com:
Hi
I have tried this but still have the same issue
From: Discuss discuss-bounces@lists.openscad.org On Behalf Offred via Discuss
Sent: Wednesday, October 7, 2020 9:28 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
Cc: fred fred_dot_u@yahoo.com
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 https://www.thingiverse.com/thing:2682637/comments
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 beltechsmb@outlook.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org