Integration of BlenderBIM Features : FreeCAD Arch/BIM - Native IFC

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by yorik »

Yes the process of revealing children is tedious. The idea is to do like BlenderBIM does, offer different import strategies (one object only, structure only, structure + children...)

When does your error above occur? When expanding the site?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

yorik wrote: Mon Nov 07, 2022 9:39 am When does your error above occur? When expanding the site?
Yes, crashed expanding the site.
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

Just updated the add-on, importing return error -

Code: Select all

09:05:49  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/paullee/Downloads/FreeCAD_weekly-builds-30345-2022-09-11-conda-Linux-x86_64-py310/squashfs-root/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
<class 'ModuleNotFoundError'>: No module named 'bb_import'

Screenshot from 2022-11-26 09-07-36.png
Screenshot from 2022-11-26 09-07-36.png (222.47 KiB) Viewed 1671 times
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by yorik »

I don't understand how you got this error... there is no more reference to bb_import anywhere. Make sure your addon is up to date? And what steps have you followed to get this error?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

Hmmm strange, maybe I had not restarted FC before I tested ?

Seems nothing wrong now ? :roll:


Screenshot from 2022-11-29 00-37-41.png
Screenshot from 2022-11-29 00-37-41.png (238.27 KiB) Viewed 1540 times
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by ragohix769 »

paullee wrote: Mon Nov 28, 2022 4:47 pm Hmmm strange, maybe I had not restarted FC before I tested ?

Seems nothing wrong now ? :roll:



Screenshot from 2022-11-29 00-37-41.png
How is done colors?
Are you using a different model?

Anyway i've import too (the original one), in 11 sec. :-)

That's good :-)
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

Ar, not aware of the colour - same model file !

And now dialog box pop up providing 2 option of IFC import to be selected.
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

Reveal Children return some error, but seems still working ? :)

Code: Select all

02:42:10  Loading GUI of Part module... done
02:42:10  Imported 47.0 Mb in 01:03
02:42:10  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_import.py", line 56, in insert
    FreeCADGui.activateWorkbench("BIMWorkbench")
<class 'KeyError'>: No such workbench 'BIMWorkbench'

02:44:18  Traceback (most recent call last):
02:44:18    File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_viewproviders/ifc_vp_object.py", line 89, in revealChildren
02:44:18      ifc_tools.create_children(self.Object, ifcfile)
02:44:18    File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_tools.py", line 92, in create_children
02:44:18      create_child(obj, child)
02:44:18    File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_tools.py", line 75, in create_child
02:44:18      child = create_object(element, parent.Document, ifcfile)
02:44:18    File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_tools.py", line 155, in create_object
02:44:18      shape, colors = get_shape([ifcentity], ifcfile)
02:44:18  TypeError: cannot unpack non-iterable NoneType object

Screenshot from 2022-11-29 02-49-15.png
Screenshot from 2022-11-29 02-49-15.png (333.31 KiB) Viewed 1484 times
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by paullee »

The Site object has no Reveal Children :roll:


Screenshot from 2022-11-29 03-13-54.png
Screenshot from 2022-11-29 03-13-54.png (187.63 KiB) Viewed 1470 times
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM

Post by ragohix769 »

chennes wrote: Sun Oct 23, 2022 1:16 am
ragohix769 wrote: Sat Oct 22, 2022 11:07 pm It's failing on automatic installing IfcOpenShell
Is there an error message in the FreeCAD console?
I'm trying latest FC snapd package with the --edge version (0.21) (because PPA Daily repos are no more updated :-( ) so I had to reinstall all from scretch. So I installed NativeIFC via addon manager in FC adding gitlab respos manually, but it's failing automatic install of ifcopenshell via pip, and now even if try to install via console as done in the past, the importer it's not working.

Log of the console:

Code: Select all

01:36:53  IfcOpenShell was not found on this system. IFC support is disabled.
Visit https://wiki.freecadweb.org/IfcOpenShell to learn about installing it.
01:38:12  Custom repo list changed, forcing recache...
01:38:14  [
    [
        "3",
        "8"
    ]
]
01:38:14  [
    [
        "3",
        "8"
    ]
]
01:38:14  [
    [
        "3",
        "8"
    ]
]
01:38:14  Command '['/snap/freecad/464/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'list', '--path', '/home/dando/snap/freecad/common/AdditionalPythonPackages/py38']' returned non-zero exit status 1.
01:38:14  pip timed out
01:38:30  IfcOpenShell was not found on this system. IFC support is disabled.
Visit https://wiki.freecadweb.org/IfcOpenShell to learn about installing it.
01:44:53  IfcOpenShell was not found on this system. IFC support is disabled.
Visit https://wiki.freecadweb.org/IfcOpenShell to learn about installing it.
Especially I don't understand this at the end of the FC console if I try to open "Schependomlaan.ifc" demo file (47 MB):

Code: Select all

01:38:30  IfcOpenShell was not found on this system. IFC support is disabled.
Visit https://wiki.freecadweb.org/IfcOpenShell to learn about installing it.
In my system ifcopenshell is already installed:

Code: Select all

:~$ pip install ifcopenshell
Requirement already satisfied: ifcopenshell in ./.local/lib/python3.8/site-packages (0.7.0)

Code: Select all

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.31153 (Git) Snap 464
Build type: Release
Branch: master
Hash: 3f118b52bc62db6a5ca85daafaa2c021411e7177
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: Italian/Italy (it_IT)
Installed mods: 
  * BIM 2021.12.0
  * FreeCAD-NativeIFC 2022.10.20
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
Post Reply