Getting distance from parallel grid to opening

Hi

I am working on a project without drawings, meaning i have to set parameters on every object for build
I am trying to set a parameter that tells the distansce from the nearest parallel grid to the opening. I want wright the parameter to the wall hosting the opening

Any suggestion on workaround??

@mlo ,

do you have some screenshoots? or a script?

Hi

Her is som screenshot of a simple model that explains what i’m looking for. I’ve also attached a script that i’m working on. Give me a shout if you find a solution :slight_smile:


Size of opening written to parameter.dyn (68.4 KB)

For some reason I am having issues opening that dyn file. What version of dynamo are you working in?

Alternatively, can you upload a screenshot?

bilde

2.12.1.8411

bilde