git commit 40f0927 should be 4560, so dev build 4572 should be ok (if I did not make a mistake at counting the commits ).
There ware however this two commits related to IFC after that dev build https://github.com/FreeCAD/FreeCAD_sf_m ... cfb5584f2c and https://github.com/FreeCAD/FreeCAD_sf_m ... 78ed5d6703
Where should the ifcopenshell python files be copied to and what would be some of the simple commands to make a basic import / export test in FC?
New IFC importer/exporter
Re: New IFC importer/exporter
the ifcopenshell files needed are these:
/usr/lib/python2.7/dist-packages/ifcopenshell/__init__.py
/usr/lib/python2.7/dist-packages/ifcopenshell/guid.py
/usr/lib/python2.7/dist-packages/ifcopenshell/geom/__init__.py
/usr/lib/python2.7/dist-packages/ifcopenshell/ifcopenshell_wrapper.py
/usr/lib/python2.7/dist-packages/ifcopenshell/_ifcopenshell_wrapper.so
Basically the "ifcopenshell" folder must be placed in one of the folders from the list you get by doing this in python:
In my case, the default system one is /usr/lib/python{VERSION}/dist-packages/. Not sure which one it is on windows... You can also simply copy it to your FreeCAD macros folder (which should also appear if you run the above command from FreeCAD), but then it will only be accessible from FreeCAD and not from other applications.
Once that is done, do this in FreeCAD to test:
If no error happens, everything is correctly installed.
/usr/lib/python2.7/dist-packages/ifcopenshell/__init__.py
/usr/lib/python2.7/dist-packages/ifcopenshell/guid.py
/usr/lib/python2.7/dist-packages/ifcopenshell/geom/__init__.py
/usr/lib/python2.7/dist-packages/ifcopenshell/ifcopenshell_wrapper.py
/usr/lib/python2.7/dist-packages/ifcopenshell/_ifcopenshell_wrapper.so
Basically the "ifcopenshell" folder must be placed in one of the folders from the list you get by doing this in python:
Code: Select all
import sys
print sys.path
Once that is done, do this in FreeCAD to test:
Code: Select all
import ifcopenshell
from ifcopenshell import geom
Re: New IFC importer/exporter
Would this be considered as success?!
PS: the import (objects and structure of the tree) looks quite nice, will be doing some more tests in the next days...
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4572 (Git)
Branch: master
Hash: be2bb52796ae1be001882da114e8272c4c746af0
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
PS: the import (objects and structure of the tree) looks quite nice, will be doing some more tests in the next days...
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4572 (Git)
Branch: master
Hash: be2bb52796ae1be001882da114e8272c4c746af0
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
Re: New IFC importer/exporter
Wow cool !!! Seams now we get more people using the ifc implementation of FreeCAD !