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

Drag & Drop failed - no module named 'ifcopenshell.api.spatial.unassigned_container' #48

Closed
balrobs opened this issue May 22, 2023 · 7 comments

Comments

@balrobs
Copy link

balrobs commented May 22, 2023

When I try to move a newly created Wall001 into the "My Storey" container by drag and drop I run into this error:
error
When I drag and release it over the existing wall (I know this doesn't make sense) I run into a "Access violation"

@yorikvanhavre
Copy link
Owner

This is not happening for me here... Maybe try to update your version of ifcopenshell?

@balrobs
Copy link
Author

balrobs commented May 23, 2023

import ifcopenshell
print(ifcopenshell.version)
0.7.0

I will investigate further!

@yorikvanhavre
Copy link
Owner

Yeah mine is 0.7.0 too, but it has new commits and fixes almost every day 😅

@balrobs
Copy link
Author

balrobs commented Mar 17, 2024

Retested with

OS: Windows 11 build 22631
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36277 (Git)
Build type: Release
Branch: main
Hash: 9e1903d46112b3660bf10c6a4537d728101d560b
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM 2021.12.0
  * FreeCAD-NativeIFC 2023.10.27

and issue is still there:
Steps to reproduce:

  1. Create an empty Freecad file
  2. File->Import my_test.ifc.txt as nativeIFC with standard import options. (File was createdb with Blenderbim)
  3. Import is ok
    my_Test
  4. Try to drag Wall03 into the "My Storey"-Container
  5. Freecad hard crashes

yorikvanhavre added a commit that referenced this issue Mar 18, 2024
@yorikvanhavre
Copy link
Owner

No crash for me here:

Screenshot from 2024-03-18 10-52-45

I noticed a small bug though, the object is not removed from the Site when dragging it onto the storey, that is fixed with commit 95e87f3

Not sure if that's the origin of your crash, though.. Can you retest?

@balrobs
Copy link
Author

balrobs commented Mar 18, 2024

Yes, your commit solved the crash on my site!

@yorikvanhavre
Copy link
Owner

Great! Thanks for confirming!

BTW that files gives errors when opened in IFC++, and also the objects appear black for me when opened in FreeCAD. But not sure what exactly is happening...

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

2 participants