Rhino 8 Distance() method

Is the Distance() method in the rhinoscriptsyntax library broken in rhino 8?

This simple code gives me an error message in line 6 “Point3d object has no attribute Lengh”. It works fine in rhino 7.

import rhinoscriptsyntax as rs

point_1 = rs.GetObject("Select first point" , 1)
point_2 = rs.GetObject("Select second point" , 1)

distance = rs.Distance(point_1, point_2)

print(distance)

This used to be the case in ‘older’ Rhino 8 sevice releases. I believe this was fixed in 8.5, it definitely works in 8.6.

Set your update frequency to Service Release Candidate under Tools > Options > Updates and Statistics

1 Like