Help with creating a 3 screw gear

45 views
Skip to first unread message

Stephen Obuge

unread,
Apr 8, 2023, 9:19:25 AM4/8/23
to IceSL
I am having a hard time trying to figure out the IceSL scripting language. I have a project to design a 3 screw gear pump and need help with it. I am looking forward to any help I can get, thank you.

Re-try WhenDown

unread,
Apr 8, 2023, 10:37:01 AM4/8/23
to IceSL
Hi Stephen. What exact problem are you having? Do you have a picture/drawing of the geometry you intent to create? That would help a lot. I can help you get started but ultimately it is up to you to fill in the details and adapt it to your specific needs.

Le 8 avr. 2023 à 15:19, Stephen Obuge <engr...@gmail.com> a écrit :

I am having a hard time trying to figure out the IceSL scripting language. I have a project to design a 3 screw gear pump and need help with it. I am looking forward to any help I can get, thank you.

--
You received this message because you are subscribed to the Google Groups "IceSL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icesl+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/icesl/53d32298-e0f1-43c6-99cd-713cb30bbc91n%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Re-try WhenDown

unread,
Apr 8, 2023, 11:11:51 AM4/8/23
to IceSL
Complex piece but perfectly doable in IceSL. Try to do one part at a time and then try connecting then all in a separate script. 

The only part I believe will present trouble modeling in IceSL are the screws. For these, try to download a base screw from thingiverse and then modify to suit your needs with the scripting functions of IceSL (e.g., scale, intersection, etc)

We have a couple of tutorials to get you started on the scripting language:


And the full spec of the language (comes with examples):


Salim

Le 8 avr. 2023 à 16:52, Stephen Obuge <engr...@gmail.com> a écrit :


Dear Salim,

Please find attached pictures for your reference. Thank you for your willingness to help, I am most grateful.

Regards,
Stephen

Re-try WhenDown

unread,
Apr 8, 2023, 5:55:07 PM4/8/23
to IceSL
If by parametric you mean that some of the object’s characteristics are defines by variables then yeah, you can do that in IceSL. In the scripting language documentation look for the “tweaks” section and see the examples.

The majority of files in thingiverse are stl’s. They can be directly imported (drag and drop) into IceSL

Le 8 avr. 2023 à 19:12, Stephen Obuge <engr...@gmail.com> a écrit :


Thank you for your feedback;

Based on your recommendation, there could be a problem because I want the gear to be parametric. If I create each screw independently, how will I be able to make them parametric? Secondly, the files in thingivers are in .scad format and are not recognized by icesl. How do I have it ported to icesl? Thank you.

On Sat, Apr 8, 2023 at 5:12 PM Stephen Obuge <engr...@gmail.com> wrote:
I try to reply on the community platform but each time it keeps getting deleted. What Could Possibly be wrong?

sylefeb

unread,
Apr 9, 2023, 12:17:31 AM4/9/23
to IceSL
Hi, just to point out a few scripts which could help in achieving this goal:

- The gear script used for instance in the following examples: 

The gear script itself has been translated from an scad model, this is generally not too difficult, unless some operations don't match 1-to-1 (feel free to point out a specific script I can have a look):

- The 'bold and screw' example ; this is more of a toy but it does generate a parametric screw:

Best regards -
Sylvain

sylefeb

unread,
Apr 9, 2023, 12:43:20 AM4/9/23
to IceSL
Here is a script for a thread that could help (unsure the thread geometry is proper though).

Presse-papiers-1.png
screw_thread.lua
Message has been deleted

Stephen Obuge

unread,
Apr 10, 2023, 3:07:29 AM4/10/23
to IceSL

Hello Sylvian,

These are the errors I got from the links you shared. Could I be doing something wrong, or is there a library I need to download? Please help. Thnk you.

1. [dofile] file 'C:\Users\AppData\Local\Temp\../libs/gear.lua' not found
2. [dofile] file 'C:\Users\AppData\Local\Temp\../libs/gear.lua' not found
3. No emitted primitive! Scene is empty.

sylefeb

unread,
Apr 10, 2023, 11:57:42 AM4/10/23
to IceSL
Hi - for the first two, the issue is a missing dependency (gear.lua located in ../libs).
Either download the whole github repository icesl-models or open the files located in the asset folder, subdirectory icesl-models (from icesl-forge,  File => Open Asset folder, under Linux in ~/.icesl if I remember correctly).

For the script I sent, this is strange however. If I drag and drop it onto the icesl-forge icon  (windows) it works right away, see screenshot below. Could you try again, and send a screenshot with the console open (white window in my screenshot) so we can see any error message? Are you on the latest 2.5.1?

Clipboard-1.png
Reply all
Reply to author
Forward
0 new messages