Automatic access collision nodes

I don’t recommend doing this in Dynamo at all… There are free tools on the market that suits this needs and with a better user interface. just my two cents.

http://bcfier.com/

https://apps.autodesk.com/RVT/en/Detail/Index?id=509340398633465031