@Bogdan_Chipara wrote:
Hi,
I run he script below and pick the points in the order mentioned in the rhino file attached.
The rectangle gets printed, but when i try to run something on it like areacentroid i get “Parameter must be a Guid or string representing a Guid”. And this is because points 2 and 3 are too close to each other.Why is this happening? how can i avoid it?
190920 getrectangle.3dm (76.5 KB) 190920 getrectangle.py (187 Bytes)
import rhinoscriptsyntax as rs rectangle = rs.GetRectangle (mode=2, base_point=None, prompt1=None, prompt2=None, prompt3=None) print rectangle print rs.CurveAreaCentroid(rectangle)
Posts: 1
Participants: 1