blenderBIM window list with global orientation
Hi everyone,
I´m using blenderbim quite often for energy calculations. In this process I currently use a combination of blenderbim - Sketchup and other methods.
One of my main tasks for my evaluation is to get correct window informations.
I use ifc2csv to get a complete window list with Heigth | Width etc. What I am not able to obtain is the global orientation of the window (to asses the solar energy gain).
I found Python code snippets in an earlier post
https://community.osarch.org/discussion/1026/ifcwindow-normal-according-to-world
Does someone know a way to combine ifc2csv with Python code or a similar approach?
Regards Hannes
Tagged:
Comments
I think the simple way to combine them would be to write a script to calculate the orientation and save it to some property set and then access it from ifc2csv.
Agreed, using get_local_placement will give you vectors for X Y Z. X is east and Y is north: https://blenderbim.org/docs-python/ifcopenshell-python/code_examples.html#get-the-xyz-coordinates-of-a-element
Thank you Andrej730 and Moult for your quick response.
As I'm more a civil engineer than a programmer forgive my maybe silly questions
I tried to execute the ifcopenshell commands in blenders Python console but could not get a result
Is there a possibility to execute the commands in the Python console of Blender?
What I would like to find is
many thanks for your time
Hi again,
I was able to get some way
with the following code in the Blender Python console
I get a somewhat usable list
For me this can be a good start, but it is the complete list of objects in the file.
What I now would like to achieve is to use a filtered and selected list from blenderbim

select this list in the console
and I get the filtered list!!!
My next steps would be
Happy New Year,
I´ve been busy before the holiday season and therefore was not able to nail down some points.
I tried to get the GUID with the python script
But I´m getting a list with the Windows, orientations, positions but only the first overall_heigth, overall width, window_type and GlobalId?
Somehow I missed something. Can someone guide me to my error?
Hannes
Try this as
tool.Ifc.get_entity(bpy.context.selected_object).GlobalId
ie without indexing asselected_objects[0]