Script to rename several elements error

Hello community,

I have a problem with my script! Indeed I want to rename my beams with a script but when I select several frames it gives me this error message while with only one it works. Can someone help me? :slight_smile:

Thanks in advance

You are sending Line instead of points.

You need to add loc.StarPoint and loc.EndPoint, and then use Point.X and Point.Y.

Ah bsuper, it is available in which package?
And where to add it? Before or after code block? :slight_smile:

StarPoint and EndPoint are in DynamoCore and you need to add them before the codeblock.
You need to choose which point you want to use. If you need mid-point, you can use Curve.PointAtParameter which is also in DynamoCore. Mid point is parameter 0.5.

Nice thanks you very much :slight_smile: