2024-10-11 10:19 AM
Hello everybody,
Here is what I am trying to achieve: My input is a wall element in ArchiCAD that I have created manually. My goal output is a set of BReps of individual faces/surfaces/skins of that wall in Grasshopper, only those to which I have assigned a certain surface material through "override surface" in the wall or window settings.
Ideally there would be a solution that works for any kind of element (walls, slabs, windows, doors and so on). Basically any surface of that certain material.
I had three approaches out of which I think the first two wont be able to work.
1. ArchiCAD Live Connection - Wall Surface Type
This way I can differentiate between inside, outside surfaces etc. but wont be able to select them by material.
2. ArchiCAD Live Connection - Extract Property Settings
This way I can extract any of the wall properties. Afaik none of those give me information about the individual surfaces but only look at the wall as a whole.
3. Grasshopper Python ArchiCAD API request
My coding skills are limited and even more so is my knowledge about API requests. But I see this as the most promising way and would be happy to delve into the topic further. From my understanding the tAPIr set for Grasshopper makes this method more accessible for non-coders but I would prefer to do it with an own script.
Any ideas on how to solve this?
Thanks in advance!
Operating system used: Windows 11
2024-10-12 02:23 PM
Hi FAH,
I'm not as deep into python. Therefore I would try the following: Take your solution 1 . This will deliver the Breps and also the wall ID and the surface aera (deconstruct Brep as well).
In a second step I would export a wall schedule containing the wall ID, surface material, surface area etc. to an excel sheet. This I can import to GH with an excel reader node (Lunchbox has one).
The rest of the work is to sort and compare the lists with expressions or other nodes to achieve your desired result.
For a better identification of your walls you can also bring some properties into play . They can also come with the schedule.