Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5892

rs.GetRectangle problem

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 5892

Trending Articles