I need your help, I want to sort the walls according to the sky directions. I will then check their distance to the property boundary. I’ve found out the directions of the walls here with the node, Wall.ExteriorDirection,.
Y=North
-Y=South
X=East
-X=West
But now I do not know how can i create a list of walls for each sky direction. any ideas?
Tip: get the angle from true north (or another known vector), and round that to your desired degree of accuracy and use that as a key. Likely you want to use 90 degree chunks around the cardinal directions as your group (so +/-45 degrees off north, +/-45 off east, etc).
i ve found out how to sort the walls according to the cardinal directions. but i want to check the distance to the property boundary, i Need the distance of each direction .i ve tried it with the Geometry.Distance.To but i get every time the same distance to just one Property line.
any ideas how to go on?
Better yet, since you already have the walls sorted by direction just make sure your list of boundary lines are in the same order and check each list of walls against its corresponding boundary line.
Hi that sounds really good, can i sort the list of boundary lines the same way i did it for the walls? or is there a another way to do it? i ve tried it that way but it didn’t work.
You can probably just check them by looking for the min/max X and Y coordinates to know which curve is which. Just sort them in the same order as your walls.