Find levels within a given tolerance of analytical floor

Hi!

I’ve been trying to create a script comparing all analytical floors to existing levels, and from there find which floors are within a certain variable tolerance of each level. From there I want to adjust the analytical floor so that it aligns to the respective levels.

I’ve managed to find the z-coordinate value (height) of the surfaces by dividing them into curves, and from there I compare it to the height of each level.

I now need to figure out firstly how to set the tolerance so that only some analytical floors show up as within the range of the level, and then go “backwards” and figure out which analytical floor is connected to the height that I have from the Z-coordinate. I can’t figure out how to do this. Recommendations appreciated :slight_smile: