Releases: sgrogan/IfcOpenShell
0.5_pre_OSX: Update ifcopenshell.geom.app for pyocc-0.16.5
FreeCAD community member pablogil has compiled IfcOpenShell on OSX!
Introduction
The files hosted here are binaries, you don't need to compile anything. In case you want newer versions you will have to compile from source by yourself. I encorage you to follow the compiling tutorial at: http://forum.freecadweb.org/viewtopic.php?f=23&t=17536
Installation for OSX/macOS
- Open FreeCAD and open the Python console and Report view
- Check your Python version inside the console, it will be written in the first line
- Then write into the Python console the following:
import sys
print sys.path
You will get a looong line with all the paths that FreeCAD reads. You may be able to install ifcopenshell in any of them but I suggest you to place it inside one where you find a /site-packages/ after a /Python/ or /python-something/. In my case it was /Library/Python/2.7/site-packages. (you will find paths inside your app directory but I suggest you to not use them because then IfcOpenShell will only be available for this app)
-
So, once located where you want/have to install it, go there with your file browser (Finder in OSX). So, go inside /site-packages/ folder
-
Unzip the ifcopenshell version you need according to the previously checked Python version and place it inside /site-packages/ folder
-
Check everything is in place:
/site-packages/ifcopenshell/init.py (1)
/site-packages/ifcopenshell/entity_instance.py (1)
/site-packages/ifcopenshell/_ifcopenshell_wrapper.so (2)
/site-packages/ifcopenshell/file.py (1)
/site-packages/ifcopenshell/geom/init.py (1)
/site-packages/ifcopenshell/geom/app.py (1)
/site-packages/ifcopenshell/geom/main.py (1)
/site-packages/ifcopenshell/geom/occ_utils.py (1)
/site-packages/ifcopenshell/guid.py (1)
/site-packages/ifcopenshell/ifcopenshell_wrapper.py (2)(1) from GitHub project
(2) from /build/ folder -
Close and reopen FreeCAD and test if everything is working:
7.1 in the Python console write:
import ifcopenshell
from ifcopenshell import geomif it doesn't throw any error it means it may be correctly installed
7.2 Go to Yorik's FreeCAD manual, navigate to the lower part of the page and download the following files to test:
house.FCStd
house.ifc7.3 Open house.FCStd, select the root "Building" object and export it (File/export/) setting the File type to "Industry Foundation Classes (*.ifc)". Press "save" and if it works and it doesn't throw an error in the Report view then it's working
7.4 Final test, import house.ifc into a new file so open a new file and import that file... it will take a while.
0.5.0_pre: Merge pull request #39 from Tridify/fixed_opencollada_revision
These are Unofficial Windows Snapsots of the 0.5.0 development cycle of IFCOpenShell-Python built against Python 2.7 and are targeted for use with FreeCAD, although they should work with a standard Python27 distribution. Copy the extracted ifcopenshell folder to the site-packages sub-directory of the appropriate Python distribution. They support Windows Vista/7/8/10.
0.5.0-pre
These are Unofficial Windows Snapsots of the 0.5.0 development cycle of IFCOpenShell-Python built against Python 2.7 and are targeted for use with FreeCAD, although they should work with a standard Python27 distribution. Copy the extracted ifcopenshell folder to the site-packages sub-directory of the appropriate Python distribution. They support Windows Vista/7/8/10.