Adjust Index Numbers


(C Gressel) #1

Hey guys! I have following question/problem!
On one hand i have a couple of closed polylines (BORDERS) and on the other i have a the same amount of polylines (BUILDINGS) within this border lines.
Now i want to calculate the area-difference of each BORDER AREA (BORDER minus associated BUILDING).
But therefore BORDER and BUILDING must have the same position/index in their list.
For example in my case BORDER = index 15 and BUILDING = index 36.
How can i adjust the indices?

Grundrissberechnung.gh (14.2 KB)
180305_Schwarzplan Grundgrenzen.3dm (1.4 MB)


(Raul Matagringo) #2

Use Curve Nearest Object (CrvNear) component


#3

The area component also computes a centroid. The buildingĀ“s centroid will nearly always be closest to the centroid of the corresponding plot.
The buildings centroid will always be the only centroid within the plot outline. Attached is a quick suggestion for how it can be done.

Plot building matcher.gh (15.4 KB)


(C Gressel) #4

thank you! works perfect!