-
Notifications
You must be signed in to change notification settings - Fork 58
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
Bend: Invalid subelement name (due to Topoaming) #342
Comments
Is this freecad version with the new topological naming enabled? |
No idea, stock appimage from weekly builds so presume not, btw starting with a sheetmetal base shape works fine, just found out then when saving, closing and reopening the drawing it's working as it should so think it's FreeCAD related not the sheetmetal workbench. |
The ;g543;SKT;:Hc32,E;:G;XTR;:7,F.Face3 instead of just Face3 hints that the TNP is already enabled. I never tested it with TNP. I will investigate. Thanks! |
It looks that TNP is used while working but gets lost when saving/reopening, on re-edit it's TNP again. Looks like a freecad bug in this release but does show a tiny bottleneck with sheetmetal if TNP is applied defenatly. |
I will investigate if sheetmetal might collide with TNP. |
@JaapStruyk , I have added some code to bypass the TNP issue. please update and test |
Looks like you nailed it ;-) tried a couple of things but couldn't find trouble, thanks for the quick responce. |
Hello, FreeCAD info (latest weekly-build):
Report:
Error.mp4 |
ok. I will investigate further more. |
So the long subelement name is the correct full history name of the element, and as you can see, the tail portion after the dot is the traditional short name. Can you give a specific pointer to where in the FC API you are getting these names, so that I can confirm whether or not they should be visible at that point? My expectation is they would not be and you would just deal with the short name. |
Hi @bgbsww ,
the For now, as a workaround, I just clean the TNP name. Testing the same on FreeCad Link version, shai |
@GS90 , |
Hi @bgbsww , Attached is an example I can not make any workarounds since this time the error is in C++.
|
Thank you! The reference on PropertyLinkSub was super helpful; there are no differences at the python layer, and no differences in the C++ implementation of PropertyLinkSub. However, it appears that the ComplexGeoData::findElementName which is now Data::findElementName is missing this suspiciously germane clause at the top:
I need to keep running this down, but this smells right. |
Thanks for all your hard work on TNP! |
With that code in place, your example file fails until I replace Edge70 (one of the fillets), because it has a bad reference, but once that's done it appears to work correctly. I need to run all the test suites and submit a PR, expect it to be in place soon, and hopefully you won't need the workarounds at that point. |
Thanks again! |
Hi @bgbsww, thanks for your heroic work on TNP. Has there been any progress on this specific issue ? |
@luzpaz , I think this can be closed as my attached test above now works. perhaps only thing needed is to comment out some warning messages:
|
maybe you can close this in the PR that comments out the warning messages ? |
I think this is for @bgbsww to decide. perhaps its on purpose. |
The Pending Recompute warning should stay until we add a UI that tells people they've opened a file without an element map and it should be recomputed. In places like this one it is unnecessary. I've been avoiding that PR since we are in feature freeze, but getting increasing pressure to write it and request special dispensation. The auto change warning should get set up to show only at the very highest debugging levels - ordinary users shouldn't have to see it. That could be a simple PR that can also close this, presuming the issue itself is fixed. |
Hi @shaise, thank you for your work. This problem almost eliminates the possibility of using the workbench after fixing TNP... Is there hope that someday the problem will be solved? |
@GS90, |
Okay, got it.
Info:
error.mp4 |
most of the workbench not working due to mallformed names of subelement, subelement has a name like: ;g543;SKT;:Hc32,E;:G;XTR;:7,F.Face3 when selecting Face3
OS: Ubuntu 24.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37543 (Git) AppImage
Build type: Release
Branch: main
Hash: 3eb45b045cdda9d5bfe11baba2567a1df90f064c
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
The text was updated successfully, but these errors were encountered: