Tools.GetSurroundingElements stop working

Hello Everyone,

So, I’m using Tools.GetSurroundingElements (SteamNodes) to get ceiling for each room of my project but sometimes, in the second or third time, I run the routine this node stops working inexplicably.(I can’t change it for bounding box because in the case of irregular rooms it causes problems)

I found someone with this same problem 3 years ago, here:

I tried pull the python script from inside the node for the routine and the error I get is
*"Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed. *
Traceback (most recent call last):

  • File “”, line 53, in *
    SystemError: Object reference not set to an instance of an object."

If you’re trying to get ceilings from rooms then might be worth using RayBounce.ByOriginDirection node as it is faster and efficient method.

And also could you reply to your yesterday post and Mark the post as solved if the solution worked for you. It will keep forum tidy and make it easier for others to find the answers to similar questions.

2 Likes

Hello @Kulkul thanks for the answer, I never used RayBounce.ByOriginDirection, I’ll try with that one then :slight_smile:
About the post yesterday… I still could not make it work with the dynamo open in the project (it just works when I open Dynamo inside a family)