Location of specific lines

Hello everyone on the forum!
I’ve been adapting some nodes that I learned here on this forum for my dynamo, but I didn’t get the result I wanted.
I do a selection of things


Filter to get lines only, OK.
I would like the GetLocation of each “Blue Line” filtered line (in the example case).

This part I couldn’t, could you let me know if I should use getItemAtIndex or something like that before?
select specific lines.dyn (25.2 KB)

I don’t believe those are the correct line elements you’re getting the location of. Can you repost the image with the node previews turned on?

Can you upload your modern?
I just saw your script and fixed but i dont know it ok or not.

The problem:

select specific lines (TEST).dyn (25.9 KB)

1 Like

Thanks for the feedback @Nick_Boyts
Here is the image of the case

@daoquocdaiT6WU3 Thank you very much for the feedback and for the modifications, but it didn’t work, I believe that one more filter is needed in the green circle, as I had done.
But a great note about string vs element

1 Like

Yup. You can see you’ve filtered the GraphicStyle and not the DetailCurve. Try this:

2 Likes

Great!
It was a mistake when it came to filtering, thanks for the help @Nick_Boyts
Thank you very much

1 Like