discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Gear Script help

T
timhoffner@gmail.com
Fri, Oct 22, 2021 9:00 PM

Hi,

Very new to OpenSCAD and fumbling my way around the web and landed here.

I am trying to use https://mseminatore.github.io/mdsSpurGear script

I have downloaded the .zip and extracted - not exactly sure how to “call” it or if I can load it from the gui - then thought I might need to copy and paste the code in the editor - all to no avail, so here I am.

If there is a tutorial or straightforward way to run this puppy I have not found it - thanks in advance for your help all!

Tim

Hi, Very new to OpenSCAD and fumbling my way around the web and landed here. I am trying to use https://mseminatore.github.io/mdsSpurGear script I have downloaded the .zip and extracted - not exactly sure how to “call” it or if I can load it from the gui - then thought I might need to copy and paste the code in the editor - all to no avail, so here I am. If there is a tutorial or straightforward way to run this puppy I have not found it - thanks in advance for your help all! Tim
GH
Gene Heskett
Fri, Oct 22, 2021 9:54 PM

On Friday 22 October 2021 17:00:49 timhoffner@gmail.com wrote:

Hi,

Very new to OpenSCAD and fumbling my way around the web and landed
here.

I am trying to use https://mseminatore.github.io/mdsSpurGear script

I have downloaded the .zip and extracted - not exactly sure how to
“call” it or if I can load it from the gui - then thought I might need
to copy and paste the code in the editor - all to no avail, so here I
am.

I dl'd and extracted the tar.gz. There is not a .scad file in the
package, so it is not loadable in openscad. Contact the author for help.

If there is a tutorial or straightforward way to run this puppy I have
not found it - thanks in advance for your help all!

Tim

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

On Friday 22 October 2021 17:00:49 timhoffner@gmail.com wrote: > Hi, > > Very new to OpenSCAD and fumbling my way around the web and landed > here. > > I am trying to use https://mseminatore.github.io/mdsSpurGear script > > I have downloaded the .zip and extracted - not exactly sure how to > “call” it or if I can load it from the gui - then thought I might need > to copy and paste the code in the editor - all to no avail, so here I > am. I dl'd and extracted the tar.gz. There is not a .scad file in the package, so it is not loadable in openscad. Contact the author for help. > If there is a tutorial or straightforward way to run this puppy I have > not found it - thanks in advance for your help all! > > Tim Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
L
larry
Fri, Oct 22, 2021 9:59 PM

On Fri, 2021-10-22 at 21:00 +0000, timhoffner@gmail.com wrote:

Very new to OpenSCAD and fumbling my way around the web and landed
here.
I am trying to use https://mseminatore.github.io/mdsSpurGear script

I have downloaded the .zip and extracted - not exactly sure how to
“call” it or if I can load it from the gui - then thought I might
need to copy and paste the code in the editor - all to no avail, so
here I am.

OpenSCAD files use the extension .scad
In the zip file, there are four .scad files, one of which,
mdsSpurGear.scad, is used as a library.

A library file is meant to be called from OpenSCAD files that contain
code to generate an object. The purpose of a library is to encapsulate
the code to handle the details of making an object, allowing you to
write smaller chunks of code to create complex objects.
If you look at mdsSpurGear.scad, you will see a call to another library
called utility.scad.

The other three .scad files;

Gear 2D Projection.scad
Gear Option Examples.scad
Stacked Gears.scad

are files that call the library file and generate the objects. Note the
smaller sizes of these files.
So all you have to do is to run OpenSCAD, choose File->Open, and load
one of these files.

For now, you can leave the mdsSpurGear.scad file in the same directory
as these three files, though you will eventually want to put it into
the library directory.

On Fri, 2021-10-22 at 21:00 +0000, timhoffner@gmail.com wrote: > Very new to OpenSCAD and fumbling my way around the web and landed > here. > I am trying to use https://mseminatore.github.io/mdsSpurGear script > > I have downloaded the .zip and extracted - not exactly sure how to > “call” it or if I can load it from the gui - then thought I might > need to copy and paste the code in the editor - all to no avail, so > here I am. OpenSCAD files use the extension .scad In the zip file, there are four .scad files, one of which, mdsSpurGear.scad, is used as a library. A library file is meant to be called from OpenSCAD files that contain code to generate an object. The purpose of a library is to encapsulate the code to handle the details of making an object, allowing you to write smaller chunks of code to create complex objects. If you look at mdsSpurGear.scad, you will see a call to another library called utility.scad. The other three .scad files; Gear 2D Projection.scad Gear Option Examples.scad Stacked Gears.scad are files that call the library file and generate the objects. Note the smaller sizes of these files. So all you have to do is to run OpenSCAD, choose File->Open, and load one of these files. For now, you can leave the mdsSpurGear.scad file in the same directory as these three files, though you will eventually want to put it into the library directory.
T
timhoffner@gmail.com
Fri, Oct 22, 2021 10:25 PM

Thanks Gene - I dl’d it three times to make sure I wasn’t losing my mind (well, that does not confirm I have not lost my mind, but I got same result you did, no .scad files).

I also downloaded the individual files and tried to open but was getting errors which is why I was thinking I needed to actually do something with the code.  I see Larry has also responded, will see what advice he has as well.

I did not see a way to contact the author either…thanks so much

Tim

Thanks Gene - I dl’d it three times to make sure I wasn’t losing my mind (well, that does not confirm I have not lost my mind, but I got same result you did, no .scad files). I also downloaded the individual files and tried to open but was getting errors which is why I was thinking I needed to actually do something with the code. I see Larry has also responded, will see what advice he has as well. I did not see a way to contact the author either…thanks so much Tim
T
timhoffner@gmail.com
Fri, Oct 22, 2021 10:28 PM

Thanks Larry,

I will try dl the individual .scad files again as neither of the archives have any .scad files.  I did do this but was getting errors when trying to open any of them - in particular a line that is something like <!DOCTYPE html>

Tim

Thanks Larry, I will try dl the individual .scad files again as neither of the archives have any .scad files. I did do this but was getting errors when trying to open any of them - in particular a line that is something like <!DOCTYPE html> Tim
DP
David Phillip Oster
Fri, Oct 22, 2021 10:55 PM

https://github.com/mseminatore/mdsSpurGear/archive/refs/heads/master.zip
should be the correct link. At least, it has the .scad files  - I just
tested

On Fri, Oct 22, 2021 at 3:48 PM timhoffner@gmail.com wrote:

Thanks Larry,

I will try dl the individual .scad files again as neither of the archives
have any .scad files. I did do this but was getting errors when trying to
open any of them - in particular a line that is something like <!DOCTYPE html>

Tim


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

https://github.com/mseminatore/mdsSpurGear/archive/refs/heads/master.zip should be the correct link. At least, it has the .scad files - I just tested On Fri, Oct 22, 2021 at 3:48 PM <timhoffner@gmail.com> wrote: > Thanks Larry, > > I will try dl the individual .scad files again as neither of the archives > have any .scad files. I did do this but was getting errors when trying to > open any of them - in particular a line that is something like <!DOCTYPE > html> > > Tim > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TH
Tim Hoffner
Fri, Oct 22, 2021 11:04 PM

that one worked, thank you David!
Tim

On Fri, Oct 22, 2021 at 5:56 PM David Phillip Oster <
davidphilliposter@gmail.com> wrote:

https://github.com/mseminatore/mdsSpurGear/archive/refs/heads/master.zip
should be the correct link. At least, it has the .scad files  - I just
tested

On Fri, Oct 22, 2021 at 3:48 PM timhoffner@gmail.com wrote:

Thanks Larry,

I will try dl the individual .scad files again as neither of the archives
have any .scad files. I did do this but was getting errors when trying to
open any of them - in particular a line that is something like <!DOCTYPE html>

Tim


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

that one worked, thank you David! Tim On Fri, Oct 22, 2021 at 5:56 PM David Phillip Oster < davidphilliposter@gmail.com> wrote: > https://github.com/mseminatore/mdsSpurGear/archive/refs/heads/master.zip > should be the correct link. At least, it has the .scad files - I just > tested > > On Fri, Oct 22, 2021 at 3:48 PM <timhoffner@gmail.com> wrote: > >> Thanks Larry, >> >> I will try dl the individual .scad files again as neither of the archives >> have any .scad files. I did do this but was getting errors when trying to >> open any of them - in particular a line that is something like <!DOCTYPE >> html> >> >> Tim >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GH
Gene Heskett
Sat, Oct 23, 2021 3:16 AM

On Friday 22 October 2021 18:28:10 timhoffner@gmail.com wrote:

Thanks Larry,

I will try dl the individual .scad files again as neither of the
archives have any .scad files.  I did do this but was getting errors
when trying to open any of them - in particular a line that is
something like <!DOCTYPE html>

Tim

Based on the dates of mearly all of  the files on github being 6 years
old, my guess is that someone is trying to play us OpenSCAD fans like an
out of tune piano. To what advantage in feeding his cash cow I can't
find since the only thing published is the .png's. As is often said in
texas, all hat and no cattle.

The downloads were purposely made unusable by someone who is not a fan of
open src tooling. So I suggest we quit giving them free publicity until
such time as someone else fills that gap. There are other gear designers
out there that do work. Find them, fork them to make them do your job
even better.

And to facilitate that: We need a common code collection site somewhat
like thingiverse, that isn't as allergic to useful src code as
thingiverse seems to be. One of its submission rules being that the
src .scad files to build it are included in the zip or tarball.

To support such a site, I would gladly pay a few bucks for code that is
complete src for something I may still have to tweak to get it to do MY
job. TANSTAAFL in other words. The point of this rant being that we need
tweakable code. And how its being done now is a screamiing failure. Quit
supporting the failures.

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

On Friday 22 October 2021 18:28:10 timhoffner@gmail.com wrote: > Thanks Larry, > > I will try dl the individual .scad files again as neither of the > archives have any .scad files. I did do this but was getting errors > when trying to open any of them - in particular a line that is > something like <!DOCTYPE html> > > Tim Based on the dates of mearly all of the files on github being 6 years old, my guess is that someone is trying to play us OpenSCAD fans like an out of tune piano. To what advantage in feeding his cash cow I can't find since the only thing published is the .png's. As is often said in texas, all hat and no cattle. The downloads were purposely made unusable by someone who is not a fan of open src tooling. So I suggest we quit giving them free publicity until such time as someone else fills that gap. There are other gear designers out there that do work. Find them, fork them to make them do your job even better. And to facilitate that: We need a common code collection site somewhat like thingiverse, that isn't as allergic to useful src code as thingiverse seems to be. One of its submission rules being that the src .scad files to build it are included in the zip or tarball. To support such a site, I would gladly pay a few bucks for code that is complete src for something I may still have to tweak to get it to do MY job. TANSTAAFL in other words. The point of this rant being that we need tweakable code. And how its being done now is a screamiing failure. Quit supporting the failures. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
JB
Jordan Brown
Sat, Oct 23, 2021 3:31 AM

It seems that you're found the right thing, but I haven't seen anybody
explain what seems to be wrong.

The ZIP file linked from the original page is just wrong.  It's a dump
of the page that you're looking at, not the project source files.  It
looks like that's probably GitHub's fault, not the author's.

You need to click "View on GitHub" to get over to the primary GitHub
user interface, and then the green [Code] button and "Download ZIP". 
That will get you the source files.

It seems that you're found the right thing, but I haven't seen anybody explain what seems to be wrong. The ZIP file linked from the original page is just wrong.  It's a dump of the page that you're looking at, *not* the project source files.  It looks like that's probably GitHub's fault, not the author's. You need to click "View on GitHub" to get over to the primary GitHub user interface, and then the green [Code] button and "Download ZIP".  That will get you the source files.
JB
Jordan Brown
Sat, Oct 23, 2021 3:35 AM

On 10/22/2021 8:16 PM, Gene Heskett wrote:

[ Complaints about Thingiverse objects usually not including sources ]

Thingiverse objects certainly can include sources.  I include sources
with all of mine.  It will let you download the individual files, or all
of them as a single ZIP.  When you upload OpenSCAD sources, somebody
seems to come along and tag them "openscad", so that's one way to find
objects that include OpenSCAD sources.

People could also use GitHub, but that's significantly harder and
doesn't include an STL viewer.

On 10/22/2021 8:16 PM, Gene Heskett wrote: > [ Complaints about Thingiverse objects usually not including sources ] Thingiverse objects certainly *can* include sources.  I include sources with all of mine.  It will let you download the individual files, or all of them as a single ZIP.  When you upload OpenSCAD sources, somebody seems to come along and tag them "openscad", so that's one way to find objects that include OpenSCAD sources. People could also use GitHub, but that's significantly harder and doesn't include an STL viewer.