IsPolyCurve

Verifies an object is a polycurve object.  A polycurve is a curve that is represented by a sequence of contiguous curve segments.

Syntax

rhinoscriptsyntax.IsPolyCurve (object_id, segment_index=-1)

rhinoscript.curve.IsPolyCurve (object_id, segment_index=-1)

Parameters

object_id

Required. String or Guid. The object's identifier.

segment_index

Optional. Number. If object_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 a polycurve")

if rs.IsPolyCurve(obj):

    print "The object is a polycurve."

else:

    print "The object is not a polycurve."

Also See

PolyCurveCount