IsArc

Verifies an object is an arc curve object.

Syntax

rhinoscriptsyntax.IsArc (curve_id, segment_index=-1)

rhinoscript.curve.IsArc (curve_id, segment_index=-1)

Parameters

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.

Returns

Boolean

True if successful, otherwise False.

Example

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."

Also See

AddArc3Pt

ArcAngle

ArcCenterPoint

ArcMidPoint

ArcRadius