I am trying to write the room numbers of MEP-rooms into a parameter ‘Kommentare’ of elements.
Using my current I manage to identify the objects in the MEP rooms using BoundingBox.Contains.
Using the downstream blocks for list formatting, I get a list with all room numbers for which an intersection between the element and the MEP-room was found.
Problem: The order of the room numbers does not correspond to that of the element, so that incorrect room numbers are written to the element.
Presumption: The ID of the element is lost at some point in my script, so that the assignment no longer exists at the end.
Question: Does anyone know the problem or an alternative solution?
Basically, the script runs, which can now also be seen on the new screenshot. As described, only the assignment of the room numbers to the elements does not work correctly.
If I see this correctly, ‘Space.IsPointInsideSpace’ also only returns a boolean, so I would get the same result. Or maybe you have an example for me how it could work?
yes true ,gives boolean…the issue with boundingboexs is these XY aligned…if you share your rvt, i can try PS i like Mepover is in space node it gives elements