Multiple Function Apply to even list

Howdy, I’m setting boundaries to rooms. If the user wants it to the room edge or bounding box of the room. I can get it to work in the image below. BUT :grin: sometimes room edges dont complete a closed loop in Revit. So if a room dosn’t do that. I want it to apply the bounding box function. But then things get confusing with the function apply node as it dosn’t have lacing I think. Any ideas? Second image is me trying to add the make from bounding box if curve room curve loop failed. Not sure if itll work as sometimes your applying one function across the list and sometimes it could be multiple


Forgive me if i am misinterpreting, but id probably go down the road of cleaning up the room edges to close them, instead of introducing bounding boxes

There are alot of topics here with regard to closing loops if that helps.

2 Likes

I’ll second what @pyXam says - best to clean up the geometry and go from there.

Short of that you might want to look into List.Map.

1 Like

Thanks ill have a look for closing loops. Currently it’s hard to recreate some odd room boundaries that tend to come up now and again. Specifically I remember a room boundary overlapping itself in a small way at a funny wall closure. Although I’m using wall center boundary now which may mitigate alot of closure errors :thinking:

Will give the list map a bash too. Tried to get AI to do it with python but couldn’t get passed a object is not callable error.

Howdy, so if there’s a curve in a room. It wont set the crop box and will need to set the bounding box crop box instead for that room. So I need to figure out the above but if there’s an arc as the bool. List.Map does something similar to function apply when you have multiple functions. Ill make any curves a straight line in the mean time.