My end goal was to calculate the area of a room intersecting the view. Views in, a surface that matches their area in model space out. Then the graph renames the view based on the intersecting room with highest area value (see also this post: Running if statement logic within list loop still runs the true action even when false - DesignScript - Dynamo).
The entire graph is very large, almost all of it unrelated to the translation of the view boundary, so decided to crop to this only. This function seems to be doing its job of giving a surface that matches the view area. But it seems very complicated and I’ve not been able to confirm if it’s the “correct” approach. Maybe other people have more experience on if this will break in unusual conditions and how to avoid that? Or maybe this is it, I couldn’t find anything in the forum where someone broke down how to translate view coordinate into model coordinates, at least in a language I could understand.
*edit: sorry, the intent is that when the client wants to renumber and rename all the rooms in the project near the end of CD’s and insists that the construction document reflect that, the project team has a quick solution rather than manually do all the renaming. It’s a chore for a project with 100 interior elevation sheets.