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.
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 |
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 |
Hi Thanks, tried that but did not solve the issue Regards 250GBOX Vince From: Discuss <[hidden email]>
On Behalf Of fred via Discuss 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 |
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 |
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
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 |
Thank you I will try this 250GBOX Vince From: Discuss <[hidden email]>
On Behalf Of fred via Discuss 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 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 |
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 |
In reply to this post by OpenSCAD mailing list-2
On 10/7/2020 1:27 AM, fred via Discuss
wrote:
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: but this is OK:width = 1; width = width + 2; 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".width = 1; echo(width); if (true) { width = width + 2; echo(width); } echo(width); I've used this for patterns like to let you specify either the radius or the diameter. Both calls echo r=1,d=2.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); 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 |
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 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 |
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]>:
_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org |
Hi Tryve Thanks for your help, I will try that Vince From: Discuss <[hidden email]>
On Behalf Of [hidden email] 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]>:
_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org |
Free forum by Nabble | Edit this page |