Element. Location node

Hello guys its me again.

I have an issue with Element.Location Node in the screenshots below.

I want to get the points of the 1st and last pipe as shown in section below, but for some reason Dynamo is reading the end points of the pipes the vertical direction.

I use a selection mode to select the pipes and feed it by listfilter bool mask as in the last image.

Thanks,

John

To rephrase : " How can I get the distance from the first pipe to the last?"

Currently the script measures the distance across the length of each pipe rather than across the section of the 4

Hello, you could maybe use curveEndpoints instead of List.LastItem…