How do I start my first IFC project with Python?
I am a frontline worker in civil engineering. Although I have a long experience working in the field, I have just started to get into Bim, and as we all know, Bim is not very popular in China. How do I start my first project with python and ifcopenshell.
Although I generated a wall against the wiki. But I didn't know how to lay out the grid and put the wall in the right place according to the grid and elevation.
Wikis, search engines, and ChatGPT have so few answers.
So, how do I learn, and what tutorials or videos are available for beginners like me?
Comments
Good put. I found the answer in the wiki of ifcopenshell.
I'm so sorry.
matrix1 = numpy.eye(4) matrix1[:,3][0:3]=(2,3,5) wall = run("root.create_entity", model, ifc_class="IfcWall") run("geometry.edit_object_placement", model, product=wall,matrix=matrix1)
Maybe I should improve my python level
If you're referring to the OSArch Wiki, you might also want to check out the IfcOpenShell docs, there are lots of code examples:
https://docs.ifcopenshell.org/ifcopenshell-python/code_examples.html#create-a-simple-model-from-scratch
The Python reference is also very extensive in the utils/api submodules: https://docs.ifcopenshell.org/autoapi/ifcopenshell/index.html
i want to use Arch Linux and c++ .But i don't konw how to start it.i don't konw how to install ifcopenshell on Arch linux and i can't find use c++ example.that's too bad.Can you give me some specific steps to help with? Or help me with specific tutorials for my problems. For example, how do I create my first wall in C++ on Arch Linux?
thanks,sukanka.
He packages ifcopenshell in his own source repository, so I can install it directly using sudo pacman -U ifcopenshell. I would also like to thank Dr. Su for patiently teaching me how to build a wall using C++. Thank him so much.
https://dl.askk.cc/local_pub/aur