I would like to have a list of the longest vectors of the different polygons created, that is, with their coordinates and length. For example if I have two 4-sided or rectangular polygons, I will have 8 vectors of those 8 vectors I want my 2 longest vectors one for each polygon.
When you say “polygon” do mean a Dynamo Polygon or Polycurve? From your screenshot it appears you’re dealing with Polycurves. Keep in mind that Polycurves aren’t always guaranteed to only contain line segments, so connecting the start/end points of each segment wouldn’t always produce the same length as the segment itself. Not sure if that is a concern or not.
Yes, I meant Polycurve, my fault. Thank you for the help me.
So in summary I wanted to know the greatest lengths of my vectors of the different closed polygons that I have in the model space. To see that everything is clear:
You got the start and end point of the curves
you created a list of those points
you created a polygon by points
4.and next what you showed me in the picture rigth?
Yes, that’s correct. I’m wondering though, do you need to use vectors? If you are trying to find the longest side of each polygon, then you could just use Curve.Length after Polycurve.Curves and get to the result instead of creating vectors. Then it would work if the source Polylines have arc segments, whereas using vectors is only valid for line segments.