I am looking to get the center line of multiple wall objects extracted from revit with rir.
At each ‘level’ there are the outlines of each wall object in red, I need to extract the center line of the ‘walls’ that are at the perimeter represented by the pink rectangle.
After gathering those yellow curves I am trying to achieve whichever is easier. A single rectangle (orange lines) or individual rectangles (green lines) at each ‘level’
Please let me know if you have any ideas or approaches you think I can use!
Thanks in advance!
2023-06-14_Outline Question.gh (33.5 KB)
I would start by isolating the lines you care about, like this: (white lines from green group)
Thanks, would that isolation would work for each ‘level’?
I would need to to the same for each group of curves?
I am trying an approach by selecting the smaller length curve for each ‘wall’ then connect center points but for some reason is not fiving me True for some even when they have the same value.
This would be trying the approach of the green curves from the image I shared in the initial question.
Yes, as you can see by enabling preview on the ColorBa cluster.
I added the white group for the bottom layer, but the same can easily be done for all layers.
All layers: (some look a little off, not sure why?)
Outline_2023Jun14c.gh (49.6 KB)
P.S. Posting an image of your GH code is not anywhere near as useful as posting the GH file.
P.P.S. Why Python? Not necessary.
OH! Must set the PxS ‘I’ (Inflate) value to zero.
Awesome! thanks, yeah I was trying to implement some python functions here and there to practice haha.
thanks this is very helpful!
I shouldn’t mess with something so simple… (your orange lines in version ‘cc’ above)
But here is a way to get your green lines: (green group)
P.S. Add PShift to get them by floor:
Thats pretty clever, I was making way too many moves. thanks for this, makes me look at problems with a different approach