I notice that the GetDistance method prints the distance without being asked to. You can see this by running the example in the help file.
import rhinoscriptsyntax as rs dist = rs.GetDistance() if dist: print dist
Take a look at the results:
Having the distance automatically print shouldn’t be happening, in my opinion. Even if I wanted to make use of that (which I don’t) I would want to control the decimal precision that is displayed. But I don’t believe this should be happening at all. If I want the distance displayed, It’s easy enough to do, and also to control how it is displayed.