Hi Tryve
Thanks for your help, I will try that
Vince
From: Discuss discuss-bounces@lists.openscad.org On Behalf Of trygve@totallytrygve.com
Sent: Friday, October 9, 2020 8:47 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
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 <beltechsmb@outlook.commailto:beltechsmb@outlook.com>:
Hi
I have tried this but still have the same issue
From: Discuss <discuss-bounces@lists.openscad.orgmailto: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.orgmailto:discuss@lists.openscad.org>
Cc: fred <fred_dot_u@yahoo.commailto: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@01D69E19.42AD6840]
[cid:image002.png@01D69E19.42AD6840]
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.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
Hi Tryve
Thanks for your help, I will try that
Vince
From: Discuss <discuss-bounces@lists.openscad.org> On Behalf Of trygve@totallytrygve.com
Sent: Friday, October 9, 2020 8:47 AM
To: OpenSCAD general discussion <discuss@lists.openscad.org>
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 <beltechsmb@outlook.com<mailto:beltechsmb@outlook.com>>:
Hi
I have tried this but still have the same issue
From: Discuss <discuss-bounces@lists.openscad.org<mailto: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<mailto:discuss@lists.openscad.org>>
Cc: fred <fred_dot_u@yahoo.com<mailto: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>
[cid:image001.png@01D69E19.42AD6840]
[cid:image002.png@01D69E19.42AD6840]
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<mailto: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<mailto:Discuss@lists.openscad.org>
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
_______________________________________________
OpenSCAD mailing list
Discuss@lists.openscad.org<mailto:Discuss@lists.openscad.org>
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org