Hi, I’m fairly new to using python in Rhino, and I’m having trouble writing a function to move an existing point anywhere in the top view. To me, everything checks out, but when I select the point I want to move and the point I want to move it to, I get the error "Message: Parameter must be a Guid or string representing a Guid."
The code I have now is:
import rhinoscriptsyntax as rs
point = rs.GetPoint(“Select a point to move.”)
new_point = rs.GetPoint(“Select where to move the point.”)
vector = rs.VectorCreate(new_point, point)
return rs.MoveObject(point, vector)
PS: There isn’t an indenting issue, in my code everything in the function is indented, it’s just I couldn’t figure out how to do it here.