IsPoint

Verifies an object is a point object.

Syntax

rhinoscriptsyntax.IsPoint (object_id)

rhinoscript.geometry.IsPoint (object_id)

Parameters

object_id

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

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select a point")

if rs.IsPoint(id):

    print "The object is a point."

else:

    print "The object is not a point."

Also See

AddPoint

PointCoordinates