Delete Grid Curtain Wall

Hi Dynamo Forum,
I would like to ask how to make the dyn file automatic detele all the curtain grids of curtain walls in project has distance to wall reference (wall end) is 100 mm. Thanks advance.

Here’s a solution that will delete any curtain grid that is within 100mm of the start or end of the wall using nodes from Rhythm and Orchid packages:

It also involves some Python to simplify the or logic of dealing with jagged lists:

distance = IN[0]
parameters = IN[1]
lengths = IN[2]
curtainGrids = IN[3]

out = []
for params, length, grids in zip(parameters, lengths, curtainGrids):
	p = distance/length
	if params:
		for param, grid in zip(params, grids):
			if param <= p or param >= 1-p:
				out.append(grid)

OUT = out

42224.dyn (32.4 KB)

Hope this helps,
Thomas

2 Likes

Thank you very much, I will try it.

Work perfectly, Its save me. Thanks again!

1 Like