Crankshaft Position Wheel

This forum is for 'Work-in-Progress' QCAD user developed script Add Ons and Plug-ins.

Please use this forum to request/submit your script Add-Ons & Plug-in idea's.

Moderators: andrew, Husky, J-J

Post Reply
sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Crankshaft Position Wheel

Post by sandyg » Tue Dec 24, 2019 1:25 am

This is my first attempt at a plug in, feedback please!

This evolved from the spur gear library plug in. It is for use in creating an engine position wheel which is used by fuel injection and ignition systems in cars. This is specifically for my race car that needed a specialized size, which would have been easy to manually do in QCAD. However I saw the gear plug in and figured I would give it a go and see how far I can get.

Ultimately these would be cut out of steel with the waterjet or laser process.

V1.0 has a bunch of features, need to add a few more as indicated in the Readme.

This is my GitHub with the code and information - https://github.com/sganz/CrankWheel

Lot's to learn, any feedback would be fantastic.

Example wheel
CrankWheel-sm.gif
CrankWheel-sm.gif (8.92 KiB) Viewed 37581 times
Sandy

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4931
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Crankshaft Position Wheel

Post by Husky » Tue Dec 24, 2019 7:51 am

Interesting idea. :wink:

I started testing it but with my GUI arrangement I miss a scrollbar for an easy and complete dialog access. Is a vertical dialog scrollbar planed for future updates?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Tue Dec 24, 2019 6:26 pm

I'll will have to see how the scroll works. I would guess it's under QCAD control directly but will look into that. You may just have to tear out the dialog or stretch it bigger. I shrunk up my other dialogs while testing.

In process to also make the bottom teeth roots a cup shape. Will require another GUI field so need to solve scroll fields into view...

Thanks for testing. Hopefully I can play a bit today and find a solution for scroll of the form.

Sandy

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Tue Dec 24, 2019 9:35 pm

Added a scrolling area to the parameter dialog. Seems to work. Doing some minor testing and clean up will have a bit more work on it before I merge to master hopefully today.

Thanks for the idea on the scrolling area.

Sandy

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Mon Dec 30, 2019 4:54 pm

Fixed up a lot of code and the display in the current Github master branch. Seems much better now to possibly call it a v1.0

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Mon Jan 06, 2020 5:02 pm

Updated code in GitHub to a v1.0.1 Readme updated with new features such as a balance hole.

Created the Crank Wheel that I needed for my application and sent it to the laser cutter. Should have it about 10 days.

Here's what I did (made 2 with some spacers).
Attachments
331-krc-crank-wheel-v3.png
331-krc-crank-wheel-v3.png (28.39 KiB) Viewed 37330 times

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Sat Jan 11, 2020 5:27 pm

Got metal last night from the laser cutter. Came out very nice. Was made out of .25" hot rolled and pickled steel.
20200110_194200.jpg
20200110_194200.jpg (3.55 MiB) Viewed 37293 times

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Crankshaft Position Wheel

Post by andrew » Sat Jan 11, 2020 7:18 pm

Cool stuff! It's always great to see some real-life work people do with QCAD :D Thanks!

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Wed Jan 15, 2020 12:51 am

It's my go to 2D CAD package, I have been using it for years. I never get enough time to get great at it but it always works well for the Waterjet and Laser cutters. The scripting is a double bonus!

Thanks for all your hard work on it!

Sandy

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: Crankshaft Position Wheel

Post by CVH » Mon Apr 26, 2021 5:54 am

@ sandyg,

Since QCAD release 3.26.0 RTextEntity uses the Width parameter to fit text in a column.
Yours is set to 1.0 unit at line 600: https://github.com/qcad/qcad/blob/982e5 ... nkWheel.js

Appropriate would be 0.0 what is no fitting.

Regards,
CVH

sandyg
Junior Member
Posts: 20
Joined: Thu Dec 12, 2019 10:49 pm

Re: Crankshaft Position Wheel

Post by sandyg » Sat Jan 28, 2023 6:44 am

I didn't catch the notice on a reply to the thread for some reason, but I had noticed a change in the text being displayed when drawing the widget in QCAD on newer versions. Updated a local file and seems to work.

I will update the github code to 0.0 for the width.

Thanks for the note!

Sandy

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: Crankshaft Position Wheel

Post by CVH » Sun Feb 12, 2023 11:23 am

Sandy,

I even looked you up online and left a email .... Way back then.

I think you might want to verify what has changed in QCAD CrankWheel.js recently.
The bummer is that the Library Browser is going to be retired ...

Regards,
CVH

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Crankshaft Position Wheel

Post by andrew » Mon Feb 13, 2023 9:25 am

CVH wrote:
Sun Feb 12, 2023 11:23 am
The bummer is that the Library Browser is going to be retired ...
No.

The SQL DB based library browser has been retired as it cannot easily be ported to Qt 6. It will be replaced by a library browser that is file system based instead. For the user it will look and feel very similar. Script items are also supported.

Post Reply

Return to “QCAD 'Script Add-On & Plug-in challenge' - Work in Progress”