How to Select Parallel Walls Within Specific Distances in Dynamo?

Hi everyone,

I am working on a Dynamo script to automate the following routine:

  1. Select multiple “main” walls manually.
  2. Identify walls that are parallel to the selected walls.
  3. Filter parallel walls within a specific distance range (e.g., 1m to 3m) on both sides of the selected walls.
  4. Copy the “Type Mark” parameter from the main walls to these parallel walls.

I’ve successfully filtered walls that are parallel to the main walls, but currently, I only select the first wall on each side. I need help updating my script to:

  • Identify all parallel walls within a known distance range.
  • Ensure the “Type Mark” is copied to all identified walls.

Any guidance, sample scripts, or tips would be greatly appreciated! Thank you.

Hi, I’m not in front of the PC here is how I will proceed not necessarily the best solution
1-Getlocation of the wall
2-linedirection of the wall and normalization of it
3 vector reverse
4 x and y components of the vector in 2 and 3
5 Reclaim the Upstairs Walls
6 repeat 1 2 and 4 for these walls
7 compare and filter to only keep the walls //
8 translate the line of 1 by 3m or 4m in z
9 draw a surface between line 1 and line 8
10 create 2 volumes (with thicken) v1 and v2 with your limits
11 a boolean shot to keep the 2nd border v2-v1
12 and 13 intersection between volumes and lines

edit:


rep 28 dec 2024.dyn (76.2 KB)

Sincerely
christian.stan