Page 1 of 1

Crankshaft Position Wheel

Posted: Tue Dec 24, 2019 1:25 am
by sandyg
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 38811 times
Sandy

Re: Crankshaft Position Wheel

Posted: Tue Dec 24, 2019 7:51 am
by Husky
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?

Re: Crankshaft Position Wheel

Posted: Tue Dec 24, 2019 6:26 pm
by sandyg
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

Re: Crankshaft Position Wheel

Posted: Tue Dec 24, 2019 9:35 pm
by sandyg
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

Re: Crankshaft Position Wheel

Posted: Mon Dec 30, 2019 4:54 pm
by sandyg
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

Re: Crankshaft Position Wheel

Posted: Mon Jan 06, 2020 5:02 pm
by sandyg
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).

Re: Crankshaft Position Wheel

Posted: Sat Jan 11, 2020 5:27 pm
by sandyg
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 38523 times

Re: Crankshaft Position Wheel

Posted: Sat Jan 11, 2020 7:18 pm
by andrew
Cool stuff! It's always great to see some real-life work people do with QCAD :D Thanks!

Re: Crankshaft Position Wheel

Posted: Wed Jan 15, 2020 12:51 am
by sandyg
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

Re: Crankshaft Position Wheel

Posted: Mon Apr 26, 2021 5:54 am
by CVH
@ 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

Re: Crankshaft Position Wheel

Posted: Sat Jan 28, 2023 6:44 am
by sandyg
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

Re: Crankshaft Position Wheel

Posted: Sun Feb 12, 2023 11:23 am
by CVH
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

Re: Crankshaft Position Wheel

Posted: Mon Feb 13, 2023 9:25 am
by andrew
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.