Uncropped view won't find rooms in view

I’ve built a sizable script to automate our teams Interior Elevation set-up process. The team uses Ideate’s View Creator by Room tool, which sets up elevations in cardinal directions by room, then the script I’m building corrects the crop, arranges them on the page, sets up the view titles, etc. It’s based on around matching the view to the room object.

Unfortunately, the views sometimes come in cropped at the wrong elevation, causing them to miss the Room object. My solution was to deactivate the crop box prior to finding the rooms in the view, however, these rooms are still not finding any rooms. I confirmed in Revit the views are uncropped and there are rooms to be found, but the room list still returns Empty.

Will Dynamo only search within the view crop area for objects, even if the view is Uncropped?

Thank you for the help!
Trevor


Run the script once without your Views plugged into All Elements of Category in View. Then plug them in and run it again. Do all the rooms get returned on the second run? If so, then you need a transaction between uncropping the views and getting the elements.

1 Like

That does solve the issue, so it sounds like a transaction is needed after the turning off the crop. I’ve not worked with the transaction nodes before, so this will be exciting!

1 Like