Ho I can extract the area of face for a wall and the corners vertices (coordinates). Itired the following method but it is not working by OCC library : ifcopenshell.geom.create_shape(...).geometry.verts Thanks, Hamid
Hi Thomas, I need the vertix or points) of Ifcwall. I tried to follow your attached link but it is not availabe. Please direct me Regards, Hamid
Hi, What is the equal syntax for the below statements: topo = OCC.Utils.Topo(shape) for face in topo.faces(): surf = OCC.BRep.BRep_Tool.Surface(face) I need to extract the faces of a wall Thanks, Hamid
OCC.Core.TopExp.TopExp_Explorer also is not available
Thanks Sabih. Finally, I could get the area and volume. IS it possible to have access to each face of a wall entity ? for example a wall has 6 faces and I need to access to each face along with its vertices separately.
I have re-installed the anaconda and use Anaconda python Result: C:\Users\Malavan-PC\anaconda3\python.exe ['C:\Users\Malavan-PC\anaconda3', 'C:\Users\Malavan-PC\anaconda3\lib\site-packages'] C:\Users\Malavan-PC\AppData\Roaming\Python\Python38\site-packages PS C:\Users\Malavan-PC\OneDrive - York University\Coding> I remored all version of pythons on my machine and just reinstall the Anacoda. It works now. Thanks all for help and supports
I have re-installed the anaconda and use Anaconda python Result: C:\Users\Malavan-PC\anaconda3\python.exe ['C:\Users\Malavan-PC\anaconda3', 'C:\Users\Malavan-PC\anaconda3\lib\site-packages'] C:\Users\Malavan-PC\AppData\Roaming\Python\Python38\site-packages PS C:\Users\Malavan-PC\OneDrive - York University\Coding> Still have issue : settings = ifcopenshell.geom.settings() settings.set(settings.USE_PYTHON_OPENCASCADE, True) error: module 'ifcopenshell.geom' has no attribute 'set'
I have re-installed the anaconda and use Anaconda python Result: C:\Users\Malavan-PC\anaconda3\python.exe ['C:\Users\Malavan-PC\anaconda3', 'C:\Users\Malavan-PC\anaconda3\lib\site-packages'] C:\Users\Malavan-PC\AppData\Roaming\Python\Python38\site-packages PS C:\Users\Malavan-PC\OneDrive - York University\Coding> Still have issue : settings = ifcopenshell.geom.settings() AttributeError: module 'ifcopenshell' has no attribute 'geom'
here is teh result and find the content of OCC in the atatchment: C:\Users\Malavan-PC\AppData\Local\Programs\Python\Python38-32\python.exe ['C:\Users\Malavan-PC\AppData\Local\Programs\Python\Python38-32', 'C:\Users\Malavan-PC\AppData\Local\Programs\Python\Python38-32\lib\site-packages'] C:\Users\Malavan-PC\AppData\Roaming\Python\Python38\site-packages PS C:\Users\Malavan-PC\OneDrive - York University\Coding>
Thanks Sabih, for the case of the related walls to a space which is a continiuse wall. which means, each part of wall is shared with different spaces. Is it possible to calculate the area of wall which is belong to a specific space ? sample in the attachment
here is the folders I have in site-package
I do. I followed the steps that Sabih mentioned in the upper comments : onda create --name=pythonocc-core python=3.8 Activate the environment: conda activate pythonocc-core Install pythonocc-core 7.4.0: conda install -c conda-forge pythonocc-core=7.4.0.
Nothing No module named 'OCC.BRep'; 'OCC' is not a package No module named 'OCC.Core'; 'OCC' is not a package module 'ifcopenshell' has no attribute 'geom'
Thanks Sabih, for the case of the related wall for a space is a continiuse wall. It means, the wall is shared with few spaces. Is it possible to calculate the area of wall which is belong to a specific room ? sample in the attachment
Thanks Sabih, fo case of the related wall to a space is a continiuse wall. It means, the wall is shared with few spaces. IS it possible to calculate the area pf wall which is belong to a specific room ? sample in the attachment
Hi Sabih, Thanks for your advice, I have tried the capital letters as well but still getting the same error. On Tue, Nov 24, 2020 at 11:11 AM Sabih Ahmad Khan sabihahmadkhan@users.sourceforge.net wrote: Hi Hamid, It seems you are using settings.set(settings.use_python_opencascade, True) As mentioned by Thomas, please change this to settings.set(settings.USE_PYTHON_OPENCASCADE, True) How to find orientation of Ifc elements from top and bottom? https://sourceforge.net/p/ifcopenshell/discussion/1782717/thread/fce1ec37c2/?limit=25#7f6d...
Hi Sabih. I tried both but still getting same error.
I need to calculate the shared wall area for each space. I mean if there is a continued wall (shared between different spaces (rooms), I like to calculate the area of the part of wall which is in specific space (room). Please advise. Hamid
I need to calculate the shared wall area for each space. I mean if there is a continued wall (shared beween different spaces (rooms), I like to calculate the area of the part of wall which is in specific space (room). Please advise. Hamid
I need to calculate the shared wall area for each space. I mean if there is a continued wall (shared beween different spaces (rooms), I like to calculate the area of the part of wall which is in specific space (room). Please advise. Hamid
I need to calculate the shared wall area for each space. I mean if there is a continued wall (shared beween different spaces (rooms), I like to calculate the area of the part of wall which is in specific space (room). Please advise. Hamid
thanks Thomas. I have already installed pythonocc but still getting the error of "'settings' object has no attribute 'use_python_opencascade'". Any clue ?
Dear team, I am using python 3.8 and try to get the geometry from Ifcopenshell. I am getting below error when I used settings.set(settings.use_python_opencascade, True) : AttributeError: 'settings' object has no attribute 'use_python_opencascade' please direct me how I can solve the issue
Hi Sabih, Can you guide me to get the area (surface area) and volume of a wall from ifc ?
I tried to get space.Boundedby (using Ifcpenshell). It return a list of IdcRelSpaceBoundary. How can I found which one is wall anf their geometry ? Here is the result of space.Boundedby:4 38137=IfcRelSpaceBoundary('1nE5Ugdrr7Z91ZrQnaq0ee',#33,'1stLevel',$,#1574,#22410,#1602,.PHYSICAL.,.INTERNAL.) 38138=IfcRelSpaceBoundary('1_7y0rcEvCle5CHO4X9woJ',#33,'1stLevel',$,#1574,#6192,#1624,.PHYSICAL.,.INTERNAL.) 38139=IfcRelSpaceBoundary('2ZOcXMLsDEzhhOXjTv648$',#33,'1stLevel',$,#1574,#6192,#1625,.PHYSICAL.,.INTERNAL.)...
I tried to get space.Boundedby (using Ifcpenshell). It return a list of IdcRelSpaceBoundary. How can I found which one is wall anf their geometry ? Here is the result of space.Boundedby