rs.Distance() Python 3 can’t compute distance between points?

Hi everyone!
I’m trying to get some circles with my script. But, it gives me an error regarding distance calculation between given points!. do you know how to solve it ?
tnx

error converting types.gh (7.8 KB)

The error message is that can’t convert a list of Point3d to a single Point3d

on line 4 you need to change pts to i.

Ofcourse, you’re right.
my main problem is this error!

This looks like one of the things reported earlier here on Discourse, basically some operations result in different types than they used to in Rhino 7.

Let me see if I can find the thread this was reported in. edit: the topic: rs.Distance() Python 3 can't compute distance between points

In the meantime, this is for @eirannejad to look into.

ps. @Soroush perhaps rename the topic to reflect the actual error :slight_smile:

yea exactly I was looking at their chats …
I renamed it

This has been resolved in 8.5

4 Likes

oh I see…
Thank u so much for info Ehsan jan :four_leaf_clover:

1 Like