Questions tagged [ifc-open-shell]

19 questions
3
votes
0 answers

Add a shape which is created with PythonOcc to the IFC model using IfcOpenShell

At the moment I have an issue with making an object visible in the IFC model. I created a shape, named example_shape, with PythonOCC [1]. This shape is visible in my 3D viewer of IfcOpenShell in the desired color [2]. Now I want this example_shape…
user7720342
1
vote
1 answer

Get geometry from a IFC 3D entity using Ifcopenshell and OpenCascade

I have multiple standard formed bricks in an IFC file of the type IfcBuildingElementProxy. While I already managed to extract their positions from the IFC file, I now struggle to get the geometry (lenght, height, widht) from the file. I know that…
1
vote
1 answer

IfcOpenShell: Segfault when trying to return a dictionary containing ifcopenshell objects and their corresponding shapes

im trying to extract all the IfcProduct-shapes from a ifc file and return them (with their corresponding Product) to another part of my program. The problem is that when i try to return a dictionary containing those objects with their corresponding…
j-wala
  • 46
  • 1
  • 4
1
vote
1 answer

How can i get IfcOpenShell for python to write with the same unicode as the file it reads?

I'm using IfcOpenshell to read an .ifc file. make some changes, then write it to a new .ifc file. But IfcOpenshell is not writing the unicode the same way as it reads it. I'm creating a script taht adds a pset with properties to each ifcelement. the…
Thomas M
  • 56
  • 6
1
vote
0 answers

How to find orientation of Ifc elements from top and bottom?

I have gone through a research paper "Applying novelty detection to identify model element to IFC class misclassifications on architectural and infrastructure Building Information Models", published in Journal of Computational Design and Engineering…
0
votes
1 answer

GLTF model has transparent face

I created a gltf file from a third-party software (ifcOpenshell) and my problem is that one side of my model has a solid color while the other side of my model is transparent when viewed on gltfviewer Here is the front side of my model: And here is…
chetan-set
  • 35
  • 5
0
votes
0 answers

IfcConvert --center-model-geometry: how calculate new center coordinates?

I tried to use IfcConvert on a IFC georeferenced model, with --center-model-geometry parameter. As outup a collada (.dae) file is generated and the model is translated by unknown values (x, y, z). In order to place in correct position the model, i…
Luca Guida
  • 186
  • 10
0
votes
0 answers

export ifcpolyline in ifcfile

enter image description here This is a part of my ifcfile. In this file, I want to extract the 'ifcpolyline' attribute to get a slab's coordinates in 'Ifccartesianpoint'. import ifcopenshell # IFC 파일 열기 ifc_file =…
0
votes
1 answer

How to get BuildingElementProxys of ifc-files?

I have to extract some convection coolers out of an ifc-file. They're saved as BildingElementProxys & are in relation with IfcRelContainedInSpatialStructure. My approach is to get all the IfcRelContainedInSpatialStructures & search with a for-loop…
julia
  • 1
  • 1
0
votes
1 answer

How can I create a triangle mesh in an .ifc file from scratch in python?

I am new to working with .ifc files in python. What is the best way to create a triangle mesh when I have two arrays - one with vertices and one with faces - in a new .ifc file and how can I do this with python with the ifcopenshell package? I have…
Nils
  • 3
  • 5
0
votes
0 answers

IFC files to CSV files

I would like to know how can i build aparser to convert ifc files into csv or structres files I’m trying to read csv files using jupyter notebook and convert it to csv file
Aya
  • 1
  • 1
0
votes
0 answers

Python def function result to .csv file in ifcopenshell approach

My task is to find IfcQuantityArea values of all IfcWall in the project.ifc and export those values to .csv with another attributes such as GlobalId and Name. The question is how I can "define" the result from def function, so I could set is as…
0
votes
1 answer

[IfcOpneShell]Unabled to add instance from IFC2X3 schema to file with IFC4 schema

I am using IfcOpenShell in python. When I try to createed a new file and added entity, I get the following error. How can I get rid of the error? [program] ifc_file = ifcopenshell.file() ifc_file.add({IfcBuildingElementProxy}) [error] Unabled to…
Amicry
  • 1
0
votes
1 answer

Finding children of IfcBuildingStorey using ifcopenshell

By using ifchopenshell I can easily traverse all storeys using this code for ifc_storey in ifc_file.by_type("IfcBuildingStorey"): print(str(ifc_storey.Name)) However, for each storey I would like to find all the Ifc elements of type IfcSpace,…
sinsro
  • 192
  • 1
  • 10
0
votes
1 answer

IfcOpenShell find coordinates from IfcWall

I would like to find the length between two points from an IFC model.This is an example of an IfcWall from the IFC model. #26322= IFCWALL('3vpWoB_K1EZ8RCaYmNGsB2',#42,'Basiswand:Bestand 08.0:162343',$,'Basiswand:Bestand…
Jil
  • 3
  • 1
1
2