I am attempting to automatically crop interior Views to walls that intersect the view cut. I have gotten a fair amount through the script, but the issue is that the interior views move position and dont crop to the right sizes currently.
I would start by getting 1 view, with 4 walls and trying to make it work… Then build up. I would make as much use as possible of the geometry previews to understand what’s going on, and I would ‘comment’ as much as possible so you really really understand what’s happening.
Given that you haven’t provided a test Revit file, it’s hard to know exactly what the problem is without giving quite a lot of my time to replicate your setup, unfortunately I don’t have that time spare.
It would also be helpful if you provided a screen grab of your graph for us to quickly look at it.
Some things which jump out…
If you do have multiple views, you’re going to need a list structure where each view is in it’s own list, and the related walls are in sets of lists, then you can set your nodes to run at level 2 and Dynamo will understand how they relate.
Also, you’re reliant on walls being perpendicular, which is not always going to be the case?
Also you’re reliant on bounding boxes (I think?) which are currently ‘axis aligned’ so you might get odd results if your file is rotated at all.
Thanks for your reply @Mark.Ackerley ! Let me fill in some of the gaps!
I was able to get walls, and filter them by ones touching the view cut line. The issue seems to be where applying the bounding box is not behaving like id expect it to, granted im still pretty new to dynamo.
The walls should always be perpendicular to the view cuts for our offices purposes.
Yeah I was getting that 45 Degree Turn as well! Its so weird. The crop boxes seemed to change to incorrect sizes. my theory is that i have to pull specific values from the Bounding Boxes to for all four lines of the view crop. That’s gonna be one long script though! Ill look into other nodes, thanks for your help so far!