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

Fail message referes to a Feature that doesn't have the Refine property. #345

Open
leoheck opened this issue Jun 20, 2024 · 12 comments
Open
Labels

Comments

@leoheck
Copy link

leoheck commented Jun 20, 2024

Where is this Refine property, I could not find it. Is this generic advice or this feature should have this property and I am not finding it?
image

@leoheck
Copy link
Author

leoheck commented Jun 20, 2024

I am using

OS: Ubuntu 24.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37819 (Git) AppImage
  * sheetmetal 0.4.18

Trying to unfold a simple structure.. but it is failing. Actually this is the first time I am doing this, so I am not sure if I am doing this right.

I am selecting a face and trying to unfold the structure.

The structure is simple, I guess. And I am also seeing this issue here:

image

23:11:35  Error Analysis: Sheet thickness invalid for this face! at Face39
23:11:35  exception at line 3131("'NoneType' object has no attribute 'Edges'",)
23:11:35  ("'NoneType' object has no attribute 'Edges'",)

@leoheck
Copy link
Author

leoheck commented Jun 20, 2024

There is also a different issue when I apply Part Design Features. I am not sure if it supports that.

23:31:40  Error Unfold: not handled curve type in unbendFace at Face146
23:31:40  exception at line 3131("'NoneType' object has no attribute 'Edges'",)
23:31:40  ("'NoneType' object has no attribute 'Edges'",)

For instance, I tried to make a groove in the last feature to create some room inside.

image

image

@shaise
Copy link
Owner

shaise commented Jun 20, 2024

the refine is a general preference in part design.
please upload the file that failed unfold here.

@leoheck
Copy link
Author

leoheck commented Jun 20, 2024

The first folder has the one that fails for some unknown reason. This was my first attempt, and things broke during the process and I had to fix some features after some updates adding extra faces and this may be related to the issue. I am about to redo this to check if I can improve it. I was doing features on one side, and after I realized that I could select more than 1 face at the same time so I don't have to mirror anything at the end.

The second folder has another similar test. To see if a new object could work without issues. And it worked fine including the Pocket.

The 3rd folder is another test, where I am using a Grove as in the 1st test, and it works, but the projected Sketch is not as good as in the second test.

unfold_test.zip

@leoheck
Copy link
Author

leoheck commented Jun 20, 2024

the refine is a general preference in part design.
please upload the file that failed unfold here.

The popup suggested to turn off refine on Bend02.

Ah, I understand now that the suggestion was to disable the refine somewhere until the Bend02 feature since Bend02 does not have that property.

@leoheck
Copy link
Author

leoheck commented Jun 20, 2024

Replicated the design without the groove, and it works.

Also, I could not set the tip of the Body with the Sheetmetal, to ignore the Part Design Feature, I had to delete it. Is it possible to do that somehow? This way I could test intermediate places to check if the sheet metal is working.

@shaise
Copy link
Owner

shaise commented Jun 22, 2024

Few things about the original design:

  1. Bend 4 had a bend radius of 0. This can tend to cause issues.
  2. The groove cut into the some bends and created 'refined' faces crossing both flat and curved features. This tends to confuse the unfolder.
  3. the 'switch refine to false for feature xxx' usually does not correspond to any particular bend on the way. Its just the name of the body you have selected to unfold. You can export your part as step, import to a different document and get the same sort of error. The unfolder is not 'aware' of any folds. It works on the selected part as simple solid object.

@leoheck
Copy link
Author

leoheck commented Jun 23, 2024

Good. I don't remember setting something with radius zero. At least least this was not my intention. About the groove, am I doing something wrong or is there any design trick that I can to do avoid confusing the unfoder that much?

@shaise
Copy link
Owner

shaise commented Jun 23, 2024

There is no right or wrong when cutting features into a sheetmetal object. Its just a limitation of the unfolder (the unfold algorithm is very complex and was done by a very clever programmer - not me)
One thing to take into account though, is that some of the groove cuts create edges in the sheet that are not completely perpendicular to the sheet surface, hence even if you unfold it correctly, the resultant sheet pattern can not be cut using a laser as the laser creates only perpendicular edges.

@leoheck
Copy link
Author

leoheck commented Jun 23, 2024

Thanks for the explanation. I was experimenting this workbench to design a cardboard structure to fix items inside a cardboard box.

@luzpaz
Copy link
Collaborator

luzpaz commented Sep 10, 2024

Hard to follow due to multiple issues reported. What is relevant here?

@leoheck
Copy link
Author

leoheck commented Sep 10, 2024

The issue is that a bad message appears when something doesn't work.

The message referes to a Metal sheet feature that doesn't have the property "Refine".

That message should be improved.

@leoheck leoheck changed the title Refine property missing. Message referes to a Feature that doesn't have the Refine property. Sep 10, 2024
@leoheck leoheck changed the title Message referes to a Feature that doesn't have the Refine property. Fail message referes to a Feature that doesn't have the Refine property. Sep 10, 2024
@luzpaz luzpaz added bug and removed question labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants