Verifies an object is an arc curve object.
rhinoscriptsyntax.IsArc (curve_id, segment_index=-1)
rhinoscript.curve.IsArc (curve_id, segment_index=-1)
curve_id |
Required. String or Guid. The object's identifier. |
segment_index |
Optional. Number. If curve_id identifies a polycurve object, then segment_index identifies the curve segment of the polycurve to query. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select an arc")
if rs.IsArc(obj):
print "The object is an arc."
else:
print "The object is not an arc."