LibLathe - Lathe Path Generation

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: LibLathe - Lathe Path Generation

Post by dubstar-04 »

Ramyashree wrote: Sat Jan 29, 2022 8:48 am I'm facing issue while adding profile, rough and part off operation to model body and getting following error. Please help me to resolve this issue.
The changes required to make the tools work were already queued as a PR. I have just merged that PR with a very quick test and it seems to work now.

If you pull the latest code from Github and try again it should work. See attached file.

pwnpath.png
pwnpath.png (54.84 KiB) Viewed 2867 times

Thanks,

Dan
Attachments
chess pawn sketch.FCStd
(35 KiB) Downloaded 104 times
Ramyashree
Posts: 4
Joined: Sat Jan 29, 2022 8:38 am

Re: LibLathe - Lathe Path Generation

Post by Ramyashree »

Thank You so much sir!!! It worked for me. :D
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: LibLathe - Lathe Path Generation

Post by dubstar-04 »

Ramyashree wrote: Wed Feb 02, 2022 5:49 am Thank You so much sir!!! It worked for me. :D
That's great!

Thanks for letting me know.

Dan
warthog656
Posts: 1
Joined: Mon Feb 21, 2022 12:06 pm

Re: LibLathe - Lathe Path Generation

Post by warthog656 »

Hello everybody!

I'have a question, is-it possible to have the programm in "diameter" instead of "radius".

Is there an "argument" or a modification to apply?

Thanks!
CHARLYROBOT CRA2 / DENFORD MIRAC
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: LibLathe - Lathe Path Generation

Post by dubstar-04 »

warthog656 wrote: Tue Feb 22, 2022 8:17 am Hello everybody!

I'have a question, is-it possible to have the programm in "diameter" instead of "radius".

Is there an "argument" or a modification to apply?

Thanks!
No at the moment.

It is planned: https://github.com/dubstar-04/LibLathe/issues/139

Thanks,

Dan
runryder
Posts: 7
Joined: Sun Jul 03, 2022 1:22 am

Re: LibLathe - Lathe Path Generation

Post by runryder »

I loaded liblathe on freecad .20. Can you give me some direction on why I'm getting this error message. It doesn't matter what operations I use.
I used your test file and I am able to see the paths but I unable to create my own

Window 10, freecad .20, latest version of liblathe

OS: Windows 10 Version 1809
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods:
* A2plus 0.4.56a
* Assembly4 0.12.0
* Curves 0.4.4
* fasteners 0.3.45
* FeedsAndSpeeds 0.4.0
* FreeCAD_Turning_Addon-master 0.1.0
* Manipulator 1.4.5
* sheetmetal 0.2.49
* ThreadProfile 1.81.0



'Path_TurnFace' failed:
Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.20\Mod\Path\PathScripts\PathOpGui.py", line 1427, in Activated
return Create(self.res)
File "C:\Program Files\FreeCAD 0.20\Mod\Path\PathScripts\PathOpGui.py", line 1378, in Create
obj = res.objFactory(res.name, obj=None, parentJob=res.job)

Create() got an unexpected keyword argument 'parentJob'Running the Python command

Thanks for the help
Attachments
liblathe error code.txt
(11.11 KiB) Downloaded 66 times
Last edited by runryder on Sun Jul 03, 2022 6:21 pm, edited 2 times in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LibLathe - Lathe Path Generation

Post by Kunda1 »

@runryder welcome to the forum. Can you please edit your post and attach your full About info. This will tell us the full FC version and the liblathe version you have installed.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
WarrenkCash
Posts: 27
Joined: Wed Aug 04, 2021 9:10 am

Re: LibLathe - Lathe Path Generation

Post by WarrenkCash »

I was getting the same error as runryder. The fix for me was to edit PathOpGui.py. I changed line 1378 lo read as below

Code: Select all

obj = res.objFactory(res.name, obj=None)
For my system the path to the file was /home/warrenkcash/snap/freecad/common/Mod/Path/PathScripts/PathOpGui.py

I also found the square tool (Iso_shape_S) had to have the Tip Angle set to 89.999 not 90 or a tool path would not generate.

I have been able to create a job and add all the turning paths the job. It is not finished but I will attach What I have so far.

All in all I think Daniel Wood has done a top job and I would like to say thank you for the effort he has put into this addon.

I will be testing this more should I start a new thread or add to this one?


OS: Ubuntu Core 20 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) Snap 161
Build type: Release
Branch: tag: 0.20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: English/Australia (en_AU)
Installed mods:
* Start
* Material
* Show
* Import
* SnapSetup
* FreeCAD_Turning_Addon-master
* AddonManager
* Tux
* Path
* Part
* MeshPart
* Points
* Robot
* LibLatheOLD
* LibLathe-masterOLD
* Idf
* Web
* pyserial-master
* Surface
* Arch
* Raytracing
* TechDraw
* serial
* Plot
* Drawing
* Image
* PartDesign
* Fem
* Test
* Inspection
* Mesh
* Measure
* Spreadsheet
* Draft
* Sketcher
* FeedsAndSpeeds 0.4.0
* OpenSCAD
* ReverseEngineering
Attachments
YZwheelSpacer.FCStd
(73.71 KiB) Downloaded 56 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LibLathe - Lathe Path Generation

Post by Kunda1 »

WarrenkCash wrote: Wed Jul 27, 2022 4:20 am I was getting the same error as runryder. The fix for me was to edit PathOpGui.py. I changed line 1378 lo read as below
Would you be open to making a Pull Request?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
WarrenkCash
Posts: 27
Joined: Wed Aug 04, 2021 9:10 am

Re: LibLathe - Lathe Path Generation

Post by WarrenkCash »

I will look into it and give it a go. I will be asking for help if I get suck.
Post Reply