Path Profile on selected face fails

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!
RaccoonBuilds
Posts: 2
Joined: Wed Mar 08, 2023 11:54 pm

Path Profile on selected face fails

Post by RaccoonBuilds »

I'm trying to create a corner jig for my cnc. I already have cut the shape and I now want to do a second operation. I would like to do a profile operation on the inside corner faces. I have them shown in the attached image.

I keep getting an error though.

Code: Select all

16:07:52  <Path.Area> Area.cpp(1437): hit bottom -0,0,1e-06
16:07:52  <Path.Area> Area.cpp(1317): project failed
16:07:52  <Path.Area> Area.cpp(1619): skipped 1 sub shapes during projection
16:07:52  <Path.Area> Area.cpp(1459): empty projection
16:07:52  PathProfile.ERROR: Unable to create path for face(s).
list index out of range
Attachments
Corner_jig.FCStd
(48.68 KiB) Downloaded 22 times
Selected Faces
Selected Faces
Screenshot from 2023-03-08 16-11-10.png (48.63 KiB) Viewed 1151 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path Profile on selected face fails

Post by GeneFC »

RaccoonBuilds wrote: Thu Mar 09, 2023 12:22 am
I will guess you want to create something like this.

Capture.JPG
Capture.JPG (36.68 KiB) Viewed 1139 times

If so, I would suggest you select the top edges instead of the faces. Also, it is necessary to select the desired final depth. It appears that the automatic selection is not correct.

If this does not answer your question please add a bit more detail about what you want.

Gene
RaccoonBuilds
Posts: 2
Joined: Wed Mar 08, 2023 11:54 pm

Re: Path Profile on selected face fails

Post by RaccoonBuilds »

Thanks Gene! That is exactly what I was looking to do.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path Profile on selected face fails

Post by chrisb »

GeneFC wrote: Thu Mar 09, 2023 12:36 am If so, I would suggest you select the top edges instead of the faces. Also, it is necessary to select the desired final depth. It appears that the automatic selection is not correct.
I was not able to select only these inner edges for a profile operation, although I found the placement of the stock very smart.
But I managed to get the correct depth, when selecting the bottom edges instead of the top. Maybe we can join our efforts and get a path for the right edges and the right depths :mrgreen: .

Until then I would use a boundary dressup to exclude the outer edges.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path Profile on selected face fails

Post by GeneFC »

chrisb wrote: Thu Mar 09, 2023 12:00 pm
Selecting the top edges or the bottom edges works, but selecting the top will require checking the final depth. I always need to set the final depth and the stepdown, since the automatic entries never work for me.

I forgot to mention that I moved the stock as well. Simply used the "Refresh" on the Job setup tab. I do this routinely all the time, so it is automatic for me.

It does not matter in this case. (I just rechecked)

Gene
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path Profile on selected face fails

Post by chrisb »

GeneFC wrote: Thu Mar 09, 2023 1:24 pm It does not matter in this case. (I just rechecked)
So how did you arrive at only the inner paths being created in your post above? Would you mind uploading the file for further studies?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path Profile on selected face fails

Post by GeneFC »

chrisb wrote: Thu Mar 09, 2023 1:30 pm So how did you arrive at only the inner paths being created in your post above? Would you mind uploading the file for further studies?
It is possible I am not understanding, because this seems very easy. In the Profile operation I just deleted the faces that the OP had selected and added the three top edges. I set an arbitrary final depth and came up with the path I showed above.

Corner_jig-GFC.FCStd
(50.26 KiB) Downloaded 12 times

This was done with 0.21.30454, which was just before the great refactor. Otherwise I would have needed to either fix the FCStd file or delete the Job and start again.

Gene
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path Profile on selected face fails

Post by chrisb »

GeneFC wrote: Thu Mar 09, 2023 2:14 pm This was done with 0.21.30454, which was just before the great refactor. Otherwise I would have needed to either fix the FCStd file or delete the Job and start again.
Thanks. I will dig a bit deeper. I still have 30430 and 30492 around. I will report back.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Path Profile on selected face fails

Post by chrisb »

So this is solved. In current 0.21 I can select the edges and get the paths only for them.

But a new issue occurred. I have treated your last file
GeneFC wrote: Thu Mar 09, 2023 2:14 pm Corner_jig-GFC.FCStd
(50.26 KiB) Downloaded 3 times
with the migration script JobFixer.py from sliptonic. When I load it, the job looks good, but I get an error when I doubleclick on the Profile operation:

Code: Select all

20:07:44  Traceback (most recent call last):
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 103, in setEdit
    page = self.getTaskPanelOpPage(vobj.Object)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 166, in getTaskPanelOpPage
    mod = importlib.import_module(self.OpPageModule)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
<class 'ModuleNotFoundError'>: No module named 'PathScripts.PathProfileGui'
20:07:46  Traceback (most recent call last):
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 103, in setEdit
    page = self.getTaskPanelOpPage(vobj.Object)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 166, in getTaskPanelOpPage
    mod = importlib.import_module(self.OpPageModule)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
<class 'ModuleNotFoundError'>: No module named 'PathScripts.PathProfileGui'
20:07:52  Traceback (most recent call last):
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 103, in setEdit
    page = self.getTaskPanelOpPage(vobj.Object)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 166, in getTaskPanelOpPage
    mod = importlib.import_module(self.OpPageModule)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
<class 'ModuleNotFoundError'>: No module named 'PathScripts.PathProfileGui'
20:08:45  Traceback (most recent call last):
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 103, in setEdit
    page = self.getTaskPanelOpPage(vobj.Object)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/Path/Op/Gui/Base.py", line 166, in getTaskPanelOpPage
    mod = importlib.import_module(self.OpPageModule)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
<class 'ModuleNotFoundError'>: No module named 'PathScripts.PathProfileGui'
I attach the converted file.
Attachments
CornerjigFixed.fcstd
(224.5 KiB) Downloaded 14 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path Profile on selected face fails

Post by GeneFC »

chrisb wrote: Thu Mar 09, 2023 7:15 pm
I get the same "frozen" errors when I open the Profile.

No clue. I have never seen anything like that.

Gene
Post Reply