I am currently looking to extract the distance between piles to dimension the piles.
In doing so, the following logic is used to filter the line segment.
- Use Line.ByStartPointEndPoint to join all coordinate combinations to create a line segment.
- Sort the created line segments in order of decreasing length using List.SortByKey.
- List.GetItemAtIndex to specify a value to be taken from a list of line segment lengths.
- List.FilterByBoolMask to extract line segments with the same line segment length as the specified value.
- If there are interfering line segments, leave the original.(Python)
However, when filtering a line segment by the specified value of 3000, it does not work as expected.
There should be more than one line segment that corresponds to the specified value of 3000 distance, but only one is retrieved. How can I solve this problem?
I have also attached the file, please check it.
PileDistance.dwg (1.4 MB)
PileDistance.dyn (41.0 KB)