Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get CrossPiece to work #60

Open
rebeltaz opened this issue Sep 9, 2022 · 2 comments
Open

Unable to get CrossPiece to work #60

rebeltaz opened this issue Sep 9, 2022 · 2 comments

Comments

@rebeltaz
Copy link

rebeltaz commented Sep 9, 2022

I am trying to learn how to use this plugin on this test project (in FreeCAD v0.19 under Ubuntu 18.04 LTS). When I add both pieces to the CrossPiece dialog and run Preview, it tells me this:

00:20:26  Traceback (most recent call last):
  File "/home/derek/.FreeCAD/Mod/LCInterlocking/panel/crosspiece.py", line 56, in onChanged
    self.preview(fp)
  File "/home/derek/.FreeCAD/Mod/LCInterlocking/panel/crosspiece.py", line 100, in preview
    computed_parts = make_cross_parts(parts)
  File "/home/derek/.FreeCAD/Mod/LCInterlocking/lasercut/crosspart.py", line 372, in make_cross_parts
    raise ValueError("Not managed")
<class 'ValueError'>: Not managed

I tried making "Simple Copies" of both pad operations and working with those instead, but I get the same error. I even tried creating the pieces as Parts directly using Cubes and I still get the same error.

Am I doing something wrong?
test.FCStd.zip

@Guertelwal
Copy link

I have the same Problem with FreeCAD 0.20.1

@reox
Copy link

reox commented Apr 12, 2023

I get a different error here:

19:44:21  Traceback (most recent call last):
  File "FreeCAD\Mod\LCInterlocking\panel\crosspiece.py", line 54, in onChanged
    self.execute(fp)
  File "FreeCAD\Mod\LCInterlocking\panel\crosspiece.py", line 136, in execute
    computed_parts = make_cross_parts(parts)
  File "FreeCAD\Mod\LCInterlocking\lasercut\crosspart.py", line 345, in make_cross_parts
    second_face = referential_faces[1]
<class 'IndexError'>: list index out of range

However, I think I have found some hints why it fails in certain cases: It only fails for me, when one of the surfaces at the cross-piece intersect each other. That might be the case when two sloped surfaces are used:
image

If instead two planar surfaces are used, the cross-piece works perfectly:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants