Hello hello, I have created this script that allow me to renumber the rooms picking the values of the Area (the unit connected to the rooms) and the combining them in a single room number value.
The graph is using a spline to pick up the rooms that I want it to renumber.
Everything works really well, but the issue comes up when I try to include the amenity spaces rooms in the spline renaming. Whilst the rooms are bounded by the walls, the amenity areas are bounded by room bounding lines. I have tested the issue on a test project and this seems to do not cause any issue.
Strangely the amenity space that is picked up and renumbered is the one next to the one I am interested.
Can anyone understand what could be the issue?
see the graph screenshot and the what the geometry representation is showing.
It’s hard to tell what might be the issue without seeing the node preview bubbles and your dataset. Right now we’re just guessing, but I’d start by not flattening your polycurves before checking for intersection. You could have rooms/spaces with multiple enclosures which would lead to a mismatch in list lengths and filtering.
Thanks Nick, yeah I have tried the flatten on plane and that did not change the issue. It seems more what you are suggesting for the second potential cause. I am not sure how to check that. Maybe with a scehdule and see if any area is redundant?
What I mean is get rid of the List.Flatten
node before Geometry.Intersect
. You’re removing the list structure which may be causing a mismatch between intersections and rooms when you filter. Again, we can only guess until you share a screenshot with the node preview bubbles showing all your Dynamo data.
The location points and plane points are likely a clue here. You miss the ? Room but get a similar room in the top left, which tells me your rooms might not be grouped correctly by area to start with. Impossible to say for certain without your rvt and dyn though.
Apparently as new user I cannot upload stuff…so not useful as a new user that needs to get a conversation going…sorry…
Do you know when will I be able to share stuff? How long before I am not a new user anymore?
I promoted your user level so you can upload now.
2 Likes